0
Hello, I need to make a javascript code that changes the width of my iframe when passing the mouse over this iframe.
Here’s the code:
<html>
<head>
<link rel="stylesheet" href="http://www.site.com.br/imagens/style.css">
<meta name="ad.size" content="width=600,height=250">
<script type="text/javascript">
var clickTag = "http://www.site.com.br"; </script>
</head>
<body>
<div class="container">
<a href="javascript:window.open(window.clickTag)">
<img src="http://www.site.com.br/imagens/delta.gif" class="image; image-a" border="0" />
<div class="overlay">
<img src="http://www.site.com.br/imagens/fotogrande.jpg" border="0" />
</a>
</div>
</div>
</body>
</html>
Change to what value? What is the expected result?
– mercador
The initial iframe is structured with 300x250, through the mouseover the iframe should change to 600x20 (width x Heigh). I need this over function that causes the width of the iframe to change, when the mouse leaves the iframe area the size goes back to the initial.
– mab
Select all the source code, then click the button
{ }
for it to appear formatted.– rray
Thank you. I’ve already put the code :)
– mab