|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Biz Dev and SEO
Industry Role:
Join Date: Jun 2005
Posts: 15,182
|
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...
__________________
--- Busy ranking websites on Google...
|
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
|
Yes. Will I share it? No.
__________________
subarus. |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Jan 2006
Location: Gringo in Puerto Rico
Posts: 4,204
|
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>
|
|
|
|
|
|
#4 |
|
Biz Dev and SEO
Industry Role:
Join Date: Jun 2005
Posts: 15,182
|
i'll give it a shot... thanks!
__________________
--- Busy ranking websites on Google...
|
|
|
|
|
|
#5 |
|
Biz Dev and SEO
Industry Role:
Join Date: Jun 2005
Posts: 15,182
|
anyone have "Make Homepage" JScript for FF?
![]()
__________________
--- Busy ranking websites on Google...
|
|
|
|
|
|
#6 |
|
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
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
__________________
hatisblack at yahoo.com |
|
|
|
|
|
#7 |
|
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
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>
__________________
hatisblack at yahoo.com |
|
|
|
|
|
#8 |
|
ICQ: 304-611-162
Join Date: Feb 2005
Location: Masterdam
Posts: 13,245
|
yep,'i'am using add this too on almost all my sites
|
|
|
|
|
|
#9 | |
|
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,422
|
Quote:
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 |
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Mar 2006
Posts: 3,635
|
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()">
__________________
![]() Custom Cartoon Mascots - ICQ: 243355699, Email: [email protected] or Click Sig - 15% referrals. Send me clients, make money! |
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: Feb 2004
Location: U.S / Brasil
Posts: 124
|
<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>
__________________
Tchau |
|
|
|
|
|
#12 |
|
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
yup lots , they include a sweet tool to record how many people are clicking the "addthis" button and what bookmarking site they chose
__________________
hatisblack at yahoo.com |
|
|
|