How Can I Close And Make This Code Startup

Discussion in 'JavaScript' started by kytro360, Jul 21, 2010.

  1. #1
    I have this piece of code that when someone go's to my site its suppose to load up and when they do load up they have the option of closing it.

    The thing is, is that it doesnt do neither of those things. Can you help? Here is the code:


    <body onLoad='document.getElementById(&apos;light&apos;).style.display=&apos;block&apos;;document.getElementById(&apos;fade&apos;).style.display=&apos;block&apos;'>
    		
    	<style type='text/css'>
    	.black_overlay{
    		display: none;
    		position: absolute;
    		top: 0%;
    		left: 0%;
    		width: 100%;
    		height: 100%;
    		background-color: black;
    		z-index:1001;
    		-moz-opacity: 0.8;
    		opacity:.80;
    		filter: alpha(opacity=80);
    	}
    	.white_content {
    		display: none;
    		position: absolute;
    		top: 25%;
    		left: 25%;
    		width: 300px;
    		height: 250px;
    		padding: 16px;
    		border: 1px solid black;
    		background-color: white;
    		z-index:1002;
    		overflow: auto;
    	}
    	</style>
    						<div class='white_content' id='light'>
    						
    						<div class='separator' style='TEXT-ALIGN: center; CLEAR: both'>
    										<a href='http://www.dshs.state.tx.us/chscontracts/newsletter/summer2009/images/pics/checklist.jpg' imageanchor='1' style='MARGIN-BOTTOM: 1em; FLOAT: left; CLEAR: left; MARGIN-RIGHT: 1em'><img border='0' height='200' src='http://www.dshs.state.tx.us/chscontracts/newsletter/summer2009/images/pics/checklist.jpg' width='115'/></a></div>
    										&quot;Join our newsletter and get a <b><span style='color:red;'>FREE</span> </b>copy of the <b>Adrenaline Gaming Checklist</b>&quot;
    
    										<b>
    
    										Plus get daily updates from Game Adrenaline sent to your email!</b>
    
    
    
    										<form action='http://feedmailpro.com/subscriptions' method='post'>
    										<input name='subscriber[feed_id]' type='hidden' value='708'/>
    
    										<input class='textf' gtbfieldid='6' name='subscriber[email]' onblur='if (this.value == &apos;&apos;) {this.value = &apos;Enter your email address&apos;;}' onfocus='if (this.value == &apos;Enter your email address&apos;) {this.value = &apos;&apos;;}'/>
    
    										        <input class='subscribesubmit' src='http://i263.photobucket.com/albums/ii150/mohamedrias/subscribesubmit.png' type='image'/></form>
    
    										<div style='TEXT-ALIGN: center'>
    										<span style='font-size:x-small;'><i><span style='FONT-WEIGHT: bold'>We respect your privacy and we will never spam you.</span></i></span></div>
    
    
    										<div style='TEXT-ALIGN: center'/>
    					 <a href='javascript:void(0)' onclick='document.getElementById(&apos;light&apos;).style.display=&apos;none&apos;;document.getElementById(&apos;fade&apos;).style.display=&apos;none&apos;'>Close</a></div>
    
    
    					<div class='black_overlay' id='fade'/>
    
    Code (markup):

     
    kytro360, Jul 21, 2010 IP
  2. ashishhbti

    ashishhbti Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Replied on the other thread..


    Please check there...........


    Thanks
     
    ashishhbti, Jul 21, 2010 IP
  3. kytro360

    kytro360 Active Member

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #3
    bump......still need fix
     
    kytro360, Jul 22, 2010 IP