Click to See Complete Forum and Search --> : Embed and Links


said_fox
06-02-2003, 04:47 AM
Hi,
I have a problem with <embed> and links, consider the following,
<a href="page.html"><embed src="flash.swf"></a>
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.
So any one can help me to make the link works correctly over the embed?:confused:

Khalid Ali
06-02-2003, 07:23 AM
It looks like you will have to ceate this link in th falsh mvie
add an onclick event and in that code your link.

Robert Wellock
06-02-2003, 12:15 PM
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.

said_fox
06-02-2003, 10:05 PM
The onClick Event does not work at all on the flash movie, when inserted in anchor Tag. However, the onMouseOver Event works properly.
consider the following:
<style type="text/css">
img.x
{
position:absolute;
z-index:1
}
....
<td>
<h1>Hello hiiiiiiiiiiiiiiii</h1>
<img src="pic.gif" class="x">
</td>
....
In this case the pic.gif will appeared over the text
Now suppose,
I want pic.gif to be displayed using onMouseOver as the folloing,
....
<td>
<h1 onMouseOver="???">Hello hiiiiiiiiiiiiiiii</h1>
</td>
....
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.
This may solve the problem with embed if the pic.gif is 100% Tranceperant.