Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who would be a knight for killing Advertisement?

Status
Not open for further replies.

doldol

MIS
Nov 25, 2001
214
SG
Hi!
I have a headache. I am making my homepage using free webserver. As you guys might know, there are A Lots Of advertisements from the server. It could be 4 Ads if i am using Frame. I want to kill these ads in the menu frame(1 frame is for menu, another contents).

Anybody knows how to kill these ads?
Here are the scripts sent from the server side automatically. Please help!


First Ad ;

<TABLE WIDTH=&quot;468&quot; BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot; ALIGN=&quot;CENTER&quot;>
<TR><TD CLASS=&quot;isweb&quot;> <!-- START_AD_Banner -->
<a href=&quot; target=&quot;_top&quot;><img border=&quot;0&quot; width=&quot;468&quot; height=&quot;60&quot; src=&quot; alt=&quot;&quot;></a><br><strong></strong><!-- END_AD_Banner -->
</TD>
</TR>
</TABLE>


2nd Ad ;


<!-- isweb auto-insert 5.0g-176 */ -->
<DIV ALIGN=&quot;CENTER&quot; STYLE=&quot;display:block&quot;> <!-- START_AD_Banner -->
<a href=&quot; target=&quot;_top&quot;><img border=&quot;0&quot; width=&quot;468&quot; height=&quot;60&quot; src=&quot; alt=&quot;&quot;></a><br><strong></strong><!-- END_AD_Banner -->
</DIV>
<!-- inserted by isweb server /* -->

 
Well, I can see a way but :
- it's heavy
- I think your &quot;hoster&quot; will throw your pages out if you remove its ads.

By the way, here's how you can do :
- add an id attribute to ALL your tags with the same starting (example : &quot;myTags_name&quot;, &quot;myTags_Surname&quot;, ...) Beware, an id must be unique for a whole page.
- on page loading (body onload event), check ALL the tags in your page using DomDocument object model and getChildNodes methods.
- if current node's id dosen't start with &quot;myTags_&quot;, set its display style attribute to &quot;none&quot;. Water is not bad as long as it stays out human body ;-)
 
Targol, thank you so much.
Cause, i am not that kind of expert on Java script, i don't know how to do from your script.

Can you help me for editing the script?(it is not big script, only a menu).

I will send you the script by email. my email is ;myworld21@pigpig.net.

THANK YOU A MILLION!!!

>>- I think your &quot;hoster&quot; will throw your pages out if you remove its ads.

The hoster says, in case of using Frame, you can apply a script to cover the ads. So, no problem. Don't worry.
 
Targol, I found the solution.
Only what i have to do is, changing extention from html or htm to SHTML!!!

it seems perfect now!
tnx.
 
So everything is allright in a perfect word ... without ADS LOL Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top