
Originally Posted by
holson
Does this code go into my external javascript page?
Yes, but it also needs to be "hooked" to the thumbnails somehow, like your current changeimage function.

Originally Posted by
holson
Also, do I put the name of the SWF where you have:
function showSwf(swf){
var container = document.getElementById('imagecontainer');
container.appendChild(swf);
No, that wouldn't work for more than one movie. Although inline event-handlers are messy, just put the SWF filename into the HTML like you were doing with the image filename.
Code:
<td class="thumbnail" onclick="showSwf('images/XX_movie.swf');">
<img src="images/XX_pic_sml.jpg"/>
</td>
Replace the above showSwf function with this:
Code:
function showSwf(url){
var container = document.getElementById('imagecontainer');
var swf = makeSwf(url, 'movie', 559, 697);
if(container.hasChildNodes()){
container.replaceChild(swf, container.firstChild);
}else{
container.appendChild(swf);
}
}
Bookmarks