Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2005
    Location
    TN
    Posts
    116
    Plugin Contributions
    0

    Default How do I add extra images to a product using javascript

    I've looked at Zen Lightbox and that isn't what I want to use. I've seen what I do want to use. Zen Lightbox configures it the wrong way for me...too big.

    What I want is a javascript code but I am lousy at that and have no clue where she got hers. What I want mine to do is rotate each product like this one does: http://fall3nangel.com/store/

    Can anyone help me figure out which javascript that is? And how to code it into the pages? Liz

  2. #2
    Join Date
    Jan 2007
    Location
    1.5 miles from Home
    Posts
    674
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    Quote Originally Posted by southernlady View Post
    I've looked at Zen Lightbox and that isn't what I want to use. I've seen what I do want to use. Zen Lightbox configures it the wrong way for me...too big.

    What I want is a javascript code but I am lousy at that and have no clue where she got hers. What I want mine to do is rotate each product like this one does: http://fall3nangel.com/store/

    Can anyone help me figure out which javascript that is? And how to code it into the pages? Liz
    Google --> animated gifs

  3. #3
    Join Date
    Mar 2005
    Location
    TN
    Posts
    116
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    Google --> animated gifs
    Want to elaborate? Because Picasa Slideshow is not what I am looking for. That takes people off the web page onto my picasa album to see the pictures.

    If you look at the site I am referencing, the pictures rotate right there ON the site.

    Liz

  4. #4
    Join Date
    Jan 2007
    Location
    1.5 miles from Home
    Posts
    674
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    Quote Originally Posted by southernlady View Post
    Want to elaborate? Because Picasa Slideshow is not what I am looking for. That takes people off the web page onto my picasa album to see the pictures.

    If you look at the site I am referencing, the pictures rotate right there ON the site.

    Liz
    Yes the site you reference is using animated gifs.

    animated gifs don't use javascript.
    animated gifs is a image just like any image other it moves.
    animated gifs are like this --> or this -->
    animated gifs can be very large files which why the site you reference takes a long time to load.

    Google "make animated gifs"
    Last edited by tophand; 30 Dec 2008 at 05:39 PM.

  5. #5
    Join Date
    Mar 2005
    Location
    TN
    Posts
    116
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    Actually, if you look at her source code, she is using javascript:
    Code:
    <!--bof Main Product Image -->
     
    <div id="productMainImage" class="centeredContent back">
    <script language="javascript" type="text/javascript"><!--
    document.write('<a href="javascript:popupWindow(\'http://www.fall3nangel.com/store/index.php?main_page=popup_image&amp;pID=776&amp;\')"><img src="images/PreviewOA_YW.gif" alt="2 in 1 - Opposites Attract - Tagger Size" title=" 2 in 1 - Opposites Attract - Tagger Size " width="120" height="120" /><br /><span class="imgLink">larger image</span></a>');
    //--></script>
    
    <noscript>
    <a href="http://www.fall3nangel.com/store/index.php?main_page=popup_image&amp;pID=776&amp;" target="_blank"><img src="images/PreviewOA_YW.gif" alt="2 in 1 - Opposites Attract - Tagger Size" title=" 2 in 1 - Opposites Attract - Tagger Size " width="120" height="120" /><br /><span class="imgLink">larger image</span></a></noscript>
    </div><!--eof Main Product Image-->
    2 in 1 - Opposites Attract - Tagger Size

    That's why I asked about javascript AND how to put it in the page.

    Just telling me what to use is only part of my problem. I don't know how to implement it...I have YET to figure out EZ pages...they are NOT EZ.

    IF it were external html and uploading, I can do that but where to add those baffles me.

    Liz

  6. #6
    Join Date
    Mar 2005
    Location
    TN
    Posts
    116
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    animated gifs can be very large files which why the site you reference takes a long time to load.
    What you said did make a lightbulb go off tho...

    And I did a file in Animation Shop which solved the problem. No need for javascript. However, my animated gif file for the FIVE corners was a measley 11KB whereas the jpgs of the five added up to be a total of 29 KB so I saved 18 KB by using animation.

    True, they CAN be large, they just do not have to be large. Liz

  7. #7
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    That code is the default zen larger image popup code, the image is *still* an animated gif:

    http://www.fall3nangel.com/store/ima...eviewOA_YW.gif

    Yarrow has taken two previews of her kit and made an animated gif with two frames......no other/extra javascript required :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  8. #8
    Join Date
    Mar 2005
    Location
    TN
    Posts
    116
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    I found the solution to this...and you are partially right. But there is more to it than just "google it".

    Tophand, telling someone to do that really isn't an answer.

    What I discovered I had to do, for me was to create an animated image in Animation Shop (whatever the equivalent is in PS) since I use Paint Shop Pro.

    So yes, you were technically correct. But for someone using this software for the first time, the answer fell far short of being helpful.

    Liz

  9. #9
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: How do I add extra images to a product using javascript

    This is a *Zen Cart* support forum and the ppl that jump in here with helpful answers do so out of the kindness of their heart....not because they are obligated to do so.

    Your original post *was* answered with correct and helpful information in that no javascript was required for what you wanted to achieve, just an animated image.

    How to make an animated image is not a *Zen Cart* problem, it's not a required knowledge in order to make the cart function as it is intended, therefore the suggestion to google it IMO was appropriate AND would have given you more knowledge of the MANY different ways you can make one than someone giving you step by step instructions for just *one* way.

    By googling it, you have come by the knowledge you need for the programs you have on your pc, rather than having someone else do the work for you. :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

 

 

Similar Threads

  1. how do I add images using absolute positioning?
    By ScottDB in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 11 Sep 2011, 09:42 AM
  2. Add Extra Product Images ?
    By Newmanz in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jul 2007, 11:13 PM
  3. how do I add a javascript in product page
    By reza in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 31 May 2007, 11:54 AM
  4. 1.3.6 - not showing extra images on Product detail (using IH2)
    By quentinjs in forum Upgrading from 1.3.x to 1.3.9
    Replies: 30
    Last Post: 9 Dec 2006, 03:49 PM
  5. how to add a product extra field?
    By nudelady in forum General Questions
    Replies: 4
    Last Post: 27 Sep 2006, 01:17 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