1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to hide affiliate links in Blogger post ?

Discussion in 'Blogging' started by almir, Sep 28, 2008.

  1. almir

    almir Power Member

    Joined:
    Jul 11, 2008
    Messages:
    728
    Likes Received:
    229
    I tried some javascript codes I've found on the net, but those don't works for Blogger posts.

    Any code that would work for links in Blogger post body ?
     
  2. scott1995

    scott1995 Registered Member

    Joined:
    Sep 13, 2008
    Messages:
    72
    Likes Received:
    31
    its only $1.50 for a .info... so i suggest just register a .info and frame it, should work the best.
     
  3. almir

    almir Power Member

    Joined:
    Jul 11, 2008
    Messages:
    728
    Likes Received:
    229
    too many links to do that. damn, this is the main thing I don't love on Blogger
     
  4. showbizvet

    showbizvet Power Member

    Joined:
    Oct 1, 2008
    Messages:
    795
    Likes Received:
    260
    Occupation:
    IM
    Location:
    Tennessee and around
  5. smokes4life

    smokes4life Regular Member

    Joined:
    Dec 21, 2007
    Messages:
    200
    Likes Received:
    59
    Location:
    Marlboroland :)
    Are you using blogger or blogger beta?
     
  6. undergroundguru

    undergroundguru BANNED BANNED

    Joined:
    Feb 29, 2008
    Messages:
    213
    Likes Received:
    465
    just hide em with tinyurl .. simple
     
  7. almir

    almir Power Member

    Joined:
    Jul 11, 2008
    Messages:
    728
    Likes Received:
    229
    I am using new Blogger

    I don't see tinyurl as hiding link, its as ugly as affiliate one. I don't need this for stop hijacking or something, I need it for showing normal link in status bar, and javascript codes I know that can cod this, doesn't work on Blogger. Code get messed up
     
  8. BlackMelvyn

    BlackMelvyn Regular Member

    Joined:
    Jul 8, 2008
    Messages:
    202
    Likes Received:
    272
    Home Page:
    just show the code and what you get as a result in the source code to see what we can do for you
     
  9. almir

    almir Power Member

    Joined:
    Jul 11, 2008
    Messages:
    728
    Likes Received:
    229
    Here is the code I add :

    HTML:
    <a href="http://www.google.com" onMouseOver="window.status='http://www.google.com'; return true;" onMouseOut="window.status=''; " target="_top">Click Here</a>
    And here is what it looks when saved in Blogger :

    Code:
    <a onmouseover="window.status='http://www.yahoo.com'; return true;" onmouseout="window.status=''; " href="http://www.google.com" target="_top">Click Here</a>
    It just get rewrited. Link still works, but mouseover doesn't
     
  10. BlackMelvyn

    BlackMelvyn Regular Member

    Joined:
    Jul 8, 2008
    Messages:
    202
    Likes Received:
    272
    Home Page:
    Ok, try this
    HTML:
    <a href="http://hostname.com" rel="nofollow" onclick="window.location.replace('http://hostname.com/clic.php?id=123'); return false;">gimme more money !</a>
    I don't whether it'll be rewrited or not, but at least you needn't bother with onmouseover and onmouseout :cool:
     
    • Thanks Thanks x 1
  11. almir

    almir Power Member

    Joined:
    Jul 11, 2008
    Messages:
    728
    Likes Received:
    229
    You are my hero :)

    It works, even in the post body. :)

    Only thing I can't make to work is target blank
     
    Last edited: Oct 9, 2008
  12. BlackMelvyn

    BlackMelvyn Regular Member

    Joined:
    Jul 8, 2008
    Messages:
    202
    Likes Received:
    272
    Home Page:
    yes that's normal because the javascript instruction replaces the content of the location bar.
    You could try with a window.open('http://hostname.com/clic.php?id=123', '') instead ;)
     
    • Thanks Thanks x 1
  13. Niche

    Niche Junior Member

    Joined:
    Feb 6, 2008
    Messages:
    124
    Likes Received:
    23
    Cool info. Will be really useful