PDA

View Full Version : Multiple page referral



techsol
12-11-2008, 04:50 PM
I am looking for a single code that I can place on the homepage that will refer the user that accesses any page on the website to another website. I am trying to get away from placing the referral code on every page on the website...thanks

jscheuer1
12-11-2008, 04:56 PM
If it is already a script, just make it an external script and place it on each page. Or turn it into a script first. Or use an include if you have server side availability to do so.

However nothing on the home page in javascript will, in and of itself, place code on every page from the rest of your site.

If you have a frame or iframe setup, the referral could be placed on the topmost page(s), thus cutting down the repetitions required, and depending upon how persistent that top page is, perhaps to 0. But frames and iframes have issues, it is best to avoid them.