how can I do this bookmark us button

Discussion in 'JavaScript' started by A.G, Jan 10, 2009.

  1. #1
    see this screenshot

    [​IMG]

    how can I add something similar to my site
     
    A.G, Jan 10, 2009 IP
  2. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #2
    I believe the site use CSS to place the image there.
     
    proxywhereabouts, Jan 10, 2009 IP
  3. Jaguarjace

    Jaguarjace Guest

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    heres an easy code i made:
    
    <img src="http://www.republicbroadcasting.org/images/menuitems/menu_bookmark_us_off.jpg" style="position:absolute;top:0;right:0; cursor:pointer;" onclick="window.external.AddFavorite(location.href, document.title);">
    Code (markup):
    change the image to anything you want ;)
     
    Jaguarjace, Jan 11, 2009 IP
    A.G likes this.
  4. A.G

    A.G Well-Known Member

    Messages:
    2,510
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    150
    #4
    wow really nice piece of code
    thank you , Rep Up
     
    A.G, Jan 11, 2009 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    I would REALLY advise against doing that - that bookmark us **** is so 1997 and is little more than wasting javascript AND the bandwidth of an image on implementing the functionality BUILT INTO EVERY BROWSER.

    I tend to rage every time I see that type of ***ogtry on a website - it falls into the same category as the 'best viewed in' nonsense; REALLY needs to remain in the past.
     
    deathshadow, Jan 11, 2009 IP