• 04-06-2009, 13:10:51
    #1
    arkadaşlar merhaba ben bu image rotator uygulamasını kullanıyorum çokda hoş fakat tek sıkıntım dönmekte olan resimlere link veremiyor olmam bu konuda bilgisi olan arkadaslardan rica ediyorum buradan yazssınlar saygılarımla
  • 09-06-2009, 11:27:03
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Söyle bir kod buldum, bilmem isine yararmi arkadasim
    <SCRIPT LANGUAGE="javascript">02.<!--03. 04.// note: the 2nd image ("two") will be the first to appear in the animation05.// all images must be the same dimensions06.// works in NS 3, IE/NS 4+07.// other browsers or javascript disabled will see only the original image and link and no animation08. 09.var has_loaded = 0;10. 11.if (document.images) {12. 13.   one=new Image14.   one.src="images/logo1.gif"15.   16.   two=new Image17.   two.src="images/logo2.gif"18.   19.   three=new Image20.   three.src="images/logo3.gif"21. 22.   has_loaded = 1;23.}24. 25.go_URL = new Array();26.   go_URL[0]="http://www.cnn.com/";27.   go_URL[1]="http://www.yahoo.com/";28.   go_URL[2]="http://www.excite.com/";29. 30.imgID = new Array();31.   imgID[0]=one.src;32.   imgID[1]=two.src;33.   imgID[2]=three.src;34. 35.var pause = 3000 // pause how long in milliseconds (1000 = 1 sec)36. 37. 38.var a = 0;39.var b = (go_URL.length - 1);40. 41. 42.function rotate(imgN) {43. 44.   if (has_loaded == 1) {45. 46.  if (a == b) {47. a = 0;48.  }49.  else {50. a++;51.  }52.  53.  document.images[imgN].src = imgID[a];54.  setTimeout('rotate("rotate_pic")',pause);55.  56.   } // end of if has_loaded57. 58.   if (window.status != '') { window.status = go_URL[a]; return true; }59.} // end of function rotate60. 61.function goto_url() {62.   if (document.images) {63.  document.location=(go_URL[a]);64.   }65.   else {66.  return false;67.   }68.} 69. 70.//-->71.</SCRIPT>