<BODY onload="init();">
 <div id="name"></div><br />
  <IMG id="img" name="imag" SRC="http://www.phpe.net/images/phplogo/php_win.gif"  BORDER="0" ALT="">
 </BODY>
</HTML>
<script>

var flag = 0;
var imgs = ['http://www.phpe.net/images/phplogo/php_win.gif','http://phpe.net/images/special/5_b.gif','http://www.phpe.net/images/partner/phpclasses.gif']; function init()
{
window.setInterval('sh()', 1500);
} function sh()
{
var t = document.getElementById('name');
var i = document.getElementById('img');

flag = flag > 1?0:++flag;
t.innerText = imgs[flag];
i.setAttribute("src", imgs[flag]);
}</script>