homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

<object> won't work - message in dreamweaver

10+ Year Member

Msg#: 3029779 posted 4:58 pm on Jul 21, 2006 (gmt 0)

I've been getting a "message" from dreamweaver everytime I open my browser about how the <object> tag may not work in the next version of IE and do I want dreamweaver to fix this error.. of course when dw does fix the error nothing works. What is the deal with this, is there a correct way to put flash into a page?



10+ Year Member

Msg#: 3029779 posted 7:52 pm on Aug 7, 2006 (gmt 0)

The way I've been embedding Flash into HTML is by the SWFObject method (see [blog.deconcept.com...] for the open source code). It was called FlashObject before but they had to change the name to be patent friendly to Flash...

I had to find a way that would work with old versions of Safari - the usual Satay method <object> + <embed> wasn't working, and it bunged up IE7 with the "click to activate" embed patent stuff.

SWFObject is a javascript replacement technique that basically works like this:

1. Attach the SWFObject javascript to your page.
<script type="text/javascript" src="swfobject.js"></script>

2. Put your alt content in a <div> tag with a unique ID (you can use scripting to generate a unique id if you need to loop through flash results)

<div id="unique_id">
here is my search-engine friendly alt content

3. Paste the javascript into your page, and customize it to suit your SWF:

<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "200", "100%", "7", "#336699");
so.addParam("quality", "low");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");

the so.addParam items are if you need to add FlashVars to your content - a nice way to pass simple variables without using XML.

Make sure your IDs match! <div id="unique"> and so.write("unique");

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved