Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Javascript Code - Products Info Page

    You do not need this line in your product description, because Zen Cart already generates it for you:

    Code:
    <script src="/cart2/includes/modules/pages/product_info/jscript_slideshow.js" type="text/javascript"></script>
    .

    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Javascript Code - Products Info Page

    I've cancelled the line!!!
    It doesn't work.

    Code:
    <table width="100%" align="right" cellpadding="0" cellspacing="1">
    <tbody>
    <tr>
    <td width="33%" valign="top">
    <title>
    <div align="center">Image Slideshow</div>
    </title>
    
    <div align="center">
    
     
    <!-- CONTENT TABLE -->
    
    </div>
    <TABLE cellpadding=0 cellspacing=0 border=0 width="100%" height="100%"><tr><td ALIGN=center VALIGN=center>
    
    <form name=slideform>
    
    <!-- EDIT THIS AREA TO ADD AND REMOVE PICTURES FROM THE SLIDESHOW -->
    
    <input type=hidden value="/cart2/images/amax/25081/small/Fgallery1-1.jpg" name="slide" onChange="change();">
    <input type=hidden value="/cart2/images/amax/25081/small/Fgallery1-2.jpg" name="slide" onChange="change();">
    <input type=hidden value="/cart2/images/amax/25081/small/Fgallery1-3.jpg" name="slide" onChange="change();">
    <input type=hidden value="/cart2/images/amax/25081/small/Fgallery1-4.jpg" name="slide" onChange="change();">
    <input type=hidden value="/cart2/images/amax/25081/small/Fgallery1-5.jpg" name="slide" onChange="change();">
    <input type=hidden value="/cart2/images/amax/25081/small/Fgallery1-6.jpg" name="slide" onChange="change();">
    <input type=hidden value="/cart2/images/amax/25081/small/Fgallery1-7.jpg" name="slide" onChange="change();">
    
    <table width="232" height="174" border="0" cellpadding="1" cellspacing="0">
    <tr><td align=center height="30">
    
    <span class="slideshowtitle">Gallery Slideshow</span>
    
    
    </td></tr><tr><td align="center" bgcolor="C0C0C0" height="150">
    
    
    <!-- THE NEXT LINE IS THE STARTING PICTURE -->
    
    <img src="/cart2/images/amax/25081/small/Fgallery1-1.jpg" name="show"><br>
    
    
    
    </td></tr><tr><td align=center height="50">
    
    <input type=button onClick="first();" value="|<<" title="Beginning" class="button-popups" onMouseOver="this.className='buttonon-popups'" onMouseOut="this.className='button-popups'">
    <input type=button onClick="previous();" value="<<" title="Previous" class="button-popups" onMouseOver="this.className='buttonon-popups'" onMouseOut="this.className='button-popups'">
    <input type=button name="slidebutton" onClick="ap(this.value);" value="AutoPlay" title="AutoPlay" class="button-popups" onMouseOver="this.className='buttonon-popups'" onMouseOut="this.className='button-popups'">
    <input type=button onClick="next();" value=">>" title="Next" class="button-popups" onMouseOver="this.className='buttonon-popups'" onMouseOut="this.className='button-popups'">
    <input type=button onClick="last();" value=">>|" title="End" class="button-popups" onMouseOver="this.className='buttonon-popups'" onMouseOut="this.className='button-popups'">
    </td>
    </tr>
    </table>
    </form>
    
    
    
    
    </td></tr></table>
    
    
    <!-- THIS IS MEDIAPLAYER MOVIE -->
    
    </ST1:PLACE>
    <div align="center">
    <object id="MediaPlayer1" width="232" height="208" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902"
    standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
    <param name="FileName" value="/cart2/video/maxiva.wmv">
    <param name="animationatStart" value="false">
    <param name="transparentatStart" value="false">
    <param name="autoStart" value="true">
    <param name="showControls" value="true">
    <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="/cart2/video/maxiva.wmv" AutoStart="true" ShowStatusBar="0" volume="-1" HEIGHT="208" WIDTH="232"></embed></object><br>
    
    </div></td>
    <td width="67%" valign="top"><div align="left"><span class="Stile2"><strong>TECHNICAL DATA </strong>
    </span>
    <ul>
    <li class="Stile2">                                    Height: 190mm</li>
    <li class="Stile2">                                    Gear Ratio: 1:11.71</li>
    <li class="Stile2">                                    Ground Clearance: 27mm</li>
    <li class="Stile2">                                    Wheelbase: 320-325mm</li>
    <li class="Stile2">                                    Track(F/R): 258/260mm</li>
    <li class="Stile2">                                    Weight: 3300g</li>
    <li class="Stile2">                                    Tank: 125cc</li>
    <li class="Stile2">                                    Engine: 21cxp </li>
    <li class="Stile2">                                    Tires: 116*42mm</li>
    </ul>
    <p> </p>
    <ul><li class="Stile2">Four wheel center main shaft drive system</li>
    <li class="Stile2">High performance spur gears and pinions complete</li>
    <li class="Stile2">6061/t6 solid anodized aluminum radio tray/front top plate and front/rear   shock tower.</li>
    <li class="Stile2">Solid universal joint cup/good quality ball bearings</li>
    <li class="Stile2">Good quality 1/8th scale buggy wheel rims & pre-mounted 1/8th scale   aggressive urable buggy tyres.</li>
    <li class="Stile2">Alum. chassis with good quality extra large plastic left and right side   plates is suited for vehicle stability and features good protection against   little stones getting in.</li>
    <li class="Stile2">Good quality all plastic parts applied.</li>
    <li class="Stile2">Disc brake system provides good and quick brake response.</li>
    <li class="Stile2">Extra large capacity leak proof fuel tank with the overflow pipe and spring   loaded fill cover for quick re-fueling  </li>
    <li class="Stile2">6mm solid rear anti roll bar & compact battery/receiver box design   allows for good protection against water and dust.</li>
    <li class="Stile2">Oil filled shock absorbers with solid shock bodies /extra large heat sink   provides quick engine heatproof response. </li>
    </ul></div>
    </td></tr><tr>
    <td colspan="2" valign="top"><div align="center"></div></td>
    </tr>
    </tbody>
    </table>
    <br>
     </p>
    <p align="left"> </p>
    <p align="left"> </p>
    Also the preview doesn't work.
    Any idea?
    Last edited by maxiva; 27 Apr 2008 at 04:50 PM.

  3. #3
    Join Date
    Apr 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Javascript Code - Products Info Page

    Code:
    <input type=button name="slidebutton" onClick="ap(this.value);" value="AutoPlay" title="AutoPlay" class="button-popups" onMouseOver="this.className='buttonon-popups'" onMouseOut="this.className='button-popups'">
    the problem is probably here!!!!

 

 

Similar Threads

  1. Position Javascript code in after Featured Products?
    By icecold in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 May 2012, 12:37 AM
  2. Add JavaScript Tabs to Product Info Page
    By kbaxta in forum General Questions
    Replies: 1
    Last Post: 1 Jul 2010, 04:14 PM
  3. Javascript error in product info page -- Fual Slimbox and wz_tooltip
    By neboztik in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 9 Mar 2010, 09:13 PM
  4. Applying a Javascript code on every page?
    By skyegospel in forum General Questions
    Replies: 2
    Last Post: 19 Nov 2008, 02:29 PM
  5. Javascript validation on product info page - is my JS right ?
    By FuzzyJared in forum General Questions
    Replies: 0
    Last Post: 10 Apr 2007, 07:21 PM

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