View Single Post
ישן 05-12-05, 14:11   # 3
יהודה
משתמש חדש
 
מיני פרופיל
תאריך הצטרפות: Nov 2005
הודעות: 35

יהודה לא מחובר  

אני צריך פונקציה במקום אימג' בשביל שאני אוכל להריץ תמונות במקום תמונות.
הנה הקוד שעשיתי:
<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>
זה הקוט
  Reply With Quote