Board logo

標題: 圖片選擇 [打印本頁]

作者: 蛙    時間: 12-5-2012 12:23     標題: 圖片選擇

 

 

 

<SCRIPT LANGUAGE="JavaScript">
function loadIndividual(form) {
var gifName = form.individual.options[form.individual.selectedIndex].value
document.thumbnail1.src = gifName
}
</SCRIPT>
<TABLE BORDER=0>
<TR><TD colspan="2" align="center">
<IMG SRC="
http://bunbun000.com/image/03.gif" NAME="thumbnail1"></TD>
</TR>
<FORM NAME="selections">
<TD>
<SELECT NAME="individual" onChange="loadIndividual(this.form)">
<OPTION VALUE="
http://bunbun000.com/image/03.gif">林依晨
<OPTION VALUE="
http://bunbun000.com/image/01.gif">楊丞琳
<OPTION VALUE="
http://bunbun000.com/image/07.gif">尹恩惠
<OPTION VALUE="
http://bunbun000.com/image/02.gif">楊穎
</SELECT>
</TD></FORM></TABLE>

 

 

圖片網址及說明可自行更改


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








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