爱易网
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 浏览次数:20159 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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
上一篇:狡猾的按钮特效
下一篇:导航菜单的文字说明
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
电信设备商淘金中国4G:华为中兴领衔
国内首个大数据系列指数今日发布
苹果售后生态链乱象:供需失衡价钱不一
京东确定IPO定价区间 最高募资16.9亿美元
网友爆料称微软雇水军宣传主机Xbox One
盛大游戏走向衰落的根源:免费游戏模式惹的祸
支付宝27日晚间曝严重破绽:买卖记载可被搜索
柳传志马云陷舆论漩涡:请不要辜负这个时代
雷军收买腾讯金山股份:持股比例升至27%
推荐阅读
更多>
支付宝曝平安破绽:转账信息被谷歌抓取
中电信率先推移动转售业务 中下旬批量上市
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
雷军收买腾讯金山股份:持股比例升至27%
FDD牌照短期不会发放 联通电信暗自提速建网
杨元庆去年总薪酬1.33亿元
微软为避免代理权争夺 与大股东达成和解协议
微软张亚勤趋势判断:未来三十年属于物理化互联网
八位知名设计师评iOS7:新鲜但复杂
科技巨匠体验谷歌眼镜:戴上了就不想摘上去
天音通信170套餐试商用放号:流量两年不清零
广东移动董事长徐龙受调查 圈内对其褒贬不一
小米年度发布会遭围剿!多款新品难阻品牌危机
NoomWeight减肥
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
特斯拉技术专利开放,要革自己的命?
工商总局开查电商“七日退货”
苹果20年以来首次发债 融资170亿美元
用友软件股价逆势下跌 再融资方案现曙光
这一次,微软将带给我们什么惊喜?