Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Posts
    27
    Plugin Contributions
    0

    Default Wimpy button Javascript question

    I know that this isn't a zen-cart question, but I'm Javascript challenged, and I hoped this would have an easy answer!

    I got the Wimpy button to play media samples working really well using this HTML Code (just in case anyone else wants it):

    Code:
    <!-- Wimpy Button Code -->
    
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="30" height="30" id="wimpy_button_9222" name="wimpy_button_9222" >
    
    <param name="movie" value="media/wimpy_button.swf?theFile=media/<?php echo $za_clip['clip_filename']?>&loopMe=yes" />
    
    <param name="quality" value="high" />
    
    <param name="bgcolor" value="2E2E2E" />
    
    <embed src="media/wimpy_button.swf?theFile=media/<?php echo $za_clip['clip_filename']?>&loopMe=yes" width="30" height="30" quality="high" bgcolor="2E2E2E" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  name="wimpy_button_9222" /></object>
    
    <!-- End Wimpy Button Code -->
    However, in Internet Explorer 7 there is that really annoying 'Click to Activate'. I know that I can kill this activate using the Wimpy Javascript:

    writeWimpyButton("song-name", "30", "30", "");

    but I can't work out how to send the $za_clip['clip_filename'] to the javascript in place of "song-name".

    Thank you!

  2. #2
    Join Date
    Sep 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Wimpy button Javascript question

    Sorry
    but need to be posted in javascript forum !!!!!
    read the faq and tutorials and they will help u solve little problems
    www.goshoppinglive.com

  3. #3
    Join Date
    Oct 2005
    Posts
    66
    Plugin Contributions
    0

    Default Re: Wimpy button Javascript question

    hey carolight, where does that Wimpy play button code go? I'd love to get that working on my site!

  4. #4
    Join Date
    Aug 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Wimpy button Javascript question

    Have a look at this page, under Sample Music, so you can see the code embedded.
    http://www.madhatterpublications.com...products_id=35

    (I never did get that Javascript working )

    It's a great player. I procrastinated over paying out real cash for such a little button, but it's worth it, for the simplicity.

    I put it in the file tpl_modules_media_manager.php, if that helps.
    Last edited by carolight; 15 Jul 2008 at 07:32 AM.

 

 

Similar Threads

  1. JavaScript button in header
    By DontBlink7 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Apr 2011, 01:31 AM
  2. javascript question
    By new_tokkie in forum General Questions
    Replies: 2
    Last Post: 22 Mar 2010, 10:29 PM
  3. Javascript validating radio button
    By jds580s in forum General Questions
    Replies: 1
    Last Post: 29 Oct 2007, 09:53 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