Board logo

標題: 圖片轉換控制 [打印本頁]

作者: 蛙    時間: 17-5-2012 16:47     標題: 圖片轉換控制

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

 

 

 

 

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>


作者: 蛙    時間: 25-5-2013 12:32     標題: 複製上列語法








歡迎光臨 笨笨網站超級論壇 (http://www.bunbunhk.com/BBS/Discuz/) Powered by Discuz! 6.0.0