User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 423,566 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,624 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 350 | Replies: 4
Reply
Join Date: Nov 2007
Posts: 69
Reputation: Grantmitch1 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
Grantmitch1 Grantmitch1 is offline Offline
Junior Poster in Training

Forcing Advertisements onto a web page

  #1  
May 16th, 2008
Hello Daniweb Community,

I was just pondering through thoughts as one does, when I couldnt answer my own question. How do you force adverts onto a page.

The scenerio is, I will have people uploading there sites to my site, as free hosting and free subdomain name. But, as it is all free for them, I wish to include advertisements.

Companies like Piczo force an advertisement at the top of the page.

Can anyone tell me how this is done.

Thank you,
Grant
Need good web hosting...

Well look no further. For around £2.50 you can get great web hosting from
MEERMAJIK
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,556
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 114
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Forcing Advertisements onto a web page

  #2  
May 17th, 2008
They put the page into a frame, with the ads in another frame.

But it also makes any page that was so carefully crafted to validate on W3c fail to validate when displayed on the combined page. This makes web page makers mad.

Alternately, you could require that the page author provide an img tag with a link to the ad.

Please, no moving ads. They make me click Back faster than anything else.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Nov 2007
Posts: 69
Reputation: Grantmitch1 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
Grantmitch1 Grantmitch1 is offline Offline
Junior Poster in Training

Re: Forcing Advertisements onto a web page

  #3  
May 17th, 2008
Yeah, I knew about the Frame way of doing it.

But I hate putting things into frames unless they are designed to go in a frame.

It can alter the design of your site for the worse. You have to scroll unnecessarily.

I could try and get the author to provide a link, however, I wanted it done automatically...

Is there a way I can use a frameset but script it so changes height and width depending on the content?
Need good web hosting...

Well look no further. For around £2.50 you can get great web hosting from
MEERMAJIK
Reply With Quote  
Join Date: Jan 2007
Posts: 2,556
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 114
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Forcing Advertisements onto a web page

  #4  
May 20th, 2008
If they send the files to you, you could edit them before putting them online.

If your ad is a banner across the top, everything else will move down.

Absolute positioning in a web page will mess up any attempt to add an ad.

Note that this site requires all ads for each position to be the same size.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: May 2006
Location: ★ ijug.net ★
Posts: 929
Reputation: ithelp will become famous soon enough ithelp will become famous soon enough 
Rep Power: 5
Solved Threads: 66
ithelp ithelp is offline Offline
Posting Shark

Re: Forcing Advertisements onto a web page

  #5  
May 21st, 2008
I guess you can use .htaccess.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:44 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC