1.

Solve : IE shows properly, FF doesn't?

Answer»

Hi

On my site that i'm developping I have a script that shows an loading picture intill the site is fully loaded


However it shows properly in internet explorer, FIREFOX doesn't. The image isn't properly between the BORDERS of my div (see picture)

Does anyone know how to solve this?Uploaded script in a text file. The forum didn't allow me to use javascript in my postWhere on your site is the loading graphic? I can't find it.On my site, which isn't online (yet). I run out from LOCALHOST but that has the same effect as a accessable webserver. I just think the PROBLEM is in the script, the image doesn't matter.The problem is in the interpretation of CSS.  Instead of

Code: [Select]document.write('<div id="loading" width="32" height="32" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"><IMG border="0" src="images/laden.gif" width="32" height="32"></div>');try

Code: [Select]document.write('<img border="0" id="loading" src="images/laden.gif" style="border: 1px solid; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; width: 32px; height: 32px;" />');You can change the image with document.getElementById('loading').src =...OK, that worked. Thanks for the help, Rob!  No problem bud.



Discussion

No Comment Found