波动菜单,可完成左右翻转的实际效果

日期:2020-12-11 类型:科技新闻 

关键词:如何创建网站,免费网站建站,网站建设文章,网站建设7个基本流程,自动建站

编码还可进1步精简,時间关联,这里先发上来大伙儿再提升吧,菜单项自身再添1些。

<html>
<head>
<title>波动菜单</title>
<style>
BODY {
 FONT-SIZE: 9pt; COLOR: #333333
}
DIV {
 FONT-SIZE: 9pt; COLOR: #333333
}
TD {
 FONT-SIZE: 9pt; COLOR: #333333
}
A:link {
 FONT-SIZE: 9pt; COLOR: #3366cc; LINE-HEIGHT: 13pt; TEXT-DECORATION: none
}
A:visited {
 FONT-SIZE: 9pt; COLOR: #3366cc; TEXT-DECORATION: none
}
A:active {
 FONT-SIZE: 9pt; TEXT-DECORATION: none
}
A:hover {
 COLOR: #0000ff; TEXT-DECORATION: none
}
</style>
<SCRIPT>var sRepeat=null;function doScrollerIE(dir, src, amount) { if (amount==null) {amount=10} if (dir=="up") {document.all[src].scrollTop-=amount} else {document.all[src].scrollTop+=amount} if (sRepeat==null) {sRepeat = setInterval("doScrollerIE('" + dir + "','" + src + "'," + amount + ")",100)} return false}window.document.onmouseout = new Function("clearInterval(sRepeat);sRepeat=null");window.document.ondragstart = new Function("return false");function msover(){{event.srcElement.style.color="000099";event.srcElement.style.backgroundColor="99ccff";event.srcElement.style.cursor = "hand";}}function msout(){{event.srcElement.style.color="";event.srcElement.style.backgroundColor="";event.srcElement.style.cursor = "auto";}}function markover(){{event.srcElement.style.color="990000";event.srcElement.style.cursor = "hand";}}function markout(){{event.srcElement.style.color="000000";event.srcElement.style.cursor = "auto";}}function toggle( targetId ){{target = document.all( targetId );if (target.style.display == "none"){target.style.display = "";} else {target.style.display = "none";}}}</SCRIPT>
</head>
<body>
<table border=0>
<TR><TD onMouseOver="this.style.backgroundColor  = '990000';" onMouseOut="this.style.backgroundColor = '000099';" align=right BGCOLOR=#000099><A CLASS=scroll ONMOUSEOVER="return doScrollerIE('up','s1',10)" ONMOUSEOUT="clearInterval(sRepeat)" HREF="#"><font color=white>向下翻转</A></TD></TR>          
<TR><TD BGCOLOR=99ccff><DIV ID=s1 CLASS=sc1 STYLE="width: 121; height: 125; overflow: hidden; background: #99ccff;">          
<A CLASS=scr HREF="">天方夜潭</A><BR>
<A CLASS=scr HREF="">红楼梦</A><BR>
<A CLASS=scr HREF="">水浒传</A><BR>
<A CLASS=scr HREF="">仲夏夜</A><BR>
<A CLASS=scr HREF="">闲聊室ver2.3</A><BR>
<A CLASS=scr HREF="">江水滩</A><BR>
<A CLASS=scr HREF="">不便了</A><BR>
<A CLASS=scr HREF="">新我国</A><BR>
<A CLASS=scr HREF="">摊上大事情</A><BR> 
<A CLASS=scr HREF="">京东花苑</A><BR>
<A CLASS=scr HREF="">人间天堂</A><BR>
<A CLASS=scr HREF="">HTML5</A><BR> 
<A CLASS=scr HREF="">明月夜空</A><BR>
<A CLASS=scr HREF="">白酒品牌</A><BR>
<A CLASS=scr HREF="">中华民族传统武术</A><BR>      
</DIV></TD></TR>          
<TR><TD align=right onMouseOver="this.style.backgroundColor  = '990000';" onMouseOut="this.style.backgroundColor = '000099';" BGCOLOR=#000099><A CLASS=scroll ONMOUSEOVER="return doScrollerIE('down','s1',10)" ONMOUSEOUT="clearInterval(sRepeat)" HREF="#"><font color=white>向上翻转</A></TD></TR> </table>
</body>
</html>