Something like... <a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.vbcoderz.com');" style="font-size:12px;color:#ffffff;font-family:verdana;">Set as Home Page</a> Code (markup): Change the link to yours and the text if needed
Clicking it will set it as your homepage. Homepage is the house or home Icon on your browser. I added the code in php file on my template. It's not working, My default Homepage is still the homepage after clicking the link. It did not set a new homepage.
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://default.com');" style="font-size:12px;color:#ffffff;font-family:verdana;">Set As Homepage</a> HTML: That should work. Least I am pretty sure it should work.
Hope you can share us how to make it work. Before it's working but now it doesn't change the homepage and I don't know why
<script type="text/javascript"> /*********************************************** * Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ /* Modified to support Opera */ function bookmarksite(title,url){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all)// ie window.external.AddFavorite(url, title); } </script> Code (markup): Put that under your <head> <a href="javascript:bookmarksite('yoursite', 'http://www.yoursite.com')">Bookmark Our Site!</a> Code (markup): Use that in the page to add the link. Works in all browsers I am pretty sure. I tested in IE and FF.
CTRL+D will only save and bookmark the site. I'm looking for how to set a site as Homepage. It's the site that opens when clicking the icon which looks like a House.
Yahoo can do it on IE after downloading a toolbar Is there a script that works like Dragging a site or banner link and drop it onto the "House" icon. when the button or link was clicked? After clicking it a pop up window will open asking "Do you want this document to be your new home page?"