Forum Moderators: open
![CDATA[
your javascript here
]]
in the head-tag:
<script type="text/javascript">
// <![CDATA[
function preloadimages() {
var imgdir = "/images/";
box1 = new Image;
box1.src = imgdir+"bullet-bluebox.gif";
box2 = new Image;
box2.src = imgdir+"bullet-palebluebox.gif";
box3 = new Image;
box3.src = imgdir+"bullet-palecheck.gif";
}
// ]]>
</script>
is this good too
<script type="text/javascript">
<!--
function preloadimages() {
var imgdir = "/images/";
box1 = new Image;
box1.src = imgdir+"bullet-bluebox.gif";
box2 = new Image;
box2.src = imgdir+"bullet-palebluebox.gif";
box3 = new Image;
box3.src = imgdir+"bullet-palecheck.gif";
}
//-->
</script>
Are you using XHTML 1.0 or 1.1?
What MIME type do your documents get served as?
[osnews.com...]
[webmasterworld.com...]
the above links ought to be some of the most recent discussions, and should address all of your issues - at least if you also follow the link to hixie.