Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

add flash with swfobject


Reply


2 Posts   2316 Views

Avatar
ojalà

Community Member, 87 Posts

28 October 2008 at 6:00am

HI!
I read some post about add flash. Here http://code.google.com/p/swfobject/wiki/documentation tell to use swfobject. so I download the package but where I put that? Then how can I use it?The guide say to add flash in this way:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject 2.0 - passo 3</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
</script>

</head>
<body>
<div>

<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">

<param name="movie" value="myContent.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
<!--<![endif]-->
<p>Contenuto alternativo</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

but in forum I foun also this code row:
<div id="HeaderZdjecia">
</div>
<script type="text/javascript">
var so = new SWFObject("header.swf", "mymovie", "950", "400", "9", "#ffffff");
so.addParam("wmode", "transparent");
so.addVariable("xmladress", "menurel.xml");
so.addVariable("id", "2");
so.addVariable("fv", "2");
so.write("HeaderZdjecia");
</script>
So what I must do?

Avatar
ojalà

Community Member, 87 Posts

28 October 2008 at 6:20am

I use first solution but I see nothing, only a withe space