爱易网
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 浏览次数:20227 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <style type="text/css"> #divControl{position:absolute; width:250; font-family:arial; left:120; top:190; font-size:10pt; visibility:hidden} #divCont{position:absolute; top:250; left:120; clip:rect(0,250,150,0); height:150; width:250} .clScroll{position:absolute; top:0; font-size:10pt; left:0; font-family:arial; visibility:hidden} </style> <script language="JavaScript" type="text/javascript"> function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=new lib_bwcheck() /********************************************************************************* These are the variables you have to set: *********************************************************************************/ //The speed of the timeout between each scroll. timSpeed=50 //The height of the container (change this when it scrolls to much or to little) contHeight=100 /********************************************************************************* This is the object constructor function, which applies methods and properties to the Cross-browser layer object *********************************************************************************/ function makeScrollObj(obj,nest){ nest=(!nest) ? "":'document.'+nest+'.' this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; this.height=bw.ns4?this.css.document.height:this.el.offsetHeight this.top=b_gettop return this } //Getting the top for the top method function b_gettop(){ var gleft=(bw.ns4 || bw.ns6)?parseInt(this.css.top):eval(this.css.pixelTop); return gleft; } //Variables var scrollTim=1; var active=0; /********************************************************************************* The scroll function. Checks what way to scroll and checks if the layer is not already on top or bottom. *********************************************************************************/ function scroll(speed){ clearTimeout(scrollTim) way=speed>0?1:0 if((!way && oScroll[active].top()>-oScroll[active].height+contHeight) || (oScroll[active].top()<0 && way)){ oScroll[active].css.top=oScroll[active].top()+speed scrollTim=setTimeout("scroll("+speed+")",timSpeed) } } //Clears the timeout so the scroll stops, this is called onmouseout. function noScroll(){ clearTimeout(scrollTim) } /********************************************************************************* Changes the active layer. Hides the one that's visible and shows the "new" one. Also set's the new layers top to 0 so it starts at top. *********************************************************************************/ function changeActive(num){ oScroll[active].css.visibility='hidden' active=num oScroll[active].css.top=0 oScroll[active].css.visibility='visible' } /********************************************************************************* Initilizes the page, makes a oScroll Array and calls the object constructor. Her
上一篇:狡猾的按钮特效
下一篇:特殊字符的生成
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
从3G牌照发放看中国4G规划效果
网络旅行游记被曝插入"软广告" 个别人士月入数万
国美在线叫板京东:李俊涛底气在哪?
诺基亚再缩阵线 封锁上海旗舰店全力蜕变
华为变阵:任正非调整三大业务布局
墨迹天气:产品创新以攻为守方能对抗巨头
阿里巴巴450亿勾画“现代服务业”藏宝图
中国联通困局:遭遇OTT宽带4G三大难题
华为美国推出电商网站 发售Mate 2LTE版
推荐阅读
更多>
同程旅游融资后变土豪 如何烧钱占领市场?
苹果售后生态链乱象:供需失衡价钱不一
打车App就是下一个团购骗局!?
央行暂停二维码支付及虚拟信用卡 支付宝微信不知情
诺基亚依托规模效应 猛攻国际市场空白
云储存有多远:跨过数据安全问题即可到达
原万网CTO周雷加盟亿玛 出任CTO一职
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
亚马逊落户上海自贸区:美国货直邮中国
易信工具性优势突出 丁磊三板斧或先砍在飞信上
富士康欲用机器人产iPhone 6
网易云音乐能否为丁磊拿到移动互联网门票?
腾讯微信昨晚再现大规模故障 多地受到影响
国网公司将加快组建 业界人士称困难重重
组建铁塔公司倒逼运营商改革 或加速4G网建设
猎豹移动上市押海外市场 与小米有合作空间
快递企业征收“份子钱” 成全了谁 苦了谁?
首家国有独资P2P平台上线 或预示政策日渐明朗
网曝富士康500万iphone遭退货是确证的事
小米移动芯片:英伟达退出,终会加强与联发科合作