Results 1 to 2 of 2

Thread: Tweaking Splash Page

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tweaking Splash Page

    1) Script Title: Tweaking Splash Page

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...amicsplash.htm

    3) Describe problem: I have been having trouble with flash ads bleeding through the splash page. I have done the following.


    1. I have made my flash ads invisible (visibility=hidden)

    2. I need to make them visible again when the splash page is not supposed to load. It seems like I have the wrong path to the element. I think it is getting stuck within the iframe document and not going to my main page.

    Please review my code and that you for your help =)


    Code:
    init:function(){
    	if (this.enablefrequency==1){ //if frequency control turned on
    		if (/sessiononly/i.test(this.displayfrequency)){ //if session only control
    			if (this.getCookie(this.cookiename[0]+"_s")==null){ //if session cookie is empty
    				this.setCookie(this.cookiename[0]+"_s", "loaded")
    				this.launch=true
    			}
    		}
    		else if (/day/i.test(this.displayfrequency)){ //if persistence control in days
    			if (this.getCookie(this.cookiename[0])==null || parseInt(this.getCookie(this.cookiename[0]))!=parseInt(this.displayfrequency)){ //if persistent cookie is empty or admin has changed number of days to persist from that of the stored value (meaning, reset it)
    				this.setCookie(this.cookiename[0], parseInt(this.displayfrequency), parseInt(this.displayfrequency))
    				this.launch=true
    			} 
    		}
    	}
    	else //else if enablefrequency is off
    		this.launch=true
    	if (this.launch){
    		this.output()
    		if (parseInt(this.autohidetimer)>0)
    			setTimeout("splashpage.closeit()", parseInt(this.autohidetimer)*1000)
    	}else{
    		document.getElementById("flashad").style.visibility="visible"
    }

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Your added code is in the right location actually. Are you sure the line:

    Code:
    document.getElementById("flashad").style.visibility="visible"
    works to reveal the Flash content?
    DD Admin

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
  •