Results 1 to 7 of 7

Thread: creating a splash screen before entering home page

  1. #1
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default creating a splash screen before entering home page

    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,947
    Thanks
    43
    Thanked 3,193 Times in 3,156 Posts
    Blog Entries
    12

  3. #3
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks jscheuer1 it worked. thanks a ton

  4. #4
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok I thank the user who made this post. Thanks John

  5. #5
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Splash screen i created does not work on earlier versions

    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

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,947
    Thanks
    43
    Thanked 3,193 Times in 3,156 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    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:

    Code:
    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):

    Code:
    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 . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks John it worked. Thank you so much

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •