M
mark
Hi i get an error on this line of my script. It works in mozilla but not IE6
Here is the error message
document[...] is null or not an object
Here is the function - also images for this button rollover are preloaded
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function roll(img_name, img_src)
{
document[img_name].src = img_src;
}
//-->
</SCRIPT>
call function with this
onmouseover="roll('sub_but1', 'http://www.kidsoft.org.uk/buttons/home1a.gif')"
onmouseout="roll('sub_but1', 'http://www.kidsoft.org.uk/buttons/home1.gif')"
Any ideas or subtle pointers
many thanks
Here is the error message
document[...] is null or not an object
Here is the function - also images for this button rollover are preloaded
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function roll(img_name, img_src)
{
document[img_name].src = img_src;
}
//-->
</SCRIPT>
call function with this
onmouseover="roll('sub_but1', 'http://www.kidsoft.org.uk/buttons/home1a.gif')"
onmouseout="roll('sub_but1', 'http://www.kidsoft.org.uk/buttons/home1.gif')"
Any ideas or subtle pointers
many thanks