When I put the following code on a page the image on the page changes
when I mouse over the links. Now I was thinking I could instead create
a popup menu to change the image on the page, see second code sample.
But it doesn't work. What am I doing wrong? Or is this just not
possible? What am I missing? (Must be something obvious:-/)
Any help appreciated..
sample 1
===========
<a href='#' onmouseover="do cument.pict.src ='pict_1.jpg'"> Picture
1</a><br>
<a href='#' onmouseover="do cument.pict.src ='pict_2.jpg'"> Picture
2</a><br>
<a href='#' onmouseover="do cument.pict.src ='pict_3.jpg'"> Picture
3</a><br>
<img name='pict' src='initial.jp g border='0'>
===========
sample 2
===========
<select name='selectIma ge'>"
<option value='pict_1'
onchange="docum ent.pict.src='p ict_1.jpg'">Pic ture 1</option>
<option value='pict_2'
onchange="docum ent.pict.src='p ict_2.jpg'">Pic ture 2</option>
<option value='pict_3'
onchange="docum ent.pict.src='p ict_3.jpg'">Pic ture 3</option>
</select>
<img name='pict' src='initial.jp g border='0'>
===========
--
Bart
when I mouse over the links. Now I was thinking I could instead create
a popup menu to change the image on the page, see second code sample.
But it doesn't work. What am I doing wrong? Or is this just not
possible? What am I missing? (Must be something obvious:-/)
Any help appreciated..
sample 1
===========
<a href='#' onmouseover="do cument.pict.src ='pict_1.jpg'"> Picture
1</a><br>
<a href='#' onmouseover="do cument.pict.src ='pict_2.jpg'"> Picture
2</a><br>
<a href='#' onmouseover="do cument.pict.src ='pict_3.jpg'"> Picture
3</a><br>
<img name='pict' src='initial.jp g border='0'>
===========
sample 2
===========
<select name='selectIma ge'>"
<option value='pict_1'
onchange="docum ent.pict.src='p ict_1.jpg'">Pic ture 1</option>
<option value='pict_2'
onchange="docum ent.pict.src='p ict_2.jpg'">Pic ture 2</option>
<option value='pict_3'
onchange="docum ent.pict.src='p ict_3.jpg'">Pic ture 3</option>
</select>
<img name='pict' src='initial.jp g border='0'>
===========
--
Bart
Comment