爱易网
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 浏览次数:20214 次
以下是程序代码
<html> <head> <meta name="keywords" content="站长,网页特效,js特效,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>提示信息内容打字效果,sky整理收集,站长特效欢迎您。</title> <script language=javaScript> <!-- Beginning of JavaScript - // width of the ticker var tickerwidth=220 // height of the ticker var tickerheight=100 // distance from the messagetext to the tickermarrgin (pixels) var tickerpadding=5 // borderwidth of the ticker (pixels) var borderwidth=2 // font-family var fnt="Verdana" // font-size of the text var fntsize=8 // font-size of the last letter of the ticker var fntsizelastletter=8 // font-color of the text var fntcolor="008800" // font-color of the last letter of the ticker var fntcolorlastletter="00AA00" // font-weight. Set a value between 1 to 9 to adjust the boldness var fntweight=3 // backgroundcolor var backgroundcolor="CCFFCC" // standstill between the messages (microseconds) var standstill=2000 // speed (a higher value will slow down the ticker) var speed=40 // horizontal distance from the textlink to the popupbox (pixels) var xdistance=50 // vertical distance from the textlink to the popupbox (pixels) var ydistance=20 // Do not edit the variables below var timer var topposition=0 var leftposition=0 var x,y var i_substring=0 var i_presubstring=0 var i_message=0 var message var messagecontent="" var messagebackground="" var messagepresubstring="" var messageaftersubstring="" fntweight=fntweight*100 function getmessagebackground() { messagebackground="<table border="+borderwidth+" width="+tickerwidth+" height="+tickerheight+" cellspacing=0 cellpadding=0><tr><td valign=top bgcolor='"+backgroundcolor+"'>" messagebackground+=" </td></tr></table>" } function getmessagecontent() { messagecontent="<table border=0 cellspacing=0 cellpadding="+tickerpadding+" width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top>" messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsize+"pt;font-weight:"+fntweight+"'>" messagecontent+="<font color='"+fntcolor+"'>" messagecontent+=messagepresubstring messagecontent+="</font>" messagecontent+="</span>" messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsizelastletter+"pt;font-weight:900'>" messagecontent+="<font color='"+fntcolorlastletter+"'>" messagecontent+=messageaftersubstring messagecontent+="</font>" messagecontent+="</span>" messagecontent+="</td></tr></table>" }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 function showticker() { if (i_substring<=message.length-1) { i_substring++ i_presubstring=i_substring-1 if (i_presubstring<0) {i_presubstring=0} messagepresubstring=message.substring(0,i_presubstring) messageaftersubstring=message.substring(i_presubstring,i_substring) getmessagecontent() if (document.all) { ticker.innerHTML=messagecontent timer=setTimeout("showticker()", speed) } if (document.layers) { document.ticker.document.write(messagecontent) document.ticker.document.close() timer=setTimeout("showticker()", speed) } } else { clearTimeout(timer) } } function hideticker() { clearTimeout(timer) i_substring=0 i_presubstring=0 if (document.all)
上一篇:狡猾的按钮特效
下一篇:最简单的鼠标经过链接背景颜色改变代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
中移动“重启”自有品牌手机成败难料
火一把就死: 百度魔图验证社交游戏衰亡宿命
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
特斯拉技术专利开放,要革自己的命?
支付宝被曝严重破绽 隐私平安再受质疑
永不磨灭的九大尖端编程语言
锐迪科将以9.25美元/ADS价钱出售835万份ADS
传诺基亚5月14日发布会推出Lumia 950
推荐阅读
更多>
微软史上最大规模裁员,一半诺基亚员工
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
打车软件“明补变暗补”背后的小算盘
电信运营商员工涌入虚拟运营商,待遇差距多大?
屌丝程序猿发家机会来了 用大数据来做生意!
微软与摩托罗拉授权协议涵盖Android和Chrome设备
携程收买酷讯成定局:转型互联网+投资
iSuppli:上网本将于2015年退出市场
一大波智能路由器正在袭来:小米、360、极路由大PK
三星已经将Galaxy S5视为失败之作?
Twitter收购印度手机营销公司ZipDial
马云的SNS之梦有了新目标 收购“微博”
美剧讲硅谷创业者:远不及现实荒诞?
墨迹天气:产品创新以攻为守方能对抗巨头
同为70前后人,马云为什么总是像外星人那么瘦
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
阿里收购UC 五年姻缘换来移动新格局
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
HTC曝出特大丑闻:高管诈骗+商业间谍
微软确认 Surface 计划更多尺寸和LTE 版本