|
הרשם | ![]() |
שאלות ותשובות | ![]() |
רשימת חברים | ![]() |
לוח שנה | ![]() |
הודעות מהיום | ![]() |
חיפוש | ![]() |
|
![]() |
|
כלים לאשכול | תצורת הצגה |
![]() |
# 3 |
משתמש חדש
|
אני צריך פונקציה במקום אימג' בשביל שאני אוכל להריץ תמונות במקום תמונות.
הנה הקוד שעשיתי: <html dir="rtl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1255"> <title>אנימציה</title> <script> var picindex=0; var x; one= new Image(); one.src = "http://img470.imageshack.us/img470/8022/fda3pvuelicompcopy2ue.gif" two= new Image(); two.src = "http://img190.imageshack.us/img190/4421/champion182yt.jpg" three= new Image (); three.src= "http://img235.imageshack.us/img235/2157/liverpoolbackground6oi.jpg" pic = new Array(); pic[0]=one.src; pic[1]=two.src; pic[2]=three.src; function animation() { document. images ['clasic'].src= pic[picindex]; picindex=picindex+1; if( picindex>2) picindex=0; } function intanimation() { x=setInterval ('animation();', 1000); } </script> </head> <body onload="intanimation();"> <img name="clasic" src="fda3pvuelicompcopy2ue.gif" width="142" height="180"> </body> </html> זה הקוט |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|