This sample page was created in reference to this thread in the "Help and Support for Version 5".
To test the function click either of the above menu items. If your browser accepts the function this will be set as your homepage, if not you will receive an alert. You will need to reset whatever homepage you now use.
To use the mm_SetAsHomePage() function:
-
Place the following code at the top of your menu_data.js file
function mm_setAsHomePage() { if (ie5 || ie55) { itemObj = gmobj("el" + _itemRef); itemObj.style.behavior = "url(#default#homepage)"; itemObj.setHomepage(location.href); } else alert("Sorry, your browser does not support this function."); }
-
You can use either the url to set the page or the clickfunction. To use the url code your aI string as shown in a to use the click function code your aI string as shown in b
aI("text=Make this your Home page;url=javascript:mm_setAsHomePage();");
aI("text=Make us your Home;clickfunction=mm_setAsHomePage();");
- You should test each version before uploading to your working site. Note: you should test through a web server as it will probably not work on the desktop.