Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

<object> won't work - message in dreamweaver

4:58 pm on Jul 21, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 8, 2003
votes: 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?
7:52 pm on Aug 7, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:July 1, 2004
votes: 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">

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members