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)
-   -   bookmark code for ie and firefox (https://gfy.com/showthread.php?t=812262)

geedub 03-03-2008 01:44 PM

bookmark code for ie and firefox
 
whos got me a bookmark code that works in ie and firefox? thanks

Angry Jew Cat - Banned for Life 03-03-2008 01:45 PM

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('Page Name', 'http://www.yoururl.com')">

geedub 03-03-2008 01:55 PM

thanks yo

Angry Jew Cat - Banned for Life 03-03-2008 02:09 PM

no problem dawg

Mistah Charlie 03-03-2008 02:29 PM

Boobmark fucking rocks. Sending me tons of FREE traffic! Thanks, guys!

Angry Jew Cat - Banned for Life 03-03-2008 02:30 PM

Quote:

Originally Posted by Mistah Charlie (Post 13863022)
Boobmark fucking rocks. Sending me tons of FREE traffic! Thanks, guys!

what????

PR_Sebas 03-03-2008 02:41 PM

Quote:

Originally Posted by ismokeblunts (Post 13863026)
what????

lol, i was just about to type the same thing

bashbug 03-03-2008 04:29 PM

does that put it in the sidebar in firefox?

Diligent 03-03-2008 07:18 PM

bashbug:

Yes it does, which is actually the only way in Firefox (done that way to protect users)... UNLESS You code up a script to do an "artificial click", I've seen it done but can't guide on that.

Anyways, it should be sufficient since it'll still appear in FF's normal bookmarks as well - I think... lol

Mistah Charlie 03-03-2008 07:20 PM

I'm a stoned idiot
 
Quote:

Originally Posted by ismokeblunts (Post 13863026)
what????

Nevermind me.

Iron Fist 03-03-2008 07:26 PM

Nice... nothing that no script can't handle.

draude 03-03-2008 08:24 PM

Quote:

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

<a href="javascript:bookmarksite('TITLE', URL')">XXX</a>
that works fine

bashbug 03-03-2008 08:27 PM

Ya always wondered if that was the only way


All times are GMT -7. The time now is 03:27 PM.

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