|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Without JavaScript, I don't believe it is possible to have a link add a bookmark. You can tell people to press the hotkey instead, but it's not really as useful.
Some errors are meant to be ignored. Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
|
||||
|
W3C states there's a solution, but I may as well be trying to decipher the Dead Sea Scrolls or pryamid pictures to be honest ... http://www.w3.org/TR/WCAG10-HTML-TEC...ssible-scripts
__________________
W. R. Mineo |
|
|||
|
Yeah... what they said.
Code:
<script language="JavaScript">
<!--
javascript:window.external.AddFavorite('http://www.freshdames.com/index.html',%20'Female%20Celebrity%20Pictures');
//-->
</script>
<noscript>
Press CTRL+D to bookmark this page now.
</noscript>
Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
|
||||
|
Okay, now I'm stumped .... with that code:
The html is valid and it pass W3C link check - However: When the page first loads, it automatically pops up the favorites window (maybe not a bad thing, but also a real turn off for many I'd think). and The Bookmark Us is not present at the bottom as it was ... Are you messing with the blonde again, Brian; be nice :)
__________________
W. R. Mineo |
|
|||
|
I forgot that your code would need to be in a click event. Sorry. I'll think about it again in the morning when I'm not so sleepy.
Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
|
|||
|
Code:
<script language="JavaScript" type="text/javascript"><!--
function addToFav() {
window.external.AddFavorite('http://www.tolranet.co.uk', 'Web Development');
}
if(window.external)
document.write('<a href="javascript:addToFav()">Bookmark this page now<\/a>.');
else
document.write('
Press CTRL+D to bookmark this page now.<\/p>');
// --></script>
<noscript>
Press CTRL+D to bookmark this page now.</p>
</noscript>
|
|
||||
|
SWEET! Thanks, speed!
Works without a hitch. Passes W3C validation AND Link Checker! Are you listed at Heres1? If not, please feel free - also, please post some of your awesome knowledge! THANKS again. Oh, one final question - will this work with my link ref for favico or will I need to add into this script somehow? A very happy and impressed guy, Rob w®m
__________________
W. R. Mineo |
|
|||
|
Quote:
So assuming the browsers are currently showing the favicon then they will continue to show it. Quote:
|
|
|||
|
That's what I was thinking of doing, but after a day of CWS action, I wasn't thinking enough to put that all together.
Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |