Advertise Here

Author Topic: [Code] Bookmark code  (Read 2296 times)

0 Members and 1 Guest are viewing this topic.

Offline Hurricane47

  • SMF For Free Master
  • *
  • Posts: 1108
    • View Profile
    • My Graphics Forum!

  • Total Badges: 27
    Badges: (View All)
    Windows User Poll Starter Poll Voter Level 5 Webmaster
[Code] Bookmark code
« 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 »

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Bookmark code
« 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)  ;)

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Bookmark code
« 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: [Select]
<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: [Select]
<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)  :)
« Last Edit: May 29, 2007, 12:53:30 am by Kimmie »

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Bookmark code
« Reply #3 on: May 29, 2007, 12:58:34 am »
If that one wont work try this one, I know it works:

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


Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Bookmark code
« Reply #4 on: May 29, 2007, 11:23:15 am »
If that one wont work try this one, I know it works:

Code: [Select]
<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.
Check out Revolution X's Brand new Code Index!

Offline Hurricane47

  • SMF For Free Master
  • *
  • Posts: 1108
    • View Profile
    • My Graphics Forum!

  • Total Badges: 27
    Badges: (View All)
    Windows User Poll Starter Poll Voter Level 5 Webmaster
Re: Bookmark code
« 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!

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Bookmark code
« 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.  ;)

 

Related Topics

  Subject / Started by Replies Last post
21 Replies
12473 Views
Last post August 16, 2009, 09:16:42 pm
by [FailSafe]
33 Replies
14850 Views
Last post November 29, 2008, 03:41:15 pm
by simply sibyl
1 Replies
1047 Views
Last post November 14, 2007, 09:09:28 am
by rileyks
1 Replies
929 Views
Last post February 19, 2008, 09:41:35 am
by simply sibyl
1 Replies
2035 Views
Last post November 12, 2008, 07:59:32 am
by simply sibyl