/* Up down slideshow Script By Dynamic Drive (www.dynamicdrive.com) For full source code, terms of use, and 100's more scripts, visit http://www.dynamicdrive.com */ ///////configure the below four variables to change the style of the slider/////// //set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow! var scrollerwidth='100%' var scrollerheight='55px' //3000 miliseconds=3 seconds var pausebetweenimages=3000 //configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate tag var slideimages=new Array() //extend this list slideimages[0]='
天氣icon基隆北海岸Keelung
25
22
' slideimages[1]='
天氣icon台北縣Taipei County
25
22
' slideimages[2]='
天氣icon台北市Taipei City
25
23
' slideimages[3]='
天氣icon桃園縣市Taoyuan
26
23
' slideimages[4]='
天氣icon新竹縣市Hsinchu
26
23
' slideimages[5]='
天氣icon苗栗縣市Miaoli
24
21
' slideimages[6]='
天氣icon宜蘭縣市Ilan
25
22
' slideimages[7]='
天氣icon花蓮縣市Hualien County
26
23
' slideimages[8]='
天氣icon台東縣市Taitung
27
23
' slideimages[9]='
天氣icon台中縣市Taichung
29
24
' slideimages[10]='
天氣icon彰化縣市Changhua
29
24
' slideimages[11]='
天氣icon南投縣市Nantou
28
23
' slideimages[12]='
天氣icon雲林縣市Yunlin
29
23
' slideimages[13]='
天氣icon嘉義縣市Chiayi
29
23
' slideimages[14]='
天氣icon台南縣市Tainan
29
24
' slideimages[15]='
天氣icon高雄縣Kaohsiung
29
25
' slideimages[16]='
天氣icon高雄市Kaohsiung City
29
25
' slideimages[17]='
天氣icon屏東縣市Pingtung
29
25
' slideimages[18]='
天氣icon恆春半島Hengchun
29
25
' slideimages[19]='
天氣icon澎湖Penghu
27
24
' slideimages[20]='
天氣icon金門Kinmen
26
22
' slideimages[21]='
天氣icon馬祖Matsu
24
21
' ///////Do not edit pass this line/////////////////////// var ie=document.all var dom=document.getElementById if (slideimages.length>2) iWeather=2 else iWeather=0 function move1(whichlayer){ tlayer=eval(whichlayer) if (tlayer.top>0&&tlayer.top<=5){ tlayer.top=0 setTimeout("move1(tlayer)",pausebetweenimages) setTimeout("move2(document.main.document.second)",pausebetweenimages) return } if (tlayer.top>=tlayer.document.height*-1){ tlayer.top-=5 setTimeout("move1(tlayer)",50) } else{ tlayer.top=parseInt(scrollerheight) tlayer.document.write(slideimages[iWeather]) tlayer.document.close() if (iWeather==slideimages.length-1) iWeather=0 else iWeather++ } } function move2(whichlayer){ tlayer2=eval(whichlayer) if (tlayer2.top>0&&tlayer2.top<=5){ tlayer2.top=0 setTimeout("move2(tlayer2)",pausebetweenimages) setTimeout("move1(document.main.document.first)",pausebetweenimages) return } if (tlayer2.top>=tlayer2.document.height*-1){ tlayer2.top-=5 setTimeout("move2(tlayer2)",50) } else{ tlayer2.top=parseInt(scrollerheight) tlayer2.document.write(slideimages[iWeather]) tlayer2.document.close() if (iWeather==slideimages.length-1) iWeather=0 else iWeather++ } } function move3(whichdiv){ tdiv=eval(whichdiv) //2個都輪播完時 if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){ tdiv.style.top=0+"px" setTimeout("move3(tdiv)",pausebetweenimages) setTimeout("move4(second2_obj)",pausebetweenimages) //alert('return'); return } if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){ tdiv.style.top=parseInt(tdiv.style.top)-5+"px" setTimeout("move3(tdiv)",50) }else{ //alert('i++,i='+i) tdiv.style.top=scrollerheight tdiv.innerHTML=slideimages[iWeather] if (iWeather==slideimages.length-1) iWeather=0 else iWeather++ } } function move4(whichdiv){ tdiv2=eval(whichdiv) if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){ tdiv2.style.top=0+"px" setTimeout("move4(tdiv2)",pausebetweenimages) setTimeout("move3(first2_obj)",pausebetweenimages) return } if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){ tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px" setTimeout("move4(second2_obj)",50) }else{ tdiv2.style.top=scrollerheight tdiv2.innerHTML=slideimages[iWeather] if (iWeather==slideimages.length-1) iWeather=0 else iWeather++ } } function startscroll(){ //alert("startscroll") if (ie||dom){ //alert('move3') first2_obj=ie? first2 : document.getElementById("first2") second2_obj=ie? second2 : document.getElementById("second2") move3(first2_obj) second2_obj.style.top=scrollerheight second2_obj.style.visibility='visible' }else if (document.layers){ //alert('move1') document.main.visibility='show' move1(document.main.document.first) document.main.document.second.top=parseInt(scrollerheight)+5 document.main.document.second.visibility='show' } } //window.onload=startscroll