I am trying to figure out the html for a button that would make my website a home page. If anyone knows the code for this that would be awesome.
I am trying to figure out the html for a button that would make my website a home page. If anyone knows the code for this that would be awesome.
I'm not 100% certain, but it's my understanding that what you want to do will only work with IE Browsers.
I also don't know if it can be done using HTML.
Perhaps someone can either confirm or deny either or both of the above remarks.
However, for what it's worth, here's a javascript that can be embedded anywhere you want in your HTML. It also delivers a small popup asking user to confirm.
Hope it's of some help to you.Code:<SCRIPT LANGUAGE="JavaScript"> <!-- Begin // Be sure to change the "http://www.YourWebSiteHere.com\" // to the URL you want them to bookmark. // Change "YourButtonImage.jpg" to the image you want to use. if (document.all){ document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.YourWebSiteHere.com\');">'); document.write('<img src=YourButtonImage.jpg></a>'); } // End --> </script>
--Yizit
so it wont work with safari and other browsers besides IE?
ok so im not sure if this is going to work but if anyone can answer this than you are this shiz nit. so my website is campusgoal.com and at the top i have a home a contact and a about us buttons. i want to and another buttone that would incorporate the code to make a home page. Here i have the stock line of html that controls the home button. if anyone knows how to incorporate the html and the javascript that would be sweet.
<td width="62"><a href="../website/current%20campus/index.html" onmouseover="document.Home.src='images/navHomeOn.jpg'" onmouseout="document.Home.src='images/navHomeOn.jpg'"><img name="Home" src="../website/current%20campus/images/navHomeOn.jpg" /></a></td>
On the site 'campusgoal.com' you already have a 'home' tab...
What is it that you are trying to add??
Are you wanting to link from this page to your catalog?
Or from your catalog back to this page?
Or what??
Zen-Venom Get Bitten
Im trying to add an "Add Home" button that when clicked on will make my website their home page. here i have the edited html for this button.
<td width="95"><a href="../website/current%20campus/contact.html" onmouseover="document.Add.src='images/navAddOn.jpg'" onmouseout="document.Add.src='images/navAdd.jpg'"><img name="Add" src="../website/current%20campus/images/navAdd.jpg" /></a></td>
I was looking on the web and found this code to make a button that would make my website a home page and it is below. Now this is where im at a loss, how would i combine the two? Also the new buttons that i am trying to add dont load unless i scroll my mouse over it. Any help is greatly appreciated.
<FORM>
<INPUT TYPE="button" VALUE="Make This Site Your Home Page" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('Page URL beginning with http:// here');">
</FORM
Hess
HTML alone can't do this. It is just a container for the scripting language you actually need. But more than that, your question has absolutely nothing to do with Zen Cart. I would recommend you take it one of the more general web development forums such as Weborum where you will find people more used to dealing with this sort of question hang out.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
thanks i just signed up for it.
Bookmarks