theflyingminstr
07-20-2009, 06:01 PM
Hi I want to know if it's possible to change a div's width, height as well as left/right position at the same time.
Since I want to change many different divs very precisely I also wanted to know if the onclick function can be nested in the link itself (even though the script example I'm pasting below show's it as function).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
</head>
<body>
<div id="857" style="position:absolute; top:265px; left:345px; width: 62px; height: 83px;">
<img src="images/image1.jpg" width="100%" height="100%" />
</div>
<br/><br/>
<a href="#" onclick="function('change')">Change Width Height & Position</a>
</body>
</html>
Thanks so much
Since I want to change many different divs very precisely I also wanted to know if the onclick function can be nested in the link itself (even though the script example I'm pasting below show's it as function).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
</head>
<body>
<div id="857" style="position:absolute; top:265px; left:345px; width: 62px; height: 83px;">
<img src="images/image1.jpg" width="100%" height="100%" />
</div>
<br/><br/>
<a href="#" onclick="function('change')">Change Width Height & Position</a>
</body>
</html>
Thanks so much