Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize floating menu in web Development

Shulou Source: shulou.com Published: 2022-06-03 06:32:10 11月16日 Update

这篇文章主要介绍了web开发中如何实现浮动菜单,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

代码还可进一步精简,时间关系,这里先发上来大家再优化吧,菜单项自己再添一些。

浮动菜单

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

}

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";}}}

向下滚动

天方夜潭

红楼梦

水浒传

仲夏夜

聊天室ver2.3

江水滩

麻烦了

新中国

摊上大事儿

京东花园

天堂

HTML5

明月星空

白酒品牌

中华武术

向上滚动

感谢你能够认真阅读完这篇文章,希望小编分享的"web开发中如何实现浮动菜单"这篇文章对大家有帮助,同时也希望大家多多支持,关注行业资讯频道,更多相关知识等着你来学习!

Tags: Menu article floating development Chinese martial arts code value interest at the same time brand big event paradise new China time bright moon starry sky more friends martial arts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Apple MariaDB macOS Linux