Hi
I am embedding a swf object. I try:
[HTML]<script type="text/javascript" src="../scripts/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {
linktarget: "_top",
link: "http://www.google.co.z a",
linkfromdisplay : "true"
};
var params = {
menu: "false",
};
swfobject.embed SWF("Clarence_F ord.swf", "divFlash", "468", "60", "9.0.0", "", flashvars, params);
</script>
<div id="divFlash">
<a href="http://www.google.co.z a" border="0">
<img src="468_60px_G S_F.GIF" /></a>
</div>[/HTML]
and i have tried:
[HTML]<object classid="clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.adob e.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=8,0,0,0"
width="550" height="400" align="middle">
<param name="movie" value="Clarence _Ford.swf">
<param name="allowScri ptAccess" value="always">
<param name="flashVars " value="link=htt p://www.google.com" />
<embed type="applicati on/x-shockwave-flash" pluginspage="ht tp://www.adobe.com/go/getflashplayer"
width="550" height="400" align="middle" src="Clarence_F ord.swf"
allowscriptacce ss="always"></embed>
</object>[/HTML]
yet when i click on the flash object once the page has rendered it does not redirect me to the link that is set in the flashvars.
What could possibly be wrong? Is it maybe the swf file itself that does not all me to pass the flashVars. Every website I look at uses either one of the above methods yet it refuses to work for me.
note the example top uses swfobject.js
Any help appreciated.
I am embedding a swf object. I try:
[HTML]<script type="text/javascript" src="../scripts/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {
linktarget: "_top",
link: "http://www.google.co.z a",
linkfromdisplay : "true"
};
var params = {
menu: "false",
};
swfobject.embed SWF("Clarence_F ord.swf", "divFlash", "468", "60", "9.0.0", "", flashvars, params);
</script>
<div id="divFlash">
<a href="http://www.google.co.z a" border="0">
<img src="468_60px_G S_F.GIF" /></a>
</div>[/HTML]
and i have tried:
[HTML]<object classid="clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.adob e.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=8,0,0,0"
width="550" height="400" align="middle">
<param name="movie" value="Clarence _Ford.swf">
<param name="allowScri ptAccess" value="always">
<param name="flashVars " value="link=htt p://www.google.com" />
<embed type="applicati on/x-shockwave-flash" pluginspage="ht tp://www.adobe.com/go/getflashplayer"
width="550" height="400" align="middle" src="Clarence_F ord.swf"
allowscriptacce ss="always"></embed>
</object>[/HTML]
yet when i click on the flash object once the page has rendered it does not redirect me to the link that is set in the flashvars.
What could possibly be wrong? Is it maybe the swf file itself that does not all me to pass the flashVars. Every website I look at uses either one of the above methods yet it refuses to work for me.
note the example top uses swfobject.js
Any help appreciated.
Comment