Please report all spam threads, posts and suspicious members. We receive spam notifications and will take immediate action!
Results 1 to 6 of 6

Thread: Help Needed with Javascript (Favorites button)




  1. #1
    Join Date
    Feb 2003
    Posts
    64

    Default

    Good afternoon dudes

    I'm trying to put an 'add to favorites' bookmark on my web site, but can't get any working yet. :cry:

    This is what I'm using, well trying to use:

    |script language="JavaScript"|
    function bookmarkit(){window.external.addFavorite('http://www.djtoastie.co.uk','Mark's Home Page')}
    if (document.all)document.write('|a href="#" onClick="bookmarkit()"|Add to Favorite|/a|')
    /script|

    I've replaced the '<' with '|' just for use here.

  2. #2
    Join Date
    Nov 2001
    Posts
    4,723

    Default

    here is a page with several examples;
    http://www.experts-exchange.com/Web/..._20552512.html
    The reason a diamond shines so brightly is because it has many facets which reflect light.

  3. #3
    Join Date
    Feb 2003
    Posts
    64

    Default

    Quote Originally Posted by Mr. C
    here is a page with several examples;
    http://www.experts-exchange.com/Web/..._20552512.html
    Thanks dude, will be looking at getting one of them working hopefully. :thumb:

  4. #4
    Join Date
    Feb 2003
    Posts
    64

    Default

    Oh well well, finally got the script working, but where abouts do I Insert a picture to link to the javascript or how do i link it together. :rolleyes2

  5. #5
    Join Date
    Feb 2003
    Posts
    64

    Default

    Done it now ta. When Inserting a picture, make the hyperlink of the picture add javascript:addbookmark() . :D

  6. #6
    Join Date
    Nov 2001
    Posts
    4,723

    Default

    Seems you got it going on now:thumb:
    The reason a diamond shines so brightly is because it has many facets which reflect light.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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