Embed and Links

liunx

Guest
Hi,<br />
I have a problem with <embed> and links, consider the following,<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"page.html"><embed src="flash.swf"></a><br />
in IE the cursor takes the hand shape of link when it becomes over the embeded flash file, but the problem is onClick there's no any thing happened, i.e the page.html does not loaded.<br />
So any one can help me to make the link works correctly over the embed?:confused:<!--content-->It looks like you will have to ceate this link in th falsh mvie<br />
add an onclick event and in that code your link.<!--content-->Use <object> outside of the hyperlink or provide a normal link to the SWF file, embed is used for inserting replaced content not for linking to via a hyperlink.<!--content-->The onClick Event does not work at all on the flash movie, when inserted in anchor Tag. However, the onMouseOver Event works properly.<br />
consider the following:<br />
<style type="text/css"><br />
img.x<br />
{<br />
position:absolute;<br />
z-index:1<br />
}<br />
....<br />
<td><br />
<h1>Hello hiiiiiiiiiiiiiiii</h1><br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"pic.gif" class="x"><br />
</td><br />
....<br />
In this case the pic.gif will appeared over the text<br />
Now suppose,<br />
I want pic.gif to be displayed using onMouseOver as the folloing,<br />
....<br />
<td><br />
<h1 onMouseOver="???">Hello hiiiiiiiiiiiiiiii</h1><br />
</td><br />
....<br />
to be appeared over the text. i.e How can I implement the JavaScript code on the inMouseOver to display the pic.gif having features in the class x.<br />
This may solve the problem with embed if the pic.gif is 100% Tranceperant.<!--content-->
 
Back
Top