HTML - Insert Adsense Code?
Hello,
I am needing to insert an adsense code in the side bar of my homepage... Alittle confused on where to put the code, I would appreciate in assistance... Here is the code where I want to put the adsense code Code: <div class="featured_categories_bar round5px"> {BROWSE_MAIN_CATEGORIES} </div> <div class="index_main_box"> <div class="sidebar round5px masoned"> <h3>{LANG[html][INDEX][14]}</h3> <div class='reset_index_location'>{RESET_LOCATION_MESSAGE}</div> {INDEX_LOCATIONS} </div> <div class="homepage_right"> <!--Start cat--> {FEATURED_ADS} <!--End cat--> <!--Start all cat--> <div class="list-area"> {BROWSE_CATEGORIES} </div> <!--End all cat--> <script type="text/javascript"> var moreLinkName = "{LANG[php][INDEX][2]}"; $(document).ready(function(){ $(".sidebar").masonry({columnWidth: 105, maxCount: 10, maxCountShift: 1 }); $(".list-area").masonry({columnWidth: 250, singleMode: true, animate: true }); $(".list-area dl").hover(function(){ $(this).addClass("box-shadow"); }, function(){ $(this).removeClass("box-shadow")}); $(".listing").hover(function(){ $(this).addClass("box-shadow"); }, function(){ $(this).removeClass("box-shadow")}); $(".next").click(function(){ $('.ad-thumbs').scrollTo( '+=200', 200, {axis: 'x'}, { queue:true } ); return false; }); $(".prev").click(function(){ $('.ad-thumbs').scrollTo( '-=200', 200, {axis: 'x'}, { queue:true } ); return false; }); }); </script> </div> <div class="clear_both_fix"> </div> </div> <style type="text/css"> {LOCATIONS_CSS} </style> The side bar starts where I've got the code in red... Again, I want the google ad the be placed below the side bar... If you need a better look at what I am wanting, it's the "Where are you looking?" on the homepage of buyorpost.com. Thanks in advance! Robert D. Similar TutorialsI wanted to update an old website and thought to put AdSense on it but can not get it to work. The site is called dvdalien.com and I have tried to place the code on the left sidebar at the bottom. But as you can see its going to the top of my sidebar sections. I have tried adding the code to the end of series.asp which is the location now and its at the top. I have tried to add it to default.asp under: <!-- #include virtual="shared/series.asp" --> AdSense </table> But that only showed it on the home page and still at the same location. Anyone know what I can do to put in under the section series, all pages, and maybe 75% more to the right. Thanks for any help. The template designer of the template i used embedded his adsense in my blog. I found the part which is related to adsense but dont know how much to delete. Please help me remove that adsense. I dont know HTML. that is why.. Hi.. Can someone please edit my code so the empty part of the sidebar is as tall as the iframe, i want to put a hit counter/online counter in that empty space but it doesnt go down! these are the codes i would like for someone to put centred just under the site information in my site Code: <div id="eXTReMe"><a href="http://extremetracking.com/open?login=callumeb"> <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='callumeb' // Login var EXvsrv='s11' // VServer EXs=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=callumeb&j=n&jv=n" /> </div></noscript></div> Code: <!-- Start FastOnlineUsers.com --> <a href="http://www.fastonlineusers.com"><script type="text/javascript" src="http://fastonlineusers.com/on3.php?d=www.anastaciadreams.com.com"></script> online</a> <!-- End FastOnlineUsers.com --> my CSS (HTML can be sourcecode viewed at www.anastaciadreams.com) Code: body { background: url(bkbk.jpg); margin: 0; } #container { width: 748px; margin: 0 auto; } #header { margin-top: 18px; height: 379px; background: url(Velvet_lightslay/header.jpg) no-repeat; } #header img { float: right; } #iframe iframe{ float: right; width: 461px; height: 1345px; } #left { width: 287px; } #left img { float: left; } Great forum. Hello everyone! A question about html. I have a simple html webpage where i have a list of lines 1.2.3... which when clicking one, it takes you further down the page to the apropriate box - using <A href>. So clicking on "2. Hello" takes you further down the page to the relevant box with <A name=Hello> So everytime I add something to the list, I edit the .html in notepad. Now I would like to have a form in my page which when typing in the details and clicking submit, it would add a new line at the end of the list, as well as a description below. Does anyone know a way to do this? Thanks so much! Chris Hi, Can any one explain me whether its possible to insert an HTML code for all the pages in a directory with out modifying all the files. eg. Execute external file automatically with all the pages Thanks Hi . Here is my script HTML Code: <table width="200" border="0"> <tr> <td><span class="style2"> <input name="button" type="button" onclick="show('Hello')" value="Button 1" /> </span></td> </tr> <tr> <td><span class="style2"> <input name="button22" type="button" onclick="show('Goodbye')" value="Button 2" /> </span></td> </tr> <tr> <td><span class="style2"> <input name="button23" type="button" onclick="show('Good Morning')" value="Button 3" /> </span></td> </tr> <tr> <td><span class="style2"> <input name="button2" type="button" onclick="show('Goodnight')" value="Button 4" /> </span></td> </tr> </table> <p class="style2"> </p> <p class="style2"> <textarea name="textarea" cols="50" rows="10" readonly id="area"> </textarea> In the areas where it says, for example ="show('Goodnight')", how do I add HTML code in the brackets but as normal text? At the moment it is trying to read it as HTML code but I want it to be displayed as text. How would I accomplish this. It is probably pretty simple but I am a bit of a noob Thanks Now that Im signed up with adsense I find out you cant place them in frames. This is how I was going to do it, but obviously I cant. Im doing this in php, and my html is very beginner could someone point me towards what I need to check into to put the adsense to the side of the frame, without putting it in the frame? Thanks. Hey, how do I get this (self placed) ad out of the way so it will not affect the layout of the text? It is placed in a div. Maybe I could play with the .css file a little bit? You can see the ad he http://arturbuchhorn.com/works/morality.html Hi, I'm trying to make some changes to the basic design of my site, but when I add Adsense it's doing something strange. In IE7 it's fine, but in FF it displays with incorrect colors and the size is chopped from 468x60 to about 230x60. I can't explain it, because on the other pages I've made the changes everything is fine. ***************************************** Problem seems corrected now. Have no idea how it persisted for 36hrs, but it's fine now (shaking head). ***************************************** Thanks, Dave H When I tried to add a skyscraper ad to my website using a site editor it didnt show up right. The ad just appeared in the middle of my page. I tried to do it manually, but google says the ad has to be placed in the body to show up right. When I opened index.htm there was no body. Instead there were a bunch of tables each with there own body. I am using Host Gator and SWSoft Site Builder. I am rather new at html and site development so any help would be appreciated. Also is there any way I can add the code to all of my pages? Hi, ummm, I have this site, and I want to put adsense ads right under the part where it says bite me, but I don't know how to. I also want to be able to put things in the affiliates section at the bottom of the page. Can somebody please help me? HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Bite Me - The online shonen-ai romance fantasy manga novel/book - gay vampires, anime and so much more.</title> <style type="text/css"> body { background-color:#000; } #container { width:720px; height:450px; padding:178px 34px 200px 44px; background-image:url(http://img24.imageshack.us/img24/7995/layoutredglow.jpg); background-repeat:no-repeat; margin:auto; font-family:verdana,arial,helvetica,sans-serif; color:black; z-index: 1 } #content { height:279px; padding:20px; overflow:auto; z-index: 3 } #content p { text-indent:20px; padding-bottom:20px; margin:0; } #content p:first-letter { font-family:'times new roman',serif; font-size:200%; font-weight:bold; color:#f00; } #nav { margin:0 0 26px; padding:0px; list-style-type:none; text-align:center; } #nav li { display:inline; } #nav a { padding:5px; border:0px solid #ccc; font-family:'times new roman',serif; font-size:24px; color:#f00; text-decoration:none; } </style> </head> <body> <div id="container"> <ul id="nav"> <li><a href="http://bitememanga.com/">Home</a></li> <li><a href="http://bitememanga.com/book.html">Book</a></li> <li><a href="http://bitememanga.com/characters.html">Characters</a></li> <li><a href="http://bitememanga.com/about.html">About Us</a></li> <li><a href="http://bitememanga.com/comments.html">Comments</a></li> <li><a href="http://bitememanga.com/forum.html">Forum</a></li> </ul> <div id="content"> <a id="nabblelink" href="http://n2.nabble.com/Bite-Me-f2848014.html">Bite Me</a> <script src="http://n2.nabble.com/embed/f2848014"></script> </p></div><!-- end #content --> </div><!-- end #container --> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <!-- Start of StatCounter Code --> <script type="text/javascript"> var sc_project=4667761; var sc_invisible=1; var sc_partition=46; var sc_click_stat=1; var sc_security="e894ee49"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter"><a title="wordpress visitors" href="http://www.statcounter.com/wordpress.org/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/4667761/0/e894ee49/1/" alt="wordpress visitors" ></a></div></noscript> <!-- End of StatCounter Code --> </body> </html> How do you insert Google adsense code into a table, because when i make a website using Photoshop it makes a bunch of tables. Is it possible to put adsense into a table? Thanks i have a website, http://www.what-the-news.com, and i am trying to get my medium rectangle ad to show up just to the right of my videos. Everytime i put in the align right code it drops down below the video like the leaderboard banner, which is currently there. Here are the codes i'm using: <p><div align="right"><script type="text/javascript"><!-- google_ad_client = "pub-8909561621860243"; google_ad_width = 200; google_ad_height = 200; google_ad_format = "200x200_as"; google_ad_type = "image"; google_ad_channel = ""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> Any help will be huge, Mark Hi! I'm having trouble centering my Google adsense banner. I paste the code from Google, it shows up but it wont center. I look online and cant seem to find anything that works. Any ideas? I have a quirky problem, and it exists with many of my sites. It involves Firefox browser, as well as Chrome. Here are the conditions of the website pages that have problems: 1. Page is fixed width, centered in the browser 2. Google AdSense is present on the page 3. Browser is either Firefox or Chrome. Internet Explorer doesn't present any problems. When the page with the above conditions is loaded, the page shows up at the RIGHT of the browser, then shifts to it's proper location in the center of the browser. This occurs every time a page with adsense is loaded, and can be irritating going page to page. An example for my site is he AdSense Page Shift Test Please use Firefox browser, maximized on a monitor with a greater width than 1024. There are five working tabs with examples, four of them have adsense on them. The one without adsense does NOT jump, and I'd like all the pages to emulate it. I"d appreciate any direction to solving the problem. Firefox and Chrome are rapidly increasing in popularity, and I'd like to solve this rather quirky problem. I have a blogger blog he http://entpalace.blogspot.com As you can see there is a link ad unit right at the bottom of the screen. I want to put that ad link unit underneath the NEWEST post. it has to only go under the newest post automatically. So can you view my website(above) and view the source code,and tell me what adsense code and where i need to put the adsense code. For example,tell me the adsense code,then do i put like this: <meta content='true' name='MSSmartTagsPreventParsing'/> "ADSENSE CODE THAT WILL MAKE THE LINK AD UNITS GO UNDER EACH NEW POST HERE" <meta content='blogger' name='generator'/> I have very limited html experience so i need u to tell me exactly how to do it with my site. THanks The first part , this page i need to put an widesky ad on both sides of the image & also want something that will rescale image to fit page as i need to fit in large images on the page , can this be done people? I have a web site and want to update it. I made a drop down nav bar but having trouble getting it on the webpage. the navbar has style and html in a table to keep it in a box. Can i save it in a folder and insert it like you preload a image. If so what do I need to do this. This old dog is trying to learn new tricks. Thanks GrampsEd Hello, I am a student and working on a simple first project. All I'm doing right now is writing my code in text edit, saving it as "test.html", and dragging and dropping the file onto Safari/Firefox to view my code. Everything works when I'm at my college's computer lab, but when I'm on my own mac notebook, the files load in the browser as my code. I've tried a variety of samples and checked my preferences, but I can't figure out what I'm doing wrong. Sample code I'm using - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Simple Link Example 2</TITLE> </HEAD> <BODY> <H1 ALIGN="CENTER">Creating Relative Reference Links</H> <HR> <P>Open <A HREF="practice1.html">Practice 1</A>.</P> <P> Open <A HREF="practice2.html">Practice 2</A>.</P> <P>Open <A HREF="practice3.html" TARGET="_blank"> Practice 3</A> in a new window.</P> </BODY> </HTML> Please help! I'm trying to wrap up an assignment and have been banging my head against the wall all night. Thanks! cordelia |