NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Bookmark that works in IE & Firefox

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-31-2005, 05:31 PM THREAD STARTER               #1 (permalink)
You are here: X
 
mr-x's Avatar
Join Date: Oct 2003
Location: US
Posts: 483
mr-x is a glorious beacon of lightmr-x is a glorious beacon of lightmr-x is a glorious beacon of lightmr-x is a glorious beacon of lightmr-x is a glorious beacon of light
 



Bookmark that works in IE & Firefox


This simple script will create a link that adds the current page to the users bookmark or favorites folder in IE & Firefox

Code:
<script language="JavaScript1.2" type="text/javascript">
    function addBookmark(title,url) {
        if (window.sidebar) {
            window.sidebar.addPanel(title, url,"");
        } else if( document.all ) {
            window.external.AddFavorite( url, title);
        } else if( window.opera && window.print ) {
            return true;
        }
    }
</script>


<a href="javascript:void(addBookmark(document.title, window.location.href));">Bookmark Us</a>
mr-x is offline  
Old 05-31-2005, 05:33 PM   #2 (permalink)
New Member
 
RedCrescent's Avatar
Join Date: May 2005
Posts: 21
RedCrescent is an unknown quantity at this point
 



Nice little script there. That could be very useful.
__________________
- Ryan Grandmaison
- Red Crescent Design
RedCrescent is offline  
Old 06-04-2005, 02:28 AM   #3 (permalink)
Account Closed
Join Date: May 2005
Location: Huddersfield, England
Posts: 179
J_Ronaldo_19 is on a distinguished road
 



yes, when i get my site up another code i will use
J_Ronaldo_19 is offline  
Old 06-04-2005, 02:30 AM   #4 (permalink)
NamePros Regular
 
simpsons's Avatar
Join Date: Apr 2005
Location: England
Posts: 610
simpsons has a spectacular aura aboutsimpsons has a spectacular aura about
 



Originally Posted by J_Ronaldo_19
yes, when i get my site up another code i will use
Me too!
????: NamePros.com http://www.namepros.com/code/94525-bookmark-that-works-in-ie-firefox.html
Did you make this or find it on a site???
simpsons is offline  
Old 06-04-2005, 02:34 AM   #5 (permalink)
Account Closed
Join Date: May 2005
Location: Huddersfield, England
Posts: 179
J_Ronaldo_19 is on a distinguished road
 



i think he would of made it it looks quite simple
J_Ronaldo_19 is offline  
Old 06-21-2005, 08:18 AM   #6 (permalink)
NamePros Regular
 
Jim_Westergren's Avatar
Join Date: May 2005
Location: Sweden
Posts: 730
Jim_Westergren is a splendid one to beholdJim_Westergren is a splendid one to beholdJim_Westergren is a splendid one to beholdJim_Westergren is a splendid one to beholdJim_Westergren is a splendid one to beholdJim_Westergren is a splendid one to beholdJim_Westergren is a splendid one to beholdJim_Westergren is a splendid one to behold
 




I tested it on my site and it works!! Used it together with PHP as well, fantastic.

Took just a little time to figure out that I had to remove "title,url" in "function addBookmark(title,url)" and replaced then all other occurances of title and url with PHP.

Thanks a lot.
__________________
Jim Westergren
www.JimWestergren.com / Free website with N.nu
Jim_Westergren is offline  
Old 06-21-2005, 09:39 PM   #7 (permalink)
Senior Member
 
allabout42's Avatar
Join Date: May 2005
Location: Bay Area
Posts: 1,538
allabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud ofallabout42 has much to be proud of
 


Wildlife
Nice code you got there, thanks for sharing
allabout42 is offline  
Old 06-29-2005, 02:27 AM   #8 (permalink)
NamePros Member
Join Date: Oct 2003
Posts: 126
i386 is an unknown quantity at this point
 



Great snippet!
i386 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
FireFox problems or IE problems? skrilla Web Design Discussion 7 05-01-2005 07:24 AM
Internet Explorer 7.0 and CSS2 Eric The Break Room 5 04-13-2005 11:12 PM
Portable Firefox dgridley Free Resources 2 04-03-2005 11:34 AM
Wierd FireFox problem! HELP! ChrisK76 Web Design Discussion 8 03-24-2005 07:32 AM
For those of you who dont use FireFox GamingHybrid The Break Room 21 09-12-2004 01:51 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:43 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger