Having a little trouble with cloaking status bar links... please help!

Discussion in 'JavaScript' started by bigpapa, Sep 21, 2008.

  1. #1
    As with all people doing this, I want a link to http://anothersite/blah/blah/blah.html to appear in the status bar as:

    http://mysite/page.html

    When the user clicks the link they are taken to the other site.

    Here's what Im using:

    
    <a href="http://anothersite/blah/blah/blah.html" onmouseover="window.status=http://mysite/page.html'; return true;">Link</a>
    
    Code (markup):
    The problem with this is that when Im using this code, the status bar shows NOTHING at all.

    I dont want to use htaccess because I have a lot of links to a lot of different places and I would rather deal with this on a link by link basis.

    Any help as to what Im doing wrong would be greatly appreciated.

    Thanks!
     
    bigpapa, Sep 21, 2008 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    What you are doing wrong is trying to override the default behavior of the browser, something that javascript should never have been allowed to do in the first place (and wouldn't even work here in FF or Opera because I have their scripting options set to never allow that!)

    Which is why you see it abused it scam e-mails so bloody often... Which is all I can assume you are trying to do.
     
    deathshadow, Sep 21, 2008 IP
  3. bigpapa

    bigpapa Banned

    Messages:
    273
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, Im trying to cloak affiliate links.
     
    bigpapa, Sep 21, 2008 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    So again, you are trying to hide where the user is REALLY going WHY? There's no reason to do that unless it's something sneaky/underhanded/morally questionable.
     
    deathshadow, Sep 21, 2008 IP
  5. bigpapa

    bigpapa Banned

    Messages:
    273
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Probably 80% of resellers cloak their links through some sort of script or htaccess. Nevermind I have found my solution
     
    bigpapa, Sep 21, 2008 IP