Sorry Kor, this is relating to the Background image. The Background colour is fine.
What happens is the onload event calls a function which specifies the Background image for a DIV within the page. When loaded in IE it's fine, but when loaded through any other Browser the results are not the same.
Agree, coothead. But in fact, the whole code was nonsense. The background color was set to white, while the opacity was set to 0. What for? I suspect that should be a JavaScript code which supposes to make a transition. same for the menu.
swatchwatch, judging upon the way you have written the script (as language="JavaScript 1.2"), you are using some medieval codes, written about 10 years ago, for IE only. I am even surprised that they still work, even if only by half
You simply must find some modern similar snippets.
Thanks for the advice Kor, this was somehting I flung together quickly so not concerned about the era of code. Anyway thanks again the deletion of the background colour from #mainscreen worked just fine.
Coothead, this is not a commercial application, it is something that was put together very quickly for a purpose. I asked a simple question I did not request a code review. Kor answered the question perfectly. I think we are going off on a tangent here, I am well aware the code is not cutting edge and quite frankly don't give a monkeys. It works fine in all browsers and with Kor's help I can now close the book on this one.
Coothead, this is not a commercial application, it is something that was put together very quickly for a purpose
It does not matter if the site is commercial or not. The final target is the user. The user has a browser, and browsers did evolve within years.
Now, I suppose you needed a slideshow with fade effect. Should have been more carefully, you must have found dozens up-to-date, cross-browser applications. A simple Google will provide:
Don't mention that you could have used a library like JQuery, or Prototype, or other, for a quick implementation.
But, be as you wish.
Important note: I saw that you have left the full, absolute, URL of your JavaScript files. Considering that those files are hosted an another domain, I dare to ask: what if that server fails or that domain disappears some say? Shouldn't be better to copy those files, put them on your domain and use relative URL?
Bookmarks