Reklam Alanı

JQUERY ile Belirli Sürede Resim Değiştirme

index.html dosyası oluşturup kodları dosyanın içine kopyalayın , dosyanın bulunduğu dizine örnek olarak test1.jpg , test2.jpg formatlarında dosyaları oluşturun ve index.html yi çalıştırın.

<html>
<head>
<script language="javascript">
resim= new Image();
resim.src='test1.jpg';
setTimeout("document.images[0].src=resim.src","3000");

</script>
</head>

<body>
<img  src="test2.jpg" name="resim_bu" style="width:400px; height:500px;"/>
</body>
</html>


Hiç yorum yok