[SWFObject] Multiple movies on one page

mysubs mysubs at zuna-media.com
Tue Apr 25 04:14:04 PDT 2006


I'm sure this could be done with an array but I'm not sure how to go 'bout
that, try replacing you div's with what I have below.  For multiple swf's on
a page you need to make sure the id's are not the same. Hope this helps.
cheryl


<div id="home_nav"> <a href="index.htm">Home</a></div>
<script type="text/javascript">
   var so = new swfobject("Home.swf", "Home", "93", "33", "7", "#006699");
   so.write("home_nav");
</script>

<div id="about_nav"><a href="AboutUs.htm">About Us</a></div>
<script type="text/javascript">
   var so = new swfobject("AboutUs.swf", "AboutUs", "93", "33", "7",
"#006699");
   so.write("about_nav");
</script>

<div id="photo_nav"><a href="PhotoAlbum.htm">Photo Album</a></div>
<script type="text/javascript">
   var so = new swfobject("PhotoAlbum.swf", "PhotoAlbum", "93", "33", "7",
"#006699");
   so.write("photo_nav");
</script>

<div id="vid_nav"><a href="VideoAlbum.htm">Video Album</a></div>
<script type="text/javascript">
   var so = new swfobject("VideoAlbum.swf", "VideoAlbum", "93", "33", "7",
"#006699");
   so.writ("vid_nav");
</script>

<div id="webcam_nav"><a href="WebCam.htm">Web Cam</a></div>
<script type="text/javascript">
   var so = new swfobject("WebCam.swf", "WebCam", "93", "33", "7",
"#006699");
   so.write("webcam_nav");
</script>

<div id="gb_nav"><a href="GuestBook.htm">GuestBook</a></div>
<script type="text/javascript">
   var so = new SWFObject("GuestBook.swf", "GuestBook", "93", "33", "7",
"#006699");
   so.write("gb_nav");
</script>


-----Original Message-----
From: John Rumball [mailto:jerumball at gmail.com] 
Sent: Tuesday, April 25, 2006 6:08 AM
To: swfobject at lists.deconcept.com
Subject: [SWFObject] Multiple movies on one page


I'm new to this list and a novice web programmer. I have just started using
swobject on my web pageto fix IE's problems with Flash movies. The first
page I tried it on was my Slide Show Pro gallery page and it seems
to work quite well.So I then tried it on the navigation buttons
(Flash-based) on my web site'smain template .dwt file, but obtained
unexpected results... One out of sevenbuttons appear and the rest show just
the alternate text.
The page I was try ing this on can be viewed
here:http://www.jerumball.com/test-flash-js.htmlCan someone explain what I
did wrong?  Thanks.
John




More information about the Swfobject mailing list