Forums / General Questions / a question for anyone who knows html

a question for anyone who knows html

Locked

Views: 1,711

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 May 2006, 12:29 AM
#1
hess avatar

hess

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

a question for anyone who knows html

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.

17 May 2006, 3:28 AM
#2
yizit avatar

yizit

New Zenner

Join Date:
Jul 2005
Location:
Connecticut - USA
Posts:
50
Plugin Contributions:
0

Re: a question for anyone who knows html

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.

<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>

Hope it's of some help to you.

--Yizit

17 May 2006, 3:53 AM
#3
hess avatar

hess

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: a question for anyone who knows html

so it wont work with safari and other browsers besides IE?

17 May 2006, 7:08 PM
#4
hess avatar

hess

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: a question for anyone who knows html

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>
17 May 2006, 7:49 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: a question for anyone who knows html

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

17 May 2006, 7:58 PM
#6
hess avatar

hess

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: a question for anyone who knows html

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
17 May 2006, 10:52 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: a question for anyone who knows html

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)

17 May 2006, 11:35 PM
#8
hess avatar

hess

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: a question for anyone who knows html

thanks i just signed up for it.