Uncle Marky
Fledgling Freddie
- Joined
- Mar 5, 2006
- Messages
- 11
This might be of use to someone. Not my own work - yeah yeah I know it never is - but I have converted it . Works with Firefox and Opera as far as I know.
Uploaded a bookmark.js file to the root of my site. The code of which is this:
Then created a link to operate above:
If you need to then use a full url instead of just bookmark.js so that the link locates the file.
Have fun!
Uploaded a bookmark.js file to the root of my site. The code of which is this:
Code:
function AddBookmark()
{
title="MKJsWorld";
url="http://mkjsworld.com";
if (window.sidebar)
{
window.sidebar.addPanel(title, url,"");
}
else if( window.external )
{
window.external.AddFavorite( url, title);
}
else if(window.opera && window.print)
{
return true;
}
}
if (window.external)
{
document.write('<a href="javascript:AddBookmark()");"></a>');
}
else if (window.sidebar)
{
document.write('<a href="javascript:AddBookmark()");"></a>');
}
else if (window.opera && window.print)
{
document.write('<a href="javascript:AddBookmark()");"></a>');
}
Then created a link to operate above:
Code:
<script type="text/javascript" src="bookmark.js"></script><a href="javascript:AddBookmark()" )="">Bookmark</a>
If you need to then use a full url instead of just bookmark.js so that the link locates the file.
Have fun!