Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

ghost's Avatar
0 0

Almost all free web hosting companies put ads on the top of your page, in the TOS it says: if you remove the ads the site will be DELETED. Then, when you're coding you're website, you're not gonna add that site's ads, right? So they come on automaticly. That got me thinking, there must be a way to remove those annoying ads, that don't even help you, for everyone. Ex: adblock blocks ads too, but I want them gone, not blocked so someone that doesnt have adblock doesnt see the ads.

thx :)


Mr_Cheese's Avatar
0 1

simple, just use a <DIV> tag so all your content is displayed on top if the ads.


ghost's Avatar
0 0

cool, but that won't remove the ads, right?


Mr_Cheese's Avatar
0 1

no but it will stop people from seeing them.


ghost's Avatar
0 0

Try with <noframes><body></noframes> in front of <body>


ghost's Avatar
0 0

Change:

&lt;div&gt;
&lt;hr&gt;
Random Quote: &lt;br&gt;&quot;Atoomkuilschelder&quot; - Frederik Dhont
&lt;br&gt;&quot;Atoomschuimkelder&quot; - Floriaan Mottart&lt;hr&gt;
&lt;/div&gt;```

to

```markup
&lt;div style=&quot;position: absolute; top: 0; left: 0; background-color: #000000;&quot;&gt;
&lt;hr&gt;
Random Quote: &lt;br&gt;&quot;Atoomkuilschelder&quot; - Frederik Dhont
&lt;br&gt;&quot;Atoomschuimkelder&quot; - Floriaan Mottart&lt;hr&gt;
&lt;/div&gt;```

That will align it to the very top left of the screen, and hopefully cover the ads. Granted, I would also adjust the width and height of the DIV, but that&#39;s up to you.