It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Hide ads on your website?

Hide ads on your website?

Postby purplemonster on Fri Feb 06, 2009 1:12 pm

Is it possible to hide ads on your own website by using JavaScript? The small image (or window) should appear where the ads are placed and cover them up. By using the color of the background of the page it would look like there are no ads at all.

But does anybody know how to do it? I don't know much about JavaScript, but I've seen some websites using banners to cover up some parts of the page so you can't read it until you click the X button. So it should be possible.

I thought this was the right place to ask. :D
purplemonster
 
Posts: 24
Joined: Fri Jul 04, 2008 9:01 pm

Re: Hide ads on your website?

Postby rangana on Fri Feb 06, 2009 3:02 pm

User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: Hide ads on your website?

Postby purplemonster on Fri Feb 06, 2009 6:30 pm

Thank you for the links, man! This is an example of the window I had in mind: link
I'll try to work it from there.

Anyway, I'm new to all this JavaScript business and I don't know how to customize these things. So if anyone has done such things before or knows how to do it - any help will be appreciated! Really :D

This window widget should have the following characteristics:
- it should stay still where I put it - it shouldn’t move when you scroll down the page (here is a good example)
- website visitors shouldn't be able to move it
- it shouldn't have visible boarders and X button, just background color
purplemonster
 
Posts: 24
Joined: Fri Jul 04, 2008 9:01 pm

Re: Hide ads on your website?

Postby rangana on Sat Feb 07, 2009 5:14 am

The move, and the close bar is controlled by Javascript. So removing that part of the markup will fix 2 of your concerns.

For the border, it's just on the CSS. Find the border property.

Show us your attempt.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: Hide ads on your website?

Postby purplemonster on Sun Feb 08, 2009 11:32 am

Cool, since this could be done in CSS there is no need to use that script at all. Here's a simple example I found: link. I think I'll be able to make it work by learning a few CSS Positioning tricks. ;) I'll let you know if I have any problems.
purplemonster
 
Posts: 24
Joined: Fri Jul 04, 2008 9:01 pm

Re: Hide ads on your website?

Postby Suffer on Sun Feb 08, 2009 4:43 pm

great inf, thanks rangana
Suffer
100+ Club
 
Posts: 236
Joined: Tue Jan 20, 2009 6:34 am


Who is online

Users browsing this forum: No registered users and 7 guests