小滕学java
baiyejianxin
全部博文(99)
2011年(1)
2010年(21)
2009年(77)
Phyllis6
yuangush
seagull_
lepeng12
潇潇101
pinktopo
小飞学习
After丶F
羽翰love
分类: Java
2009-08-27 15:34:28
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""><html xmlns=""><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>图像预览</title><script src="../jQuery js/jquery-1.3.2.js" ></script><script> $(function(){ $("img").mouseover(function(e){ $("#show").hide(); $("#show").attr("src",this.src); $("#show").fadeIn(); }).mouseout(function(e){ }); });</script><style> body{ margin:0px; height:100%; width:100%} .images{ width:128px; height:40px; margin:auto;} img{ width:32px; height:32px;} .goalImages{ width:128px; height:150px; margin:auto;} .goalImages img{ width:128px; height:128px;}</style></head><body><div class='goalImages'><img id="show" src="../images/25.png"/></div><div class="images"><img src="../images/25.png" /><img src="../images/32.png" /><img src="../images/34.png" /><img src="../images/35.png" /></div></body></html>
注意要加入jQuery的类库。
上一篇:经典的登录表单验证
下一篇:图片展示(未简化、美化版)
登录 注册