1. How do I include a line feed in a string passed to document.createTextNode()? I have tried \n and <br />, but the former is simply swallowed with no effect, and the latter shows literally in the parent div.
2. I have borrowed and implemented a preload image routine that works fine online, but will not give an error message (when it should) if I run it locally. There is an example at:
The example does give the error message (as it should) because one of the images to be loaded, rembrandt.jpg, does not exist in the folder with the others. However, if I load this page locally, it hangs without showing the error. Is there a change I can make that will fix this problem?
Thanks,
JAS
P.S. (I am running Win XP Pro, and FF2).
2. I have borrowed and implemented a preload image routine that works fine online, but will not give an error message (when it should) if I run it locally. There is an example at:
The example does give the error message (as it should) because one of the images to be loaded, rembrandt.jpg, does not exist in the folder with the others. However, if I load this page locally, it hangs without showing the error. Is there a change I can make that will fix this problem?
Thanks,
JAS
P.S. (I am running Win XP Pro, and FF2).