tutoriale photoshop, brushes, patterns, gradient
Site afiliat proiectului Webmaster Forums
  ”Tutoriale  
   
  REGULAMENT | Search | Members | Calendar | Help 
 


Post Reply 
slideshow script
03-06-2010, 09:51 AM (This post was last modified: 03-06-2010 09:52 AM by Dizzy.)
Post: #1
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&lt;&lt;" title="Jump to beginning">
<input type=button onclick="rotate(x-1);" value="&lt;&lt;" 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="&gt;&gt;" title="Next Picture">
<input type=button onclick="rotate(this.form.slide.length-1);" value="&gt;&gt;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
Find all posts by this user
Quote this message in a reply
03-06-2010, 04:29 PM
Post: #2
RE: slideshow script
Unde ai <img ... name="show">
Adauga asa:
<img ... width="400" name="show">

- Primim gratis, sa oferim gratis
Cursuri online | PHP - MySQL | Jocuri flash
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 

 Invatam Net
Esti nou pe aici? Vorbeste-ne despre tine.
Citeste articole si tutoriale unice.
Ai un site? Iti putem oferi un review.

  Parteneri

  

  

  

  

  

  

  Affiliate Banner