Jump to content

GeorgeFowler

New Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by GeorgeFowler

  1.  

    Like this?

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    #page {
    	display:none;
    }
    
    #advert {
    	border: solid 1px black;
        position: fixed;
        left: 50%;
        top: 50%;
        background-color: white;
        z-index: 100;
    
        height: 400px;
        margin-top: -200px;
    
        width: 600px;
        ;
    
    }
    </style>
    <script>
    window.onload = function() {
    	setTimeout(function() {
    		document.getElementById('advert').style.display = 'none';
    		document.getElementById('page').style.display = 'block';
    	}, 3000);
    }
    </script>
    </head>
    
    <body>
    <div id="page">
    <h3>Hello</h3>
    <p>Welcome on my website</p>
    </div>
    <div id="advert">Hello this is an Advert!</div>
    </body>
    </html>
    
    

    Yeah I can work off from that. That works great! Thanks

  2. <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    #advert {
    	display:none;
    	border: solid 1px black;
        position: fixed;
        left: 50%;
        top: 50%;
        background-color: white;
        z-index: 100;
    
        height: 400px;
        margin-top: -200px;
    
        width: 600px;
        ;
    
    }
    </style>
    <script>
    window.onload = function() {
    	var ad = document.getElementById('advert');
    	
    	setTimeout(function() {
    		ad.style.display = 'block';
    	}, 3000);
    	
    	document.getElementById('close').onclick = function() {
    		ad.style.display = 'none';
                    return false;
    	}
    }
    </script>
    </head>
    
    <body>
    <h3>Wait ...</h3>
    <div id="advert">Hello this is an Advert!<a id="close" href="#">Close</a></div>
    </body>
    </html>
    
    

    Kind of like that but the ad should show onto the page first befoe anything else for a number of seconds before it disappears and the content of the pageis seen. I'm a php coder and no nothing of javascript besides how to read it otherwise I would do it myself. I appreciate the script snip and would love it if you could fix it the way I want it to work.

  3. I want it so on page load the server can deside which url was last posted and clicked this way the other url can be posted this time in the clickable link onto that page.

     

    Basically I have a regular link on the page and I want every other user that clicks that link to be sent to an ad while the other half of users clicks go through content.

  4. Every other time a user/users click on a link I want the link to change to a different url the next time a user clicks onto that link.

     

    For example two links

     

    url1.html

    url2.html

     

    url1.html shows up when a user clicks that link the link auto changes to then when a new user clicks the linke url2.html then back to url1.html and so on?

     

    Don't know where to start on how I would do this let alone have the server remember to keep which ever link to be held for the next user?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.