// javascript // Alternately display a series of pictures
Var imgurl = new array ();
Var imglink = new array ();
VAR adnum = 0;
Imgurl [1] = "http://image2.sina.com.cn/ty/asian2004/u350p6t189d1f3981dt20040803180803.jpg";
IMGLINK [1] = "/ z / chn-Iran / photo / 3712 / index.shtml";
Imgurl [2] = "http://image2.sina.com.cn/ty/asian2004/u350p6t189d1f4252dt20040803180949.jpg";
IMGLINK [2] = "/ z / chn-Iran / photo / 3712 / index.shtml";
Imgurl [3] = "http://iMage2.sina.com.cn/ty/asian2004/u355p6t189d1f4254dt20040624191749.jpg";
IMGLINK [3] = "/ z / chn-Iran / photo / 3672 /";
Imgurl [4] = "http://image2.sina.com.cn/ty/asian2004/u355p6t189d1f4256dt20040624191749.jpg";
IMGLINK [4] = "/ z / chn-Iran / photo / 3672 /";
Imgurl [5] = "http://image2.sina.com.cn/ty/asian2004/u355p6t189d1f4258dt20040803001422.jpg";
IMGLINK [5] = "/ z / chn-Iran / photo / 3672 /";
VAR IMGPRE = New Array ();
VAR J = 0;
FOR (i = 1; i <= 5; i ) {
IF ((imgurl [i]! = ") && (imglink [i]! =")) {
J ;
} else {
Break;
}
}
Function PlayTran () {
IF (Document.all)
Imginit.filters.revealTrans.Play ();
}
Var key = 0;
Function nextad () {
IF (adnum Else adnum = 1; IF (Key == 0) { Key = 1; } else if (document.all) { Imginit.filters.reveAltrans.Transition = 6; Imginit.filters.reveAltrans.Apply (); PlayTran (); } Document.images.imginit.src = imgurl [adnum]; THTIMER = setTimeout ("NextAd ()", 6000); } Function gourl () { Jumpurl = imglink [adnum]; Jumptarget = '_ blank'; IF (jumpurl! = '') { IF (JumpTarget! = ') WINDOW.OPEN (JUMPURL, JUMPTARGET); ELSE Location.href = jumpurl; } } script>