@
@sh
Need help again! Here's the head script...
----------------------------------------------------------------------------------------
function Ash_ChangePicFromSelect(TheSource,TheDestination) {
value = TheSource.options[TheSource.selectedIndex].value;
if (value != '')
if (document.images)
// document.images['TheDestination'].src = value;
document.images(TheDestination).src = value;
}
----------------------------------------------------------------------------------------
AND THE BODY...
----------------------------------------------------------------------------------------
<select name="select" class="Style_TextBoxes"
onChange="Ash_ChangePicFromSelect(this,ContentBoxRow1a)">....................</select>
<img src="public/emailtemplates/boxes/title_specialbreaks_left.gif"
width="111" height="19" id="ContentBoxRow1a" name="ContentBoxRow1a">
----------------------------------------------------------------------------------------
Only on making a select from the SELECT box do I get an error, the error
states...
'document.images[...]' is null or not an object
Have I screwed up how I'm passsing the name of the image? Appreciate your
help again geniuses!!
----------------------------------------------------------------------------------------
function Ash_ChangePicFromSelect(TheSource,TheDestination) {
value = TheSource.options[TheSource.selectedIndex].value;
if (value != '')
if (document.images)
// document.images['TheDestination'].src = value;
document.images(TheDestination).src = value;
}
----------------------------------------------------------------------------------------
AND THE BODY...
----------------------------------------------------------------------------------------
<select name="select" class="Style_TextBoxes"
onChange="Ash_ChangePicFromSelect(this,ContentBoxRow1a)">....................</select>
<img src="public/emailtemplates/boxes/title_specialbreaks_left.gif"
width="111" height="19" id="ContentBoxRow1a" name="ContentBoxRow1a">
----------------------------------------------------------------------------------------
Only on making a select from the SELECT box do I get an error, the error
states...
'document.images[...]' is null or not an object
Have I screwed up how I'm passsing the name of the image? Appreciate your
help again geniuses!!