Spectacular Free Slide Show
MP3 Sound Streamer
Email Link Encoder
Stream Website Audio
Cool Free Text Scroller
CodeLifter.com
S
oftware & S
cripts by CodeBrain.com
Home
JavaScripts
PopUp Maker
-
po
pup wind
ows
CodeLifter 5
-
source viewer
ScrollBar Styler
-
color scrol
lbars
Flash Fixer
-
rem
ove al
erts
Roll-Over Maker
-
image roll-overs
Link Cloaker 5
-
enc
rypt links
Site Capture 3
-
hidden frames
CHMOD 2 Utility
-
chmod utility
BlackBird 3.0
-
browser shell
Zoom 1.0
-
magnifier
MicroTicker.com
-
text scroller
CodeBrain.com
-
j
ava app
lets
D3Q.com
-
xp icon control
BrainCode.com
-
j
ava app
lets
MailToProtector
-
protect email
Java Applets
Perl Scripts
Affiliate Program
Index
JavaScript Bookmark This Page Script
Adds Bookmark to IE Favorites
Index
Click
here
to select the code in the window below.
Use Ctrl+C to copy it to your clipboard.
============================================================ Script: Bookmark This Page Script Functions: In IE browsers, the script automatically opens the dialog to add your bookmark to the visitor's favorites. In other browsers, the message in the txt variable is shown. Update 07-03-01: see tech note at end to use an image instead of text for the link. Browsers: IE 4.0 and later (degrades gracefully in others) Author: etLux ============================================================ Put the following script in the body of your page. Set the font with tags around the script as shown. <font color="#000000" size="2" face="Arial"> <script> // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // message to show in non-IE browsers var txt = "Bookmark Us!" // url you wish to have bookmarked var url = "http://www.codelifter.com"; // caption to appear with bookmark var who = "CodeLifter.com Software and Scripts" // do not edit below this line // =========================== var ver = navigator.appName var num = parseInt(navigator.appVersion) if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) { document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" '); document.write('onMouseOver=" window.status=') document.write("txt; return true ") document.write('"onMouseOut=" window.status=') document.write("' '; return true ") document.write('">'+ txt + '</a>') }else{ txt += " (Ctrl+D)" document.write(txt) } </script> </font> ============================================================ Addendum: Using an Image instead of Text for the Link. You can use an image instead of the text for this link by using the following in the txt variable: var txt = "<img src='some.gif' width='100' height='30' border='0'>" Use an image name (and full http:// path if needed) as shown above. Take special care to use single quotes where shown! ============================================================
Get The Code!
CodeLifter is a
CodeBrain.com
Sister Site
© 1995-2008 OEC Corp & CodeLifter.com
CodeLifter™ & CodeBrain™
Legal Notices
CodeBrain InterNET Group
BrainCode.com
CodeFoot.com
CodeBelly.com
D3Q.com
etLux.com
FFFast.com
IEFix.com
PopUpWorks.com
MicroTicker.com
DavidSosnowski.com
OECCorp.com
MailToProtector.com
CodeBrain.com
Free MP3
Downloads
Contemporary classical music, completely free.
.