Hi,
i want someone to include a JS file of me which does something neat. I thought i put it up just like Google: you put a script tag in your source and the google js takes care of everything. in my php file is this:
echo '<script type="text/javascript"
src="http://www.site.com/gadget.js">
</script>';
i that gadget.js, i write a span:
document.write('<span id="GadgetPicture>');
document.write('</span>');
window.setTimeout('refreshImage();', 2000);
in the refreshImage function, i want to reference my span:
document.getElementById("GadgetPicture");
But it gives me null... Does anybody know why?
also, document.getElementById("body")
also give null.
Michel