Witam ostatnio znalazłem taki skrypt by zmieniały się zdjęcia i jest fajny tylko że bym chciał by zdjęcia zmieniały się płynnie proszę o pomoc.
  1.  
  2. <script language="javascript">
  3.  
  4.  
  5.  
  6. /*
  7.  
  8. Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com)
  9.  
  10. For this script and more, visit <a href="http://www.javascriptkit.com" target="_blank">http://www.javascriptkit.com</a>
  11.  
  12. */
  13.  
  14.  
  15.  
  16. var delay=1000 //set delay in miliseconds
  17.  
  18. var curindex=0
  19.  
  20.  
  21.  
  22. var randomimages=new Array()
  23.  
  24.  
  25.  
  26. randomimages[0]="1.jpg"
  27.  
  28. randomimages[1]="5.jpg"
  29.  
  30. randomimages[2]="2.jpg"
  31.  
  32. randomimages[3]="4.jpg"
  33.  
  34. randomimages[4]="3.jpg"
  35.  
  36. randomimages[5]="6.jpg"
  37.  
  38.  
  39.  
  40. var preload=new Array()
  41.  
  42.  
  43.  
  44. for (n=0;n<randomimages.length;n++)
  45.  
  46. {
  47.  
  48. preload[n]=new Image()
  49.  
  50. preload[n].src=randomimages[n]
  51.  
  52. }
  53.  
  54.  
  55.  
  56. document.write('<img name="defaultimage" src="'+randomimages[Math.floor(Math.random()*(randomimages.length))]+'">')
  57.  
  58.  
  59.  
  60. function rotateimage()
  61.  
  62. {
  63.  
  64.  
  65.  
  66. if (curindex==(tempindex=Math.floor(Math.random()*(randomimages.length)))){
  67.  
  68. curindex=curindex==0? 1 : curindex-1
  69.  
  70. }
  71.  
  72. else
  73.  
  74. curindex=tempindex
  75.  
  76.  
  77.  
  78. document.images.defaultimage.src=randomimages[curindex]
  79.  
  80. }
  81.  
  82.  
  83.  
  84. setInterval("rotateimage()",delay)
  85.  
  86.  
  87.  
  88.  
  89.  
  90.