www.webdeveloper.com
Results 1 to 4 of 4

Thread: Embed and Links

  1. #1
    Join Date
    Jan 2003
    Location
    Egypt
    Posts
    185

    Embed and Links

    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?
    Regards();
    return Said Bakr
    My Blog - Quran

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,120
    It looks like you will have to ceate this link in th falsh mvie
    add an onclick event and in that code your link.
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    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.

  4. #4
    Join Date
    Jan 2003
    Location
    Egypt
    Posts
    185
    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.
    Regards();
    return Said Bakr
    My Blog - Quran

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles