爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
固定的左侧导航菜单
固定的左侧导航菜单
日期:2014-05-18 浏览次数:20204 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <SCRIPT language=JavaScript> <!-- IE=document.all NS=document.layers hdrFontFamily="Verdana"; hdrFontSize="2"; hdrFontColor="white"; hdrBGColor="#999999"; hdrTextAlign="Center"; linkFontFamily="Verdana"; linkFontSize="1"; linkBGColor="white"; linkOverBGColor="#CCCCCC"; linkTextAlign="Center"; linkTarget="_top"; YOffset=5; staticYOffset=20; XOffset="5"; menuWidth="110"; menuBGColor="black"; menuIsStatic="yes"; menuHeader="DHTMLShock"; staticMode="advanced"; lastY = 0; function makeStatic(mode) { if (IE) {winY = document.body.scrollTop;var NM=ssm3.style} if (NS) {winY = window.pageYOffset;var NM=document.ssm3} if (mode=="smooth") { if ((IE||NS) && winY!=lastY) { smooth = .2 * (winY - lastY); if(smooth > 0) smooth = Math.ceil(smooth); else smooth = Math.floor(smooth); if (IE) NM.pixelTop+=smooth; if (NS) NM.top+=smooth; lastY = lastY+smooth;} setTimeout('makeStatic("smooth")', 1)} else if (mode=="advanced") { if ((IE||NS) && winY>YOffset-staticYOffset) { if (IE) {NM.pixelTop=winY+staticYOffset} if (NS) {NM.top=winY+staticYOffset}} else { if (IE) {NM.pixelTop=YOffset} if (NS) {NM.top=YOffset-7}} setTimeout('makeStatic("advanced")', 1)} else {alert('Please choose either the "smooth" or "advanced" static modes!')}} function MM_displayStatusMsg(msgStr) { //v1.0 status=msgStr; document.MM_returnValue = true; } //--> </SCRIPT> <SCRIPT language=JavaScript1.2> if (IE) {document.write('<DIV ALIGN="left" ID="ssm3" style="Position:Absolute;Left:'+XOffset+'px;Top:'+YOffset+'px;Z-Index:20;width:'+menuWidth+'px">')} if (NS) {document.write('<LAYER top="'+YOffset+'" name="ssm3" left="'+XOffset+'"><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 bgcolor="'+menuBGColor+'"><TR><TD>')} document.write('<table border="0" cellpadding="0" cellspacing="1" bgcolor="'+menuBGColor+'"><TR><TD bgcolor="'+hdrBGColor+'" ALIGN="'+hdrTextAlign+'"><font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+menuHeader+'</b></font></td></tr><TR><TD><table border="0" cellpadding="0" cellspacing="0" width="'+menuWidth+'">') function addItem(text, link, target) { if (!target) {target=linkTarget} document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkTextAlign+'"><P ALIGN="'+linkTextAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="'+target+'" CLASS="ssm3Items">'+text+'</A> </LAYER></ILAYER></TD></TR>')} function addHdr(text) { document.write('</table></td></tr><TR><TD bgcolor="'+hdrBGColor+'" ALIGN="'+hdrTextAlign+'"><font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td></tr><TR><TD><table border="0" cellpadding="0" cellspacing="0" width="'+menuWidth+'">')} //// Only edit between HERE addItem('Discussion Forum', 'http://www.dhtmlshock.com/forum', ''); addItem('Latest Additions', 'http://www.dhtmlshock.com/new.asp', ''); addItem('FAQs', 'http://www.dhtmlshock.com/faqs.asp', ''); addItem('Link to us', 'http://www.dhtmlshock.com/linktous.asp', ''); addItem('Resources', 'http://www.dhtmlshock.com/resources.asp', ''); addItem('Submit a script', 'http://www.dhtmlshock.com/submit-a-script.asp', ''); addItem('Wish List', 'http://www.dhtmlshock.com/forum/FORUM.asp?FOR
上一篇:狡猾的按钮特效
下一篇:导航菜单的文字说明
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
打车软件火了 恶性循环来了
论:三大运营商运用商店逆袭并非不能够
传谷歌开发者大会发布Android 4.3 并非5.0版本
从WPS到office365,中国企业能否赶超美国?
诺基亚仍是第二大手机商:功用机有利可图
百度对糯米来说到底意味着什么?
“世界杯+618”集体磨刀的本质是绑架全民
新一代iPhone11月底国内上市 支持TD制式
诺基亚若没加入微软,只不过是另一个HTC而已
推荐阅读
更多>
在线音乐出现“小米公司”不是没有可能
网易云音乐能否为丁磊拿到移动互联网门票?
FDD牌照12月将发放 联通电信双4G反击中移动
苹果股价突破100美元大关:投资者看好iPhone 6
中移动财报外的"五座大山":运营商沦为走秀陪衬
工商总局开查电商“七日退货”
【晚报】女子泰国游晒10照片 流量费2000
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
英特尔VS苹果:移动芯片大战
“宽带中国”计划已正式上升为国家战略
苹果售后生态链乱象:供需失衡价钱不一
众贷网满月开张 网络金融监管再受质疑
眼球识别技术EyeVerify融资600万美元 360参投
小米年度发布会遭围剿!多款新品难阻品牌危机
富士康欲用机器人产iPhone 6
解析2014年阿里百度等五大互联网巨头深度布局
苹果CEO抱歉解读:是战略而非“屈服”
HTC曝出特大丑闻:高管诈骗+商业间谍
华为野心布局未来:投资研发5G对赌1毫秒连接
联想国庆完成收购IBM x86服务器