Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Location
    C:\ Drive
    Posts
    31
    Tokens
    0

    Default Javascript Snippets

    For my first Javascript i will make an "Add to Favourites Link"

    HTML Code:
    
    <HEAD>
    <script>
    function addbookmark()
    {
    bookmarkurl="http://www.YourSite.com/"
    bookmarktitle="Your Website Title"
    if (document.all)
    window.external.AddFavorite(bookmarkurl,bookmarktitle)
    }
    </script>
    
    </HEAD>
    
    
    <BODY>
    
    <div align="center">
    <a href="javascript:addbookmark()"><b>Bookmark This Page</a>
    </div>
    The word that has a gap in it should be "bookmarktitle"

    ^_^ Will Code for Food ^_^

  2. #2
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Thats just a simple Javascript code.

Posting Permissions

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