This looks like a good solution (tested in Opera, IE, Google Chrome, Safari Win, Firefox):
You can actually make this an external script, save in a plain text editor as appdelay.js:
Code:
(function(){
if (window.opera) {
var applet = document.getElementById('app').innerHTML;
document.getElementById('app').innerHTML = '';
}
else
var applet = document.getElementById('app').removeChild(document.getElementById('theapp'));
var doApplet = function(){
if (window.opera)
setTimeout(function(){document.getElementById('app').innerHTML = applet;}, 0);
else
setTimeout(function(){document.getElementById('app').appendChild(applet);}, 0);
};
if (window.addEventListener)
window.addEventListener('load', doApplet, false);
else if (window.attachEvent)
window.attachEvent('onload', doApplet);
})();
Next, surround your applet code, and anything else associated with it whose appearance you want to be delayed with these two div elements (the id's are important), and follow that with the script call, ex:
Code:
<div id="app"><div id="theapp"><APPLET NAME='DigiChat' CODEBASE='http://67.19.116.210/DigiChat/DigiClasses/'
CODE='com.diginet.digichat.client.DigiChatApplet'
HEIGHT=85 WIDTH=210 ALIGN='MIDDLE'
ARCHIVE=Client_5_1_0_7.jar MAYSCRIPT>
<PARAM NAME=cabbase value=Client_5_1_0_7.cab>
<PARAM NAME=siteID VALUE=253220019>
<param name="room" value="ThE ChAtPiT">
<PARAM NAME=MenuItem1 VALUE=Zubee! Online>
<PARAM NAME=MenuLocation1 VALUE=http://www.zubee.com>
<PARAM NAME=KickUserHTML VALUE='http://www.chatpit.com/chatrooms.html'>
<PARAM NAME=helpURL VALUE='http://www.zubee.com/'>
<param name="background" value="396B9C">
<param name="textcolor" value="FFFFFF">DigiChat free teen chat rooms require a Java Compatible web browser to view our free teen chat rooms. World Chat Teen Chat Teen Talk
Afghanistan
Albania
Algeria
Andorr . . .
. . . New Zealand
Message Boards
</applet>
<!-- *** END APPLET CODE *** -->
<font color="#FFFFFF"><font face="Comic Sans MS"><font size=-3><b>Teen chatters under the age of 18 are advised to get parental permission before entering our teen chat.</b></font></font></font>
</div>
</div><script src="appdelay.js" type="text/javascript"></script></td>
Make sure that the appdelay.js file is in the same folder as the page.
BTW, as far as I know, all of this stuff:
Code:
Afghanistan
Albania
Algeria
Andorr . . .
. . . New Zealand
Message Boards
Is just text to be displayed in the event that the browser cannot render the applet. Is all that really necessary, or does it also have some other purpose that I'm unaware of?
If you want to pay me, send me an email by going to:
http://www.dynamicdrive.com/forums/member.php?u=2033
click on Contact Info and then on:
Send a message via email to jscheuer1
use the address it shows, or just take that address to PayPal.com and send money to me using it as the recipient.
P.S. 50 dollars is fine by me.
Bookmarks