爱易网
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 浏览次数:20187 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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
上一篇:狡猾的按钮特效
下一篇:导航菜单的文字说明
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
顺丰O2O便利店将正式启动:涉及金融服务
微信将商场O2O战火烧到了阿里巴巴老家
欧洲6万人起诉Facebook隐私侵权
中国雅虎邮箱今日关停 由盛及衰的背后
刘强东向总理建言:打击有组织有规模的售假商家
看病也能用支付宝了 马云的又一盘大棋
阿里入股虎嗅:媒体的脊梁弯了?未必!
FB上广告费用昂贵而且效果不及Twitter
推荐阅读
更多>
史玉柱谈创业:5大建议 失败的教训最真实
传诺基亚5月14日发布会推出Lumia 950
从WPS到office365,中国企业能否赶超美国?
微软最后的救命稻草Win 8份额继续上升
曝阿里巴巴一怀孕员工过劳死 加班情况引争议
云智慧:用大数据实现企业应用性能管理
优酷土豆兼并一年:依然处于烧钱形状
孙正义入股阿里往事还原:阿里巴巴并非软银首选
创维冲击500亿梦想:转型硬件和内容供应商
中移动本月推手机钱包 iPhone遭边缘化
乐视28日发布手机进展 LeUI系统Mobile版或曝光
北京电信推“0月租卡”,同网通话免费
电信设备商淘金中国4G:华为中兴领衔
微信将商场O2O战火烧到了阿里巴巴老家
京东进驻微信一级入口或影响自身战略布局
9158屌丝逆袭 从在线“夜总会”转型KTV
三问刘强东:京东为何近来火气这么大?
Twitter收购印度手机营销公司ZipDial
传360周鸿祎曾试图阻止百度收购91无线
评论:阿里为什么不试着收购一家香港媒体呢