So I checked out that site and I think it was helpful, or it just made things worse.
What I have so far:
HTML Code:
<div id="portfolio_flashcontent"><span class="align-center">
<embed
src="flash/demo.swf"
width="490"
height="330"
allowscriptaccess="always"
allowfullscreen="true"
/>
</span>
</div>
<div class="portfolio_spacer">
<div class="portfolioimagesLeft">
<div class="gallery">
<a href="#" onclick="setVideo('demo');"><img src="images/portfolio/motiongraphics/thumb_demo.jpg" /></a><br />
</div>
<div class="portfoliotext">
<b>Business:</b> Demo<br />
<b>Description:</b> Sample of motion graphics that can be used in a variety of different ways.<br />
</div>
</div>
</div>
Code:
<script>
function setVideo(name) {
var names = {
'demo' : {
'swf' : 'http://www.mysite.com/flash/demo.swf'
}
};
setFlash(names[name].swf);
document.getElementById('portfolio_flashcontent').innerHTML = names[name];
}
</script>
The image appears to be showing up, but I can't get the video to play
Bookmarks