|
|
|
|
|
для: Ильдар
(17.12.2007 в 08:41)
| | где вызов rand | |
|
|
|
|
|
|
| Не знаю как назвать эту тему даже,
вообщем так, есть код:
<script language="JavaScript">
var curTime;
var stat;
var aImages = new Array(2);
function showTime()
{
now = new Date();
day = now.getDate();
month = now.getMonth()+1;
hours = now.getHours();
minutes = now.getMinutes();
seconds = now.getSeconds();
curTime = month + "-" + day + "-" + hours + "-" + minutes + "-" + seconds;
aImages[0] = new Image();
aImages[1] = new Image();
aImages[0].src = "rand.php?id=" + curTime;
aImages[1].src = "rand.php?id=" + curTime;
setTimeout("showTime()",1000);
}
showTime();
i = 0;
function rand()
{
document.tool.filters[0].Apply();
document.tool.src = aImages[i].src;
document.tool.filters[0].Play();
i = i + 1;
if (i == 2) i = 0;
setTimeout("rand()",3000);
}
</script>
<img src="rand.php" width="269" height="127" alt="" name="tool" id="tool">
|
До сегодняшнего ддня работал. А сегодня на тебе и стоит.
не заменяеться урл изображения, должно быть вида rand.php?id=12-17-10-40-10
Может кто понял что здесь не правильно? | |
|
|
|
|