Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    pop-up menu for ads

    hi all...

    hope you could help..

    i am planning to create a site that all visitors must click to a support link before they could enter to the main page. this support link would pop-up the ads frm a certain adsense.

    this is the sample site... http://www.nationalwinners.co.uk/

    i tried opening the codes however i cannot seem to get the scripts.. can u help me?

    thanks!

  • #2
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i supp u shld disabe the enter button till one clicks on the support button ....


    check this code ...hope this helps


    <script language="javascript" type="text/javascript">
    submitOK = false
    function SetConfirm(){
    submitOK = true;
    document.temp.confirm.value = "Confirmed";
    document.temp.submit1.value = "Submit";
    }

    function checkSubmit(){
    if(submitOK)
    document.temp.submit();
    }

    </script>
    <form name="temp">
    <input type="button" name="confirm" value="Click To Confirm" onClick="SetConfirm()"><br>
    <input type="button" name="submit1" value="Must Confirm" onClick="checkSubmit()">
    </form>

  • #3
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you for the idea kamal...

    i've tried the script however when the button "click to confirm" is clicked a new set of buttons appear and initially submit is activated. do you have a sample script that would initially deactivate the submit button and will only activate once confirm submit is clicked? (just like this http://www.nationalwinners.co.uk/).

    also, the adsense i mentioned earlier gave me a series of codes that would display an ad button. what do you think i should do to directly link to the random ads that the adsense gave me? (same case that the above url do)

    thank you kamal again for helping me. hope you could help me again..

  • #4
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,535
    Thanks
    3
    Thanked 513 Times in 500 Posts
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
    
    <html>
    
    <head>
      <title></title>
    <script language="JavaScript" type="text/javascript">
    <!--
    var Allow;
    function GoToURL(url){
     if (Allow){ window.top.location=url; }
    }
    
    function ShowIF(id){
     var ifrme=document.getElementById(id);
     ifrme.style.visibility='visible';
     setTimeout(function(){ ifrme.style.visibility='hidden'; Allow=true; },5000) ;
    }
    //-->
    </script></head>
    
    <body>
    <input type="button" name="" value="Terms" onclick="ShowIF('fred');" ><br>
    <input type="button" name="" value="Enter" onclick="GoToURL('http://www.vicsjavascripts.org.uk');" ><br>
    <div id="fred"  style="position:absolute;visibility:hidden;z-index:10;left:100px;top:100px;"  >
    <iframe  src="http://www.codingforums.com" width="500" height="500"></iframe>
    </div>
    </body>
    
    </html>
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #5
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you vic.. ive actually modified the script you gave and it WORKS!

    thank you...


  •  

    Posting Permissions

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