Macromedia Dreamweaver 8中做一个效果?
- 提问者网友:皆是孤独
- 2021-08-24 00:54
- 五星知识达人网友:空山清雨
- 2021-08-24 01:13
<img src="" width="50" height="50" onmouseover="big.style.display='block'" onmouseout="big.style.display='none'" />
<img id="big" src="" width="200" height="200" style="display:none;" />
- 1楼网友:等灯
- 2021-08-24 03:15
javascript可以实现,但是教你一个简单的方法,把A小图片 PS成和A大图片一样大,但是用透明底子~然后再用鼠标经过图像 OK~
- 2楼网友:轻熟杀无赦
- 2021-08-24 02:39
<body> <script> var SmalWidth,SmallHeight; function ShowBig(img){ var OriImage=new Image(); OriImage.src=img.src; SmallWidth=img.width; SmallHeight=img.height; img.width=OriImage.width; img.height=OriImage.height; //alert(OriImage.width); } function Return(img){ img.width=SmallWidth; img.height=SmallHeight; } </script> <div id="news" style="height:1900px;"> <img onmouseover="ShowBig(this)" onmouseout="Return(this)"
src=" http://cache.soso.com/wenwen/i/wenwen_logo.gif" width=50 height=20> </body>