Javascript: toggling between a jpeg and a flash movie

Is it possible to toggle between a jpeg and a flash movie with javascript? PLease take a look at this page and let me know how to do it ... if it's possible.

I suppose this could be facilitated by exporting from flash with certain settings, so I'm putting this in the flash zone as well.


John CarneyReliability Business Tools Analyst IIAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

like this?
<script type="text/javascript"> 
function validate_email(field,alerttxt)
with (field)
if (apos<1||dotpos-apos<2) 
  {alert(alerttxt);return false;}
else {return true;}
function validate_form(thisform)
with (thisform)
if (validate_email(email,"Not a valid e-mail address!")==false)
  {email.focus();return false;}
<script type="text/javascript"> 
function mouseOver()
document.getElementById("div1").style.display = "none";
document.getElementById("div2").style.display = "block";
function mouseOut()
document.getElementById("div2").style.display = "none";
document.getElementById("div1").style.display = "block";
.textBox{width:200px; line-height:16px}
body{margin:40px; font-family: Gill Sans MT; font-size:14px;
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head> 
<div id="div1" style="position:absolute;top:50px;left:20px;width:200px;height;200px;" onmouseover="mouseOver();" onmouseout="mouseOut();"> 
<a href="" target="_blank"> 
  <img border="2" alt="Visit W3Schools!" 
src="" name="x"
<div id="div2" style="display:none;position:absolute;top:50px;left:20px;width:200px;height;200px;" onmouseover="mouseOver();" onmouseout="mouseOut();" >
<object width="200" height="200"> 
<param name="movie" value=""> 
<embed src="" width="200" height="200"> 

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Fantastic!  I love it when the answer is so simple and intuitive.

Thanks, quincydude.

- John
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Great answer!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.