Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Posts
    28
    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.

  2. #2
    Join Date
    Jul 2005
    Location
    Connecticut - USA
    Posts
    62
    Plugin Contributions
    0

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

    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>
    Hope it's of some help to you.

    --Yizit

  3. #3
    Join Date
    Apr 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: a question for anyone who knows html

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

  4. #4
    Join Date
    Apr 2006
    Posts
    28
    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>

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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

  6. #6
    Join Date
    Apr 2006
    Posts
    28
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

  8. #8
    Join Date
    Apr 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: a question for anyone who knows html

    thanks i just signed up for it.

 

 

Similar Threads

  1. Does anyone knows ??
    By su4u in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Feb 2011, 04:52 PM
  2. Anyone knows how to configure Table rate for this options?
    By minute in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 18 Jul 2008, 10:15 AM
  3. Question for anyone who sells clothing in their shop...
    By STFlats in forum General Questions
    Replies: 9
    Last Post: 26 Jan 2008, 12:22 AM
  4. Who knows how to stop image popup ?
    By Muddler in forum General Questions
    Replies: 9
    Last Post: 5 Jun 2006, 04:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR