| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
I'd hit it
Join Date: Jun 2006
Location: Helsinki
Posts: 371
|
Blocking unwanted content
I'm helping my little brother with his harry potter fansite. He's using godaddy's free hosting. The only problem is that it automagically inserts an adbar at the top of each page, about 2" tall. I managed to hunt down the javascript it uses to do this: here's the code Now spare me all the "buy decent hosting" and "that's against the contract" crap, how could this be blocked? Perhaps you could give the iframe a negative margin in css or something clever like that? Though that could give a problem in that I'm planning to put some iframes on the actual site. Any suggestions? The site is here if you want to see the adbar in action. It might only appear after a few page visits. |
|
|
|
|
|
#3 (permalink) | |
|
Registered User
Join Date: Aug 2006
Posts: 14
|
Quote:
but cjb.net also has ads, so now he has like, and inch and a half of ads, rather than an inch... anyway, a really good host is http://dd.am I swear by them. Free, no ads, php, mysql, 100mb space (i think, maybe more) just gotta have a ftp program i believe, or they disabled file upload on my account... dunno... anyway, good host (instant signup too) |
|
|
|
|
#4 (permalink) |
|
I'd hit it
Join Date: Jun 2006
Location: Helsinki
Posts: 371
|
Thanks, Luke A, the second method worked perfectly. But guys, give it a rest. This is my 11-year old little brother's Harry Potter fansite in finnish that has max.300 visitors a month. Hardly a major crime to get rid of the annoying ads that wouldn't give godaddy any profit anyway. I'm not expecting the FBI to burst through the door. Or CIA, whichever has those cool ninjas with machine guns that fly all over the world hijacking people off the street. |
|
|
|
#5 (permalink) | |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,512
|
Quote:
You really need to get out more. |
|
|
|
|
#6 (permalink) |
|
I'd hit it
Join Date: Jun 2006
Location: Helsinki
Posts: 371
|
Out? Now I'm confused... Anyway, turns out it doesn't work. Well, the second method works in opera but the other browsers still show it. I tried a few other methods, like playing with the margins of the topmost content, giving the iframe a negative margin but i just couldn't get rid of it. Setting a negative margin on the content only made it hide under the iframe, as though it floats on top of the content. I give up. Unless someone has any more clever tricks on how to beat this bastard? |
|
|
|
#12 (permalink) |
|
I'd hit it
Join Date: Jun 2006
Location: Helsinki
Posts: 371
|
Nah, I put the iframe display:none as the sole css command for a page that only has one image. Doesn't work. But I just realised that godaddy adds something other than the script at the end: </body></html></object></layer></span></div></table></body></html><!-- adsok --> <script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script> The </body> and </html> are my tags. The rest of the crap isn't. Now I'm not entirely sure css applies below the </html> tag, which is where the script is placed. You can look at the page source if you wish. pottermaailma.com/home |
|
![]() |