GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   JavaScript code for Bookmarking for FF (https://gfy.com/showthread.php?t=797886)

Marshal 01-07-2008 05:07 PM

JavaScript code for Bookmarking for FF
 
Anyone got a working bookmarking code for both IE and FF? I expect Smokey the Bear to come up with the solution soon... :winkwink:

calmlikeabomb 01-07-2008 05:19 PM

Yes. Will I share it? No.

teg0 01-07-2008 05:26 PM

I see this used sometimes. Seems to work:

Code:

<script type="text/javascript">
function bookmarksite(title,url){
if (window.sidebar) // firefox
        window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
        var elem = document.createElement('a');
        elem.setAttribute('href',url);
        elem.setAttribute('title',title);
        elem.setAttribute('rel','sidebar');
        elem.click();
}
else if(document.all)// ie
        window.external.AddFavorite(url, title);
}
</script>

Code:

<a href="javascript:bookmarksite('Domain Name', 'http://www.domainname.com')">Bookmark Link</a>

Marshal 01-08-2008 01:22 PM

i'll give it a shot... thanks!

Marshal 01-13-2008 02:27 AM

anyone have "Make Homepage" JScript for FF? :upsidedow

SmokeyTheBear 01-13-2008 03:34 AM

i have both but to be honest i prefer the "addthis" button from www.addthis.com

they give you a small bookmark button and it lets users add to favourites in both firefox and ie , and lets users add your page to many social bookmark sites like "digg" and such

SmokeyTheBear 01-13-2008 03:41 AM

heres a basic add to favourites for ie and firefox and "set as homepage" in ie

Code:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>hello world</title>

<script language="JavaScript1.2" type="text/javascript">
function CreateBookmarkLink() {
title = "gfy kicks ass";
url = "http://www.gfy.com/";
if (window.sidebar) {
// Mozilla Firefox Bookmark

window.sidebar.addPanel(title, url,"");
} else if( window.external ) {
// IE Favorite

window.external.AddFavorite( url, title);
}
else if(window.opera && window.print) {
// Opera Hotlist
return true; }
}
</script>

</head>
<body bgcolor="#ffffff">
<a href="javascript:CreateBookmarkLink();">Add to Favorites</a>
<br><br>
<a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.google.com');">Set homepage </a>
</body>
</html>


VicD 01-13-2008 03:42 AM

yep,'i'am using add this too on almost all my sites

V_RocKs 01-13-2008 04:25 AM

Quote:

Originally Posted by SmokeyTheBear (Post 13645202)
i have both but to be honest i prefer the "addthis" button from www.addthis.com

they give you a small bookmark button and it lets users add to favourites in both firefox and ie , and lets users add your page to many social bookmark sites like "digg" and such

Anyone ever Digg your page?

I wonder how many FF users don't realize the Favorites is the Bookmarks for them... and how many end up not bookmarking because it all just seems to complicated and web 1.5

Twisted Dave 01-13-2008 08:01 AM

Code:

<script language="JavaScript1.2">
                        function addbookmark()
                        {
                                url="http://www.sitenamehere.com";
                                title="Site Name Here";
                                if (window.sidebar)
                                {
                                        window.sidebar.addPanel(title, url, "");
                                }
                                else if(window.external)
                                {
                                        window.external.AddFavorite(url, title)        ;
                                }
                               
                        }
                </script>

Code:

<a href="javascript:addbookmark()">

LFCII 01-13-2008 10:19 AM

<script type="text/javascript">

/***********************************************
* Bookmark site script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

</script>

<a href="javascript:bookmarksite('title', 'http://www.yourdomain.com')">Bookmark Us!</a>

SmokeyTheBear 01-13-2008 12:32 PM

Quote:

Originally Posted by V_RocKs (Post 13645270)
Anyone ever Digg your page?

I wonder how many FF users don't realize the Favorites is the Bookmarks for them... and how many end up not bookmarking because it all just seems to complicated and web 1.5

yup lots , they include a sweet tool to record how many people are clicking the "addthis" button and what bookmarking site they chose


All times are GMT -7. The time now is 02:19 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123