javascript & flash moive replacement

Associate
Joined
18 Oct 2002
Posts
1,752
Location
Southern England
hi all...

I'm currently building an shop for a client (cubecart base) who has now decided that they want to get some flash into the site.

At the moment, when a customer clicks on a thumbnail image javascript does an image replacement and displays a different larger image (named preview). The link is coded:

Code:
<a href="javascript:change_preview_image('{SRC_PROD_LARGE}')">

and this calls the following:

Code:
function change_preview_image(file_name)
{
    if(file_name.match('alice'))
         {
	document.images['preview'].src = file_name; 
          }
}

This works great. No problems there, and if there is no javascript support then the image won't change which is no issue.

However, the client now wants to have a flash slideshow run instead of a static image being replaced. This is where I am running out of brain power (ok so it's 23:50!)..

How would I go about loading a flash movie instead of a static image?

Any help would be appriciated.

thanks

Rob
 
Back
Top Bottom