Forum Moderators: open
2. Second is to estimate how long the graphic will take to download and have a javascript timer set to execute in that many seconds.
I hope that helps.
Here goes for the javascript code
****Paste this code in the <HEAD> section of your HTML page****
<SCRIPT LANGUAGE="JavaScript">
var res = null;
var timeout_val = 10;
res = setTimeout("timer_func()", timeout_val );
timer_func {
textDiv.visibility="visible";
}
</SCRIPT>
**** End of Javascript timer function ***
It has been a long time so I am not 100%. The page were I learned it is [htmlguru.com...] An incredible site to look at. He teaches how to use style sheets and javascript to have animated pages. If the example above doesn't work let me know and I will do better research. Don't forget to create your text <DIV> object and call it "textDiv" in the body of the html.
A full description of the setTimeout function in javascript. You will still have problems with figuring out how long it will take the client to download and start the animated gif. One thing you could do is like a splash screen that shows for 15 seconds. So no matter if it is cable modem or 14.4 phone modem, the splash screen will sit there while your text and animated graphic loads. Make sure you give the customer something to do while they are wait and there is a better chance they won't leave.
Tables, have a table that your graphic is in first and then another table inside it with your text.
From what I read, a table won't show until the whole table is loaded. So with one table inside the other you shouldn't see anything until all the contents is loaded.
I haven't tested this to see if it actually works though, just read it.