|
|
|
Слайдшоу
|
|||
|---|---|---|---|
|
#18+
Помогите плжалуйсто с этим скриптом разобратся, у меня не грузятса картинки и кнопки ВПЕРЁД НАЗАД неотображаются <body> <SCRIPT language=JavaScript1.1> var photos=new Array() var photoslink=new Array() var which=0 //колличество photos[0]="http://ССЫЛКА.jpg" photos[1]="http://ССЫЛКА.jpg" photos[2]="http://ССЫЛКА.jpg" photos[3]="http://ССЫЛКА.jpg" photos[4]="http://ССЫЛКА.jpg" photos[5]="http://ССЫЛКА.jpg" photos[6]="http://ССЫЛКА.jpg" photos[7]="http://ССЫЛКА.jpg" photos[8]="http://ССЫЛКА.jpg" //Specify whether images should be linked or not (1=linked) var linkornot=1 //Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1" photoslink[0]="" photoslink[1]="" photoslink[2]="" //do NOT edit pass this line var preloadedimages=new Array() for (i=0;i<photos.length;i++){ preloadedimages =new Image() preloadedimages.src=photos} function applyeffect(){ if (document.all){ photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23) photoslider.filters.revealTrans.stop() photoslider.filters.revealTrans.apply()}} function playeffect(){ if (document.all) photoslider.filters.revealTrans.play()} function keeptrack(){ window.status="Image "+(which+1)+" of "+photos.length} function backward() { if (which>0){ which-- applyeffect() document.images.photoslider.src=photos[which] playeffect() keeptrack() }} function forward(){ if (which<photos.length-1){ which++ applyeffect() document.images.photoslider.src=photos[which] playeffect() keeptrack() }} function transport(){ window.location=photoslink[which]} </SCRIPT> </HEAD> <body> <TABLE cellSpacing=0 cellPadding=0 width=760 border=0> <TR><TD vAlign=top width=510> <CENTER> <SCRIPT> if (linkornot==1) document.write('<a href="java script:transport()">'); document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23);" border=0>') if (linkornot==1) document.write('</a>') </SCRIPT> <BR><FONT face="Arial, Helvetica" color=#c8441e size=-2><A onclick="backward();return false" href="#">НАЗАД</A> <A onclick="forward();return false" href="#">ВПЕРЁД</A> <BR> </body> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.09.2006, 20:07 |
|
||
|
Слайдшоу
|
|||
|---|---|---|---|
|
#18+
Странно, но у меня кнопки отображаются... А вообще, как минимум не хватает точки с запятой в конце почти каждой строки. Хотя как ни странно, то прописав урлы к картинкам в виде http://.... все заработало без проблем, не смотря на отсутствие точек с запятой. Но я бы посоветовал их проставить. Могу также предложить другое слайдшоу: слайдшоу ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.10.2008, 20:27 |
|
||
|
|

start [/forum/topic.php?fid=22&fpage=317&tid=1455756]: |
0ms |
get settings: |
6ms |
get forum list: |
10ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
46ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
23ms |
get tp. blocked users: |
1ms |
| others: | 213ms |
| total: | 316ms |

| 0 / 0 |
