Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default how to make clickable buttons?

    hi I'm new to zen cart and am trying to make buttons move or click in when pushed but i don't know code very good so i don't what to do please help. a .gif image that shows what i am talking about has been attached. Thanks ahead of time
    Attached Images Attached Images  

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: how to make clickable buttons

    Why and where in ZenCart are you trying to do this?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: how to make clickable buttons

    all buttons will do this in zen cart. why because i want the buttons to be like the button actually pushes in and pops back out i don't want it to stay pushed i want it to be like pushing a button on your keyboard.

  4. #4
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: how to make clickable buttons

    i found this html code it does what i want but is this what i do in zen cart?

    <html lang='en'>
    <head>
    <meta http-equiv='Content-type' content='text/html;charset=UTF-8'>
    <title>Image Click</title>
    <script type="text/javascript">
    function clickDown() {
    var Bdown = '<img src="pic2.png" alt="picture" onmouseup="clickUp()">';
    document.getElementById('b').innerHTML = Bdown;
    }
    function clickUp() {
    var Bup = '<img src="pic1.png" alt="picture" onmousedown="clickDown()">';
    document.getElementById('b').innerHTML = Bup;
    }
    </script>
    </head>
    <body>
    <h1></h1>
    <p><span id="b"><img src="pic1.png" width=159 height=100 alt="picture" onmousedown="clickDown()"></span></p>
    </body>
    </html>

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: how to make clickable buttons

    The zen-cart button-related functions are located in /includes/functions/html_output.php.

  6. #6
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: how to make clickable buttons

    OK thanks. what would i change in this file and will all buttons do it or does each button have to be set separately

  7. #7
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: how to make clickable buttons

    in this file what do i change please forgive me I'm new to all this code stuff and i do not want to change anything until i know what I am changing

  8. #8
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: how to make clickable buttons

    It might be simpler to use the stylesheet for this. I Googled for "button click visual effect using CSS" and got some good links talking about this.

    Rob

  9. #9
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: how to make clickable buttons

    OK thanks but I'm not sure what i should be looking for on goggle ??? Is there a way to make a button that is 2 different size images of the same button. When you click the button the smaller button image appears then the big button image reappears to make a push in effect for the button??
    Last edited by kab_death; 15 Feb 2010 at 03:43 PM.

  10. #10
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: how to make clickable buttons

    i would just like to thank all of you for your help so far but I'm still stuck if someone could give an example of how to do this it would help very much. thanks again

    I'm just learning sorry

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Logo link - how can I make clickable space larger?
    By Kenichi in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Apr 2010, 07:33 AM
  2. Make header clickable
    By iwantone in forum General Questions
    Replies: 0
    Last Post: 25 Feb 2010, 06:57 PM
  3. How Do I make "Important Links" Clickable?
    By nisdats in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 May 2009, 11:50 PM
  4. How can I make my titles not clickable?
    By M_Keller in forum General Questions
    Replies: 0
    Last Post: 30 Nov 2008, 02:57 PM
  5. Buttons in header not clickable
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 12 Apr 2007, 06:45 AM

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