發新話題
打印

圖片轉換控制

圖片轉換控制

如不能顯示語法效果可貼去本站語法測試板試看

 

 

 

 

width="100" height="100"   <<<<圖片大小

 

 

 

http://bunbun000.com/image/05.gif   <<<<圖片網址

 

 

 

 

 

 

 

<table border="0" cellpadding="0">
<tr>
<td width="100%"><img src="
http://bunbun000.com/image/05.gif" width="100" height="100" name="photoslider"></td>
</tr>
<tr>
<td width="100%"><form method="POST" name="rotater">
<div align="center"><center><p>

<script language="JavaScript1.1">
var photos=new Array()
var which=0

/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="
http://bunbun000.com/image/05.gif"
photos[1]="
http://bunbun000.com/image/06.gif"
photos[2]="
http://bunbun000.com/image/07.gif"
photos[3]="
http://bunbun000.com/image/08.gif"

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}
</script><input type="button" value="<<Back" name="B2"
onClick="backward()"> <input type="button" value="Next>>" name="B1"
onClick="forward()"><br>
</center></div>
</form>
</td>
</tr>
</table>

我唔係人.........

TOP

複製上列語法



我唔係人.........

TOP