View Full Version : creating a splash screen before entering home page
hakimuddink
12-13-2008, 07:38 AM
I am looking for a javascript code by which when the user first opens my website he sees a splash page which has skip button or which closes automatically after 30 sec and then it moves to the home page of my website.
I have tried creating popups but it gets blocked by popblocker, so please suggest other alternative.
jscheuer1
12-13-2008, 08:57 AM
http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm
hakimuddink
12-13-2008, 09:27 AM
thanks jscheuer1 it worked. thanks a ton
hakimuddink
12-13-2008, 09:30 AM
Ok I thank the user who made this post. Thanks John
hakimuddink
12-16-2008, 05:29 AM
http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm
the splash screen created by this code does not work in earlier browsers such as IE5 or IE 6. How do i make sure it runs on all the browser
jscheuer1
12-16-2008, 06:10 AM
The script will not work in IE 5, but is fine in IE 5.5 and 6 except that it's detection routine excludes them. Change:
browserdetectstr: (window.opera&&window.getSelection) || (!window.opera && window.XMLHttpRequest), //current browser detect string to limit the script to be run in (Opera9 and other "modern" browsers)
to:
browserdetectstr: (document.getElementById), //current browser detect string to limit the script to be run in (Opera9 and other "modern" browsers)
But then IE 5 will get in, so add (as shown):
init:function(){
/*@cc_on @*/
/*@if(@_jscript_version >= 5)
if (navigator.appVersion.replace(/^.*MSIE (\d+\.\d+).*$/, '$1') < 5.5)
return;
@end @*/
if (this.enablefrequency==1){ //if frequency control turned on
if (/sessiononly/i.test(this.displayfrequency)){ //if session only control
if (this.getCookie(t . . .
hakimuddink
12-16-2008, 06:54 AM
thanks John it worked. Thank you so much
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.