Is it possible to let the demo start automatic after hitting PLAY DEMO?
20.02.2013 01:32
|
|
backingtracks
Name: Henry
09.02.2013
Posts: 45
|
|
20.02.2013 20:07
|
|
backingtracks
Name: Henry
09.02.2013
Posts: 45
|
|
20.02.2013 20:14
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25941
|
Aw: DEMO play starts automatic
components\com_jshopping\templates\default\product\playmedia.php jQuery('#video').media( { width: <?php print $this->config->video_product_width; ?>, height: <?php print $this->config->video_product_height; ?>, autoplay: 1} ); autoplay: 1 - not work. See http://malsup.com/jquery/media/ |
20.02.2013 22:55
|
|
backingtracks
Name: Henry
09.02.2013
Posts: 45
|
|
28.02.2013 14:48
|
|
backingtracks
Name: Henry
09.02.2013
Posts: 45
|
|
03.03.2013 17:47
|
|
backingtracks
Name: Henry
09.02.2013
Posts: 45
|
Aw: DEMO play starts automatic
Solved it! com_jshopping/templates/default/product/demofiles.php Change: <td class="download"><a target="_blank" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>" onClick="popupWin = window.open('<?php print SEFLink("index.php?option=com_jshopping&controller=product&task=showmedia&media_id=".$demo->id);?>', 'video', 'width=<?php print $this->config->video_product_width;?>,height=<?php print $this->config->video_product_height;?>,top=0,resizable=no,location=no'); popupWin.focus(); return false;"><img src = "<?php print $this->config->live_path.'images/play.gif'; ?>" alt = "Demo" title = "play"/></a></td> Into this: <td class="download"><a target="_new" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>" onClick="popupWin = window.open(this.href,'demo','toolbar=no,menubar=no,directories=no,status=no,menubar=no,location=top,width=300,height=10,scrollbars=yes'); popupWin.focus(); return false;"><img src = "<?php print $this->config->live_path.'images/play.gif'; ?>" alt = "Demo" title = "Play Demo File"/></a></td> Works for me :-) @webdesigner: Is the code tecnically correct? I'm not a programmer.
Letzte Änderung: 03.03.2013 18:08
|
03.03.2013 18:38
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25941
|
|
04.03.2013 01:42
|
|
backingtracks
Name: Henry
09.02.2013
Posts: 45
|
|
04.03.2013 07:59
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25941
|
|
04.03.2013 15:54
|
|
backingtracks
Name: Henry
09.02.2013
Posts: 45
|
Aw: DEMO play starts automatic
THIS is perfect! <?php if (count ($this->demofiles)){?> <div class="list_product_demo"> <table> <?php foreach($this->demofiles as $demo){?> <tr> <td class="descr"><?php print $demo->demo_descr?></td> <?php if ($this->config->demo_type == 1) { ?> <td class="download"><a href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>"><script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script></a></td> <?php } else { ?> <td class="download"><a target="_blank" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>"><?php print _JSHOP_DOWNLOAD;?></a></td> <?php }?> </tr> <?php }?> </table> </div> <?php } ?>
Letzte Änderung: 04.03.2013 16:28
|
03.07.2013 02:48
|
|
HMB
Name: HMB
18.05.2013
Posts: 52
|
|