View Single Post
ישן 29-01-06, 18:33   # 4
Morishani
חבר בקהילה
 
Morishani's Avatar
 
מיני פרופיל
תאריך הצטרפות: Jan 2006
הודעות: 124
שלח הודעה באמצעות MSN אל Morishani

Morishani לא מחובר  

RE

טעות שלי, עשיתי onselect במקום onchange. הנה דוגמא פשוטה :

PHP קוד:
<select onchange="document.getElementById('s_img').src = this.options[this.selectedIndex].value">
    <
option value="http://www.hosts.co.il/forums/images/misc/vbulletin3_logo_white.gif">Image 1</option>
    <
option value="http://hosts.co.il/forums/images/banners/shev.com/smallbanner8wz.jpg">Image 2</option>
</
select>
<
img src="blank.gif" id="s_img" />