爱易网
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 浏览次数:20178 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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
上一篇:狡猾的按钮特效
下一篇:导航菜单的文字说明
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
App Store严禁推送广告 运用面临大清洗
中国电信内外受困 去电信化思绪待改
Google要求硬件厂商捆绑预装应用的协议曝光
分析称iPhone 6明年初发布 屏幕变为4.8吋
薛蛮子取保后首次发微博表示:辜负你们了
微软与摩托罗拉授权协议涵盖Android和Chrome设备
总部大楼已换微软Logo:回忆诺基亚的兴衰史
Skype周年:与微软联姻到底有没有未来?
2019双12阿里云老用户怎么参加拼团活动 老用户拼团方法
推荐阅读
更多>
做大电影,阿里控股公司在港成立影业集团
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
从百度世界大会看大数据
马云寄厚望于物流 “菜鸟”行情暂难持续
Skype周年:与微软联姻到底有没有未来?
柳传志马云陷舆论漩涡:请不要辜负这个时代
墨迹也要做硬件,工具类应用如何“变异”的
迅雷高管解读财报:收购快盘可快速融入小米
微软不会被颠覆
170号码扎堆上市:手机话费私人定制时代到来?
苹果多色彩!葫芦里究竟卖的什么药
百度“全网寻人”面前的互联网信息枢纽价值
中移动财报外的"五座大山":运营商沦为走秀陪衬
据消息传百度将要控股携程 整合去哪儿
中国邮政与阿里合作:邮政网点可做网购自提点
北京今日实现用支付宝钱包为公交卡充值
网络旅行游记被曝插入"软广告" 个别人士月入数万
京东物流"最后一公里":颠覆阿里或者被阿里干掉
HTC曝出特大丑闻:高管诈骗+商业间谍
苹果售后生态链乱象:供需失衡价钱不一