Jump to content

google ad code not working


raee

Recommended Posts

My layout works perfectly fine in both IE and FF without teh google ad code but the minute I add the ad code it messes with my layout.With the ad code, in IE, the left side of my site disappears. Ex: navigation.With the ad code, in FF, the content in the center of my site disappears.what could be causing this?any help would be appreciated.Thanks.

Link to comment
Share on other sites

Hi,Where did you put your code? Can you show us your code?Complements \o/
I've tried putting my code everywhere.heres the code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><title>Push Play Source// your #1 site for Push Play./title></head><body><!-- ... body of document ... --></body></html><html><head><title>Push Play Source// your #1 site for Push Play.</title><link rel="stylesheet" type="text/css" href="style.css"></head><body style="background: url(http://img90.imageshack.us/img90/5454/backenw4.png); background-color: #181818; background-repeat:repeat-y;"><div style="position: absolute; top: 0px; left: 20px;"><img src="http://i12.photobucket.com/albums/a208/Rachel_891/lv2bancopy1.png" border=0></div><div style="LEFT: 35px; OVERFLOW: hidden; POSITION: absolute; TOP: 360px; width:251px; height:102px;"><font face="arial" size="1" color="white"><marquee direction=up scrollamount=2>May 3 2008	 6:00P	Sachem East HS<br>	 <i>Farmingville, New York<br></i>May 4 2008	 8:30A	Jones Beach State Park<br>	 <i>Wantagh, New York<br></i>May 9 2008	 8:00P	Ronkonkoma Middle School<br>	 <i>Ronkonkoma, New York<br></i>May 17 2008	 12:00P	Z100 Zootopia Preshow @ Izod Center<br>	 <i>E. Rutherford, New Jersey<br></i>May 22 2008	 8:00P	North Babylon HS<br>	 <i>North Babylon, New York<br></i>May 25 2008	 6:00P<br>	The Social in Downtown Orlando<br>	 <i>Orlando, Florida<br></i>May 30 2008	 9:00P	Scarsdale Teen Center <br>	<i>Scarsdale, New York<br></i>May 31 2008	 7:30P	Relay For Life Concert & Benefit<br>	 <i>Southold, New York<br></i>Jun 14 2008	 7:00P	North Sachem High <br>	<i>Lake Ronkonkoma, New York<Br></i>Jun 25 2008	 8:00P	What Teens Want Conference @ Times Center<br>	 <i>New York, New York</i><br></marquee></font></div><div style="LEFT: 286px; OVERFLOW: hidden; POSITION: absolute; TOP: 360px; width:200px; height:102px;"><font face="arial" size="1" color="white"><center> Updates</center></font></div><div style="LEFT: 531px; OVERFLOW: hidden; POSITION: absolute; TOP: 360px; width:221px; height:102px;"><font face="arial" size="1" color="white"><a href="http://myspace.com/rachel_890">Rae's Myspace</a><br><a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=18736007">Caitlyn's Myspace</a><br><a href="http://pushplaysite.com">Official Push Play Site.</a><br><a href="http://myspace.com/pushplayrox">Official Push Play Myspace</a><br><a href="http://myspace.com/officalcanadianpushplay">Official Canadian Push Play Street Team</a><br><a href="http://www.justin.tv/officialpushplay">Push Play Chat</a><Br> </font></div><div style="LEFT: 285px; OVERFLOW: hidden; POSITION: absolute; TOP: 510px; width:468px; height:60px;"><script type="text/javascript"><!--google_ad_client = "pub-1421452112578246";google_alternate_color = "FFFFFF";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_type = "text";google_ad_channel = "2364410786";google_color_border = "FFFFFF";google_color_bg = "5f5f5f";google_color_link = "#0000FF";google_color_text = "000000";google_color_url = "#0000FF";</script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><div style="position:absolute; background-color:#494949; left:271px; top:578px; width:500px;border:1px; overflow: auto; overflow-x: hidden;"><div class="content"></div></div><div style="position:absolute;background-color:#494949; left:20px; top:508px; width:225px;border:1px; overflow: hidden; overflow-x: hidden;"><div class="side"><h1>Welcome</h1>Welcome to <b>Push Play Source</b>. This site just opened, so hopefully with time we will grow into something bigger and better. I will be updating this site daily and keeping you update on everything Push Play. So keep checking back =] <br> Raee</br></div><br><div class="side"><h1>Site Stats</h1><b>Site Name:</b> Push Play Source<br><b>Owner:</b> Rachel<br><b>Co-Web:</b> Caitlyn<br><b>Opened:</b> April 7, 2008<br><b>Layout by:</b> Rachel<br><b>Version:</b> 1.0<br><b>Host:</b> <a href="http://www.fanbased.net">Fanbased</a><br></div><br><div class="side"><h1>Navigation</h1><center><a class="navi" href="pushplay.php">Push Play</a><a class="navi" href="gallery.php">Gallery</a><a class="navi" href="media.php">Media</a><a class="navi" href="foryou">The Fans</a><a class="navi" href="site.php">Site/WWW</a></center></div><br><div class="side"><h1>Music</h1>   <center><p style="visibility:visible;"><embed src="http://www.mp3asset.com/swf/mp3/minime.swf" quality="high" wmode="transparent" flashvars="myid=9459175&path=2008/04/29&mycolor=0xF0FFC9&mycolor2=0xA9DA88&mycolor3=0x62997A&autoplay=true&rand=0&f=3&vol=100&pat=0" width="160" height="68" name="myflashfetish" align="middle"type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" border="0" /><br><a href="http://www.myflashfetish.com/playlist/9459175" target="_blank"></a><br></p></center><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/bT*xJmx*PTEyMDk1MTc1NTQ2NzQmcHQ9MTIwOTUxNzU2MDI2NyZwPTE4MDMxJmQ9Jm49Jmc9MQ==.jpg" /></div>   <br>  <div class="side"><h1>Forum</h1><br><center><img src="http://i12.photobucket.com/albums/a208/Rachel_891/pp-1.jpg" border="0"><Br>Coming Soon!<br></center></div><br><div class="side"><h1>Push Play Links</h1><a href="http://myspace.com/pushplayrox">Push Play's Official Myspace</a><br><a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=215772637">Official Push Play Street Team</a><br><a href="">Official Push Play Youtube</a><Br><a href="http://www.justin.tv/officialpushplay">Push Play Chat</a><Br></div><br><div class="side"><h1>Tagboard</h1>01. <b>No</b> advertising.<br>02. <b>No</b> inapproprate language. <br>03. Chat away =]<br><!-- BEGIN CBOX - www.cbox.ws --><div align="center" id="cboxdiv"><iframe frameborder="0" width="220" height="305" src="http://www5.cbox.ws/box/?boxid=199624&boxtag=6h9c72&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#636C75 1px solid;" id="cboxmain"></iframe><br/><iframe frameborder="0" width="220" height="75" src="http://www5.cbox.ws/box/?boxid=199624&boxtag=6h9c72&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#636C75 1px solid;border-top:0px" id="cboxform"></iframe></div><!-- END CBOX --></div><br><div class="side"><h1>Disclaimer</h1><br>We are not Push Play, just simply a fansite. We have no contact with the band and do not know them personally.<br><center><div id="eXTReMe"><a href="http://extremetracking.com/open?login=raee"><img src="http://t1.extreme-dm.com/i.gif" style="border: 0;"height="38" width="41" id="EXim" alt="eXTReMe Tracker" /></a><script type="text/javascript"><!--var EXlogin='raee' // Loginvar EXvsrv='s11' // VServerEXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?EXb=EXs.colorDepth:EXb=EXs.pixelDepth;navigator.javaEnabled()==1?EXjv="y":EXjv="n";EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";EXd.write("<img src=http://e2.extreme-dm.com","/"+EXvsrv+".g?login="+EXlogin+"&","jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&","l="+escape(EXd.referrer)+" height=1 width=1>");//--></script><noscript><div id="neXTReMe"><img height="1" width="1" alt=""src="http://e2.extreme-dm.com/s11.g?login=raee&j=n&jv=n" /></div></noscript></div></center></div><br><br><br></body></html>

thanks for your help. i really appreciate it.

Link to comment
Share on other sites

The google ad script is missing a closing comment token, so it is treating a bunch of stuff as being commented out, hence it isn;t displaying.add the "-->" just before the google ad closing script tag.

<script type="text/javascript"><!--google_ad_client = "pub-1421452112578246";google_alternate_color = "FFFFFF";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_type = "text";google_ad_channel = "2364410786";google_color_border = "FFFFFF";google_color_bg = "5f5f5f";google_color_link = "#0000FF";google_color_text = "000000";google_color_url = "#0000FF"; --></script>

see if that helps. other than that, the page seems to be doing exactly what it is told to do. Lots of absolute positioning. i don't know if that is a good thing. it might be causing you some grief.

Link to comment
Share on other sites

Hi,Why do you have this in your code?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><title>Push Play Source// your #1 site for Push Play./title></head><body><!-- ... body of document ... --></body></html><html><head><title>Push Play Source// your #1 site for Push Play.</title><link rel="stylesheet" type="text/css" href="style.css"></head><body style="background: url(http://img90.imageshack.us/img90/5454/backenw4.png); background-color: #181818; background-repeat:repeat-y;">

Complements \o/

Link to comment
Share on other sites

i already deleted that. unfortunately it made no difference.but i put the --> in my code and the ad at least started showing up and didnt mess up my nav. where would you put the code in the layout tho because i cant seem to get it to work with my content. i want it just above my content but when i put it there my content disappears. :S it hates me.

Link to comment
Share on other sites

When I was checking your page, there was only a left side column and the Google ads at the top of the right hand (wider) side.What exactly did you want for design? Google ads at the top of the right hand side?

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...