Md.Shadab Akhtar
Md.Shadab Akhtar

Reputation: 116

How to embed a swf file and link it to another page using HTML?

I used

<object type="application/x-shockwave-flash" onmouseup="document.location='http://www.pageopensafterclick.com'" height=50 width=150>
  <param name="wmode" value="transparent" />
  <param name="movie" value="myswffile.swf" />
</object>

to embed my swf file and link it to another page, but it is only working in Chrome, I.E., opera but not in Firefox. Can someone please tell me a code which works in all the browsers. I would be so thankful.

Upvotes: 0

Views: 15275

Answers (1)

Sandeep Manne
Sandeep Manne

Reputation: 6092

<div onmousedown="window.location.href='new_location'">
    <object>
        <param name="movie" value="3.swf">
        <param name="wmode" value="transparent" />
        <embed wmode=transparent allowfullscreen="true" allowscriptaccess="always" src="3.swf"></embed>
    </object>
</div>

Upvotes: 2

Related Questions