03-06-2010, 09:51 AM
(This post was last modified: 03-06-2010 09:52 AM by Dizzy.)
|
|
Dizzy
Membru
 
|
Posts: 34
Joined: Mar 2009
Reputation: 0
|
|
slideshow script
salut.
va rog ajutatima si pe mine cu ceva..
am acest script
Code:
var x=0;
function rotate(num){
sl=document.slide_form.slide;
x=num%sl.length;
if(x<0){x=sl.length-1};
document.images.show.src=sl.options[x].value;
sl.selectedIndex=x;}
function auto() {
if(document.slide_form.slidebutton.value == "Stop"){
rotate(++x);window.setTimeout("auto()", 5000);}}
</script>
<form name="slide_form">
<table cellpadding="3" style="border:1px black solid;border-collapse:collapse;">
<tr><th align=center>Pictures from my trip</th></tr>
<tr><td align=center>
<img src="http://img13.imageshack.us/img13/5654/wallpaper1080p8.jpg" name="show">
</td></tr>
<tr><td align=center style="border:1px black solid;">
<select name="slide" onChange="rotate(this.selectedIndex);">
<option value="http://img13.imageshack.us/img13/5654/wallpaper1080p8.jpg" selected></option>
<option value="http://img13.imageshack.us/img13/5654/wallpaper1080p8.jpg"></option>
</select>
</td></tr>
<tr><td align=center style="border:1px black solid;">
<input type=button onclick="rotate(0);" value="ll<<" title="Jump to beginning">
<input type=button onclick="rotate(x-1);" value="<<" title="Last Picture">
<input type=button name="slidebutton" onClick="this.value=((this.value=='Stop')?'Start':'Stop');auto();" value="Start" title="Autoplay" style="width:75px;">
<input type=button onclick="rotate(x+1);" value=">>" title="Next Picture">
<input type=button onclick="rotate(this.form.slide.length-1);" value=">>ll" title="Jump to end">
</td></tr></table></form>
cand il bag pe pagina are dimensiunea prea mare vreau sa il redimensionez la 400 x 400 sau 600 x 600 ma poate ajuta cineva?
PascalDesign
|
|
|