一段页面导航条代码,可以随便移动小文12年前发布关注私信014290 不错的导航条代码,可以随便移动,使用非常方便,比较醒目而且没法关闭,只能满屏幕移动,我看这个不错 <SCRIPT> var Mouse_Obj=”none”; var pX var pY document.onmousemove=D_NewMouseMove; document.onmouseup=D_NewMouseUp; function m(c_Obj) { Mouse_Obj=c_Obj; pX=parseInt(document.all(Mouse_Obj).style.left)-event.x; pY=parseInt(document.all(Mouse_Obj).style.top)-event.y; } function D_NewMouseMove() {if(Mouse_Obj!=”none”) {document.all(Mouse_Obj).style.left=pX+event.x; document.all(Mouse_Obj).style.top=pY+event.y; event.returnValue=false;}} function D_NewMouseUp() {if(Mouse_Obj!=”none”) {Mouse_Obj=”none”;}} </SCRIPT> <STYLE>.up { BORDER-RIGHT: #711200 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: white 1px solid; PADDING-LEFT: 1px; FONT-SIZE: 9pt; PADDING-BOTTOM: 1px; BORDER-LEFT: white 1px solid; COLOR: #ff0000; PADDING-TOP: 1px; BORDER-BOTTOM: #711200 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #eadfd0 } .down { BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #711200 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #711200 1px solid; CURSOR: hand; COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #336699 } A:link { COLOR: #711200; TEXT-DECORATION: none } A:visited { COLOR: #711200; TEXT-DECORATION: none } A:hover { COLOR: blue; TEXT-DECORATION: underline } </STYLE> <DIV class=up id=hello style=”; LEFT: expression((document.body.clientWidth-80)/2); WIDTH: 80px; POSITION: absolute; ; TOP: expression((document.body.clientHeight-120)/2); HEIGHT: 120px”> <DIV class=down onmousedown=’m(“hello”)’>-+贵宾港+-</DIV> <DIV style=”PADDING-LEFT: 5pt”><A href=”http://www.vipkj.net/” target=_blank>演示连接</A></DIV> © 版权声明文章版权归www.vipkj.net所有,未经允许请勿转载。THE END技术分享# PureFTPd 喜欢就支持一下吧点赞0 分享QQ空间微博QQ好友海报分享复制链接收藏
暂无评论内容