Results 1 to 2 of 2

Thread: Multiple page referral

  1. #1
    Join Date
    Dec 2005
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Multiple page referral

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •