View Single Post
  #4  
Old 01-13-2004, 02:00 PM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

Very rough breakdown of steps:

Find out if the user has flash. Run a script or make them click a button that turns something like $flash_mode = ON

Once you find they have flash you need to edit the product thumbails.tpl or detailed image module to an if statement.

So it will say something like {if $flash_mode eq "ON"} play a swf {else} do a normal thumbnail {/if}

Hard part is writing the code to play the swf. If you name all your swf's the $productid.swf (ex: 3462.swf) then you should be able to find the $productid part fairly simply with php and just have it put .swf at the end and look in a certain folder.

Sorry dont have time to write something up, I just wanted to give you an outline of my idea to do this. I will be adding this feature to my site mid year once the low bandwidth site is done and 100%.
__________________
Gibberish
[Unix] X-Cart 4.0.12
Reply With Quote