几行代码轻松搞定jquery实现flash8类似的连接效果

时间:2021-05-25

很简单几行代码就可以实现整个页面的连接效果.
复制代码 代码如下:
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<scriptsrc="js/jquery-latest.pack.js"type="text/javascript"></script>
<scripttype="text/javascript">
$(document).ready(function(){
$("#list1").css("list-style","none");
$("#list1").css("margin","0px");
$("#list1").children().css("background-image","url(l_04.gif)");
$("#list1").children().css("height","30px");
$("#list1").children().children().css("margin-left","0px");
$("#list1").children().children().css("padding-left","12px");
$("#list1").children().children().css("background-image","url(allow_01.gif)");
$("#list1").children().children().css("background-repeat","no-repeat");
$("#list1").children().children().css("background-position","leftcenter");
$("#list1").children().children().mouseover(function(){
$(this).css("background-image","url(allow_02.gif)");
$(this).css("margin-left","6px");
});
$("#list1").children().children().mouseout(function(){
$(this).css("background-image","url(allow_01.gif)");
$(this).css("margin-left","0px");
});
}
);
</script>
<title>无标题文档</title>
</head>
<body>
<div>
<ulid="list1">
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
<li><ahref="#">例表第一项</a></li>
</ul>
</div>
</body>
</html>

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章