No announcement yet.

Help Needed with Javascript (Favorites button)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help Needed with Javascript (Favorites button)

    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
    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.

    Comment


    • #3
      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:

      Comment


      • #4
        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

        Comment


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

          Comment


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

            Comment

            Working...
            X