How Can I Disguise A Link In The Scrollbar?

Discussion in 'Programming' started by bad_bob00, Sep 29, 2008.

  1. #1
    Hi,

    On my website I'm linking using an affiliate link but I would like the scrollbar to display the URL without the affiliate code, so instead of it showing http://www.mtkmka.com/myaffiliatecode.html, I'd like it to just show http://www.mtkmka.com/


    Is this possible? If so, how? :)

    I've tried with JavaScript, and it works offline, but when I view the page online it just shows the scrollbar as being empty when I hover over the link.



    Thanks for any help
     
    bad_bob00, Sep 29, 2008 IP
  2. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #2
    i'm not sure but you probably mean statusbar and not scrollbar, also this is a browser thingy, its there for security, it's there to show information about a link so i'm not sure if you can manipulate it that way, good lucj anyways
     
    serialCoder, Sep 29, 2008 IP
    bad_bob00 likes this.
  3. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Okay, thanks for the help.

    So would the best way of doing it simply be by adding a redirect?
     
    bad_bob00, Sep 29, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Possibly use a href tag, but a onclick attribute to return false causing the href link not to activate but using a window.location (or document.location) to redirect the user.

    Although:
    - Can't remember if this does work, or ever did
    - Disabling JS would loose you the affiliate income.

    Jay
     
    jayshah, Sep 29, 2008 IP
    bad_bob00 likes this.
  5. iam.xavier

    iam.xavier Well-Known Member

    Messages:
    521
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    125
    #5
    I would suggest you to go for a tinyurl kinda of link which will hide your entire code :D
     
    iam.xavier, Sep 29, 2008 IP