同一IP只弹出一次窗口的特效代码[网页特效]

王朝html/css/js·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

<HTML>

<style>

<!--

#ticker

{

width:800px;

line-height:1.2em;

background-color:lightblue;

}

-->

</style>

<script language="JavaScript1.2">

//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)//设置内容显示

var tickercontents=new Array()

tickercontents[0]='See what\'s New at Dynamic Drive. <a href="../../../dynamicdrive.com/new.htm">[Read more]</a>'

tickercontents[1]='Browse the most popular scripts on Dynamic Drive <a href="../../../dynamicdrive.com/hot.htm">[Read more]</a>'

tickercontents[2]='Link back to Dynamic Drive! <a href="../../../dynamicdrive.com/link.htm">[Read more]</a>'

//configure the below variable to determine the delay between ticking of messages (in miliseconds//设置延迟时间

var tickdelay=3000

////Do not edit pass this line////////////////

var currentmessage=0

function changetickercontent(){

ticker.innerHTML=tickercontents[currentmessage]

if (currentmessage==tickercontents.length-1) currentmessage=0

else currentmessage++

setTimeout("changetickercontent()",tickdelay)

}

function start_ticking(){

changetickercontent()

}

window.onload=start_ticking

</script>

<div id="ticker"left=0 top=0></div>

</HTML>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航