SMF For Free Support Forum
Signup For Free Forum
November 22, 2008, 12:38:47 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Bookmark code  (Read 432 times)
0 Members and 1 Guest are viewing this topic.
Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1101



View Profile WWW
« on: May 29, 2007, 12:31:04 am »

Can some one please make a code that puts something that says "Bookmark This Site"
Then it opens the thing that bookmarks it.

TIA
« Last Edit: August 27, 2007, 08:57:57 pm by simply sibyl » Logged



Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #1 on: May 29, 2007, 12:44:57 am »

you already have that feature installed on your forum (look down at the very bottom)  Wink
Logged

Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #2 on: May 29, 2007, 12:49:47 am »

If you'd like to add it to the top of your forum, put these scripts in your headers (be sure and fill in the two spaces that need your FORUM URL and your FORUM NAME):

Code:
<script
language="JavaScript" type="Text/Javascript"><!-- //
Hide script from older browsers // script by http://www.hypergurl.com var urlAddress
= "URL OF YOUR FORUM HERE"; var pageName = "PUT FORUM NAME HERE"; function addToFavorites() { if (window.external) { window.external.AddFavorite(urlAddress,pageName)
} else { alert("Sorry! Your browser doesn't support this function.");
} } // --></script>

Code:
<a
href="javascript:addToFavorites()"><font color="#0000FF"
face="Arial">Bookmark Page !</font></a>

(Right now the font is blue, and it will say Bookmark Page!. You can change that to a color that will match your forum by changing the "#0000FF" to something else, and you can also change what it says.)

(im not sure if it will actually work.. its a script I came across. If it doesnt, maybe Moose can tweak it)  Smiley
« Last Edit: May 29, 2007, 12:53:30 am by Kimmie » Logged

Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #3 on: May 29, 2007, 12:58:34 am »

If that one wont work try this one, I know it works:

Code:
<FORM>
<INPUT TYPE="button" VALUE="Add to Favorites" onClick='window.external.AddFavorite(location.href, document.title);'>
</FORM>

Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 666


Do not PM me for Code Support or Request


View Profile
« Reply #4 on: May 29, 2007, 11:23:15 am »

If that one wont work try this one, I know it works:

Code:
<FORM>
<INPUT TYPE="button" VALUE="Add to Favorites" onClick='window.external.AddFavorite(location.href, document.title);'>
</FORM>



I would recomend to use this one because it is shorter.
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1101



View Profile WWW
« Reply #5 on: May 29, 2007, 11:35:56 am »

ok.
I never saw that!
I'm gonna the code cuz' I want it at the top.


Thanx!
Logged



Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #6 on: May 29, 2007, 02:48:13 pm »

ok.
I never saw that!
I'm gonna the code cuz' I want it at the top.


Thanx!

The second code I posted can also be used at the top. Just put it in your headers. I would probably use the second code as well (like Moose said) because its shorter. Your headers/footers area will only hold so much code.  Wink
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.206 seconds with 17 queries.