01.<div id="ad_headerbanner" class="olympic">
02. <div class="clt">
03. <div id="xbox" v
04.align="right" style="width:680px;height:74px;filter:revealTrans(duration=1,transition=20);background-image: url(ad/lunhuan/banner_index.gif)"><div id="g_div" style="width:468px;height:76px"align="right"><a
05.href="go0797register.php" target=_blank><img src="ad/lunhuan/zhuce.gif" name="g_img" border="0"
06.id="g_img" style="FILTER:revealTrans(duration=1,transition=23);width:468px;height:76px;border:0px #62d3fd solid"></a>
07.<a href="forumdisplay.php?fid=320" for="ad/lunhuan/lipin.gif"target="_blank"></a>
08.<a href="forumdisplay.php?fid=324" for="ad/lunhuan/qiandao.gif"target="_blank"></a>
09.<a href="viewthread.php?tid=34573" for="ad/lunhuan/hexie.gif"target="_blank"></a></div>
10.<script language="JavaScript">
11.function f(){
12.var g_sec=4 //几秒后切换图片
13.var g_items=new Array()
14.var g_div=document.getElementById("g_div")
15.var g_imglink=g_img.parentElement
16.var arr=g_div.getElementsByTagName("A")
17.var arr_length=arr.length
18.var g_index=1
19.var show_img=function(n){
20. if (/\d+/.test(n)){
21.var prev=g_index+1
22.g_index=n-1
23. }else{
24.var prev=(g_index>arr.length)?(arr_length-1):g_index+1
25.g_index=(g_index<arr_length-2)?(++g_index):0
26. }
27. if (document.all){
28. g_img.filters.revealTrans.Transition=23;
29. g_img.filters.revealTrans.apply();
30. g_img.filters.revealTrans.play();
31. }
32.arr[prev].className="b"
33.arr[g_index+1].className="bhover"
34.g_img.src=g_items[g_index].img.src
35.g_img.title=g_items[g_index].txt
36.g_imglink.href=g_items[g_index].url
37.g_imglink.target=g_items
38.[g_index].target
39. }
40.for(var i=1;i<arr_length;i++){
41.g_items.push({txt:arr[i].innerHTML,
42.url:arr[i].href,
43.target:arr[i].target,
44.imgfunction(){var o=new Image;o.src=arr[i].getAttribute("for");return o})()})
45.arr[i].title=arr[i].innerHTML
46.arr[i].className="b"
47.arr[i].onclick=function(){
48.event.returnValue=false;
49.show_img(event.srcElement.innerText)
50.}
51.}
52.show_img(1)
53.var t=window.setInterval(show_img,g_sec*1000)
54.g_img.onmouseover=function(){window.clearInterval(t)}
55.g_img.onmouseout=function(){t=window.setInterval(show_img,g_sec*1000)}
56.}
57.window.attachEvent("onload",f)
58.</script>
59.</div>
60.</div>
61.</div>
|