Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Help me add a Clickable Image to my sidebox

    Hi
    I am trying to insert a image onto my sidebox ..It's a image size of 121x61 px.Then when someone clicks on that image it will open a another image of a certificate I have for my website..
    I have found some that do other things but can't find 1 that does this ... I suppose is it possible and 2 can someone point me to a page that can help me achieve this as am happy to try figure it out myself

    thanks

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,157
    Plugin Contributions
    11

    Default Re: Help me add a Clickable Image to my sidebox

    You might try searching thru the Plugins using the term sidebox. Many options.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Help me add a Clickable Image to my sidebox

    Usually when someone says "sidebox" and "image" and "certificate" in the same post they're wanting (but not telling that they want) to display something to suggest that their site uses SSL or some other thingy to make their site secure or trustworthy.

    There are dozens of sidebox plugins already geared specifically to that.


    Or you can write your own. In that case a good starting point could be: https://www.zen-cart.com/downloads.php?do=file&id=80



    You said: "clickable link" which will "open another image". That involves 4 parts:
    a) the clickable image file uploaded someplace on your server
    b) the "another image" file uploaded someplace on your server
    c) the sidebox HTML to contain the clickable image:
    Code:
    <a href="destination_url"><img src="clickable image filename"></a>
    d) and a decision about what exactly you want to happen when they click (a new page to open, or a javascript popup) ... and all the corresponding code for that destination action to occur
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Re: Help me add a Clickable Image to my sidebox

    Hi,I am already using the blank sidebox add on as that's where I want to place it
    I have already done A & B ,it is just trying to figure out how to do it..
    Suppose the best example I can find is on "that software guy" website the green review button on the right.

    Is there anything wrong with doing what I am wanting to do ..Or should I just leave it off and forget it

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Help me add a Clickable Image to my sidebox

    Iterate.

    1. for destination_url just put the URL to your image file. ie: <img src="//your_domain.com/images/filename.jpg">
    Done.

    2. Then if you wanted that to load in a popup window instead, you could make further alterations by using something akin to:
    Code:
    <script type="text/javascript">
    function popupImageWindow(url) {
     window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=550,height=550,screenX=150,screenY=100,top=100,left=150')
    }
    </script>
    <a href="javascript:popupWindow(\'images/filename.jpg\')"><img src="//your_domain.com/images/filename.jpg"></a>
    These are just ideas taken from the ZC shopping_cart page template components.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Re: Help me add a Clickable Image to my sidebox

    Thanks , that's exactly what I needed ,had to remove 1 of the backslashes in the last line.
    Just trying to get the pop up bigger as it is very small :)

 

 

Similar Threads

  1. Clickable Background image
    By Lazar in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Feb 2017, 02:42 PM
  2. Can I make the category sidebox header clickable?
    By chunkyman in forum General Questions
    Replies: 0
    Last Post: 19 Apr 2012, 10:00 AM
  3. Add clickable question mark image next to an attribute drop-down box
    By chingy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Mar 2010, 11:45 PM
  4. Use A LINKED/Clickable Image For the Sidebox Header?
    By ampped80 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Mar 2009, 05:28 PM
  5. sidebox html - add image/link to paypal verified sidebox
    By wasana in forum General Questions
    Replies: 0
    Last Post: 14 Jul 2006, 04:00 AM

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