אני צריכה ליצור כפתור שכשלוחצים עליו הרקע מהבהב כל 3 שניות
למה זה לא מהבהב לי הוא רק משנה צבע בעת הלחיצה לא מהבהב
תודה רבה!!
<body>
<input type="button" onclick="Flash()" value="flashing Background" />
<body/>
()function Flash
}
;( c = setInterval(CangeColor(),3000
{
() function CangeColor
}
var x = document.body;
( "if (x.style.backgroundColor == "yellow
;"x.style.backgroundColor = "pink
;"else x.style.backgroundColor = "yellow
{
למה זה לא מהבהב לי הוא רק משנה צבע בעת הלחיצה לא מהבהב
תודה רבה!!
<body>
<input type="button" onclick="Flash()" value="flashing Background" />
<body/>
()function Flash
}
;( c = setInterval(CangeColor(),3000
{
() function CangeColor
}
var x = document.body;
( "if (x.style.backgroundColor == "yellow
;"x.style.backgroundColor = "pink
;"else x.style.backgroundColor = "yellow
{
נערך לאחרונה ב: