Does anyone know what i can do to make it where I can put in a command to bookmark us or set us as homepage? I can't use javascript, or if I can i dunno how. I've tried several times.
thanks
Dustin
http://www.fbc-lc.org
Help on menu-Can i put command to bookmark Us/Set as Homepag
-
- Beginner
- Posts: 5
- Joined: Fri Jan 14, 2005 4:51 am
- Contact:
- fredlongworthhighschool
- Mega Advanced
- Posts: 362
- Joined: Fri Jun 27, 2003 11:34 am
- Location: Manchester, England.
- Contact:
I've just tried this, it seems to work:
1) This is the menu entry:
2) Add this function at the end of your MENU_DATA.JS file, just before the DRAWMENUS();
Edited 17/1: Missed close curly bracket!
1) This is the menu entry:
Code: Select all
aI("text=BOOKMARK US!;url=javascript:addtofav(window.location.href,document.title);");
Code: Select all
function addtofav(linkUrl,linkTitle){
if (!document.all) {
alert('Please hit ctrl-d to bookmark this page');
}
else external.AddFavorite(linkUrl,linkTitle);
}
Andy Davis
Web Designer & Smartboard Manager
Fred Longworth High School, Manchester, England.
Web Designer & Smartboard Manager
Fred Longworth High School, Manchester, England.