解决方案 »
- fck在线编辑器问题
- DropDownList在绑定月份时出现的问题。
- 那个下载是怎么实现的?
- [提问]看到吴旗娃前辈在,想问下你的aspnetpager分页控件能否实现这样的样式?
- .aspx 测试时的问题,怎么解决?
- aspx.vb里怎么导入命名空间
- 学习ASP.NET要不要先去VB或者(C#)呀?
- 100求解---------套用母版后使用时间控件的问题。
- ASP里如何实现API 设置outlook???(分不多了,希望大家别介意!! 本人在线等待!!)
- datagrid中编辑列点击以后,那出来几个输入文本框,如何让它们出现的时候获取焦点呢?
- 取不到DataList中的Label中的值
- webservice的 命名空间
建议楼主用firebug弄出来看下 并可以在firebug里直接更改看效果 修改好了然后把代码拷贝到源代码里去
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<style type="text/css">
*{ margin:0; padding:0;}
img{ border:none;}
.content{ width:1100px; margin:0 auto;}
.imglist{ width:1100px;}
.imglist img{ float:left; margin-right:5px;}
#HintImg{ position:absolute; padding:0; margin:0; display:none; z-index:999}
</style>
</head>
<body>
<div class="content">
<div style="height:50px;"></div>
<div class="imglist">
<img alt="" title="" src="http://avatar.profile.csdn.net/3/B/4/1_qiqishardgel.jpg"
shouimg="http://avatar.csdn.net/3/B/4/1_qiqishardge.jpg" />
<img alt="" title="" src="http://avatar.profile.csdn.net/3/B/4/1_qiqishardgel.jpg"
shouimg="http://avatar.csdn.net/3/B/4/1_qiqishardge.jpg" />
<img alt="" title="" src="http://avatar.profile.csdn.net/3/B/4/1_qiqishardgel.jpg"
shouimg="http://avatar.csdn.net/3/B/4/1_qiqishardge.jpg" />
<img alt="" title="" src="http://avatar.profile.csdn.net/3/B/4/1_qiqishardgel.jpg"
shouimg="http://avatar.csdn.net/3/B/4/1_qiqishardge.jpg" />
<img alt="" title="" src="http://avatar.profile.csdn.net/3/B/4/1_qiqishardgel.jpg"
shouimg="http://avatar.csdn.net/3/B/4/1_qiqishardge.jpg" />
</div>
</div>
<div id="HintImg"></div>
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(".imglist img").hover(function() {
$("*").stop(); //停止所有正在运行的动画
var offset = $(this).offset(); //取得事件对象的位置
var _left = (offset.left + $(this).width() + $("#HintImg").width() < 1100) ? (offset.left + $(this).width()) : (offset.left - $("#HintImg").width());
$("#HintImg").html('<img alt="" title="" src="' + $(this).attr("shouimg") + '" />').css({ "top": offset.top + "px", "left": _left + "px" }).fadeIn(500);
}, function() {
$("#HintImg").hide();
});
</script>
</body>
</html>