dsp77 Posted October 5, 2011 Share Posted October 5, 2011 i'm trying to place the href over the object because i need to call a javascript event. the html works in firefox but not in others #letter { position:relative; top: -15px; left: 0px; width:250px; height:175px; float:left; } #letter a { width:250px; height:175px; display:block; cursor:pointer; } <div id="letter"><a href="#" title="click"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="250" height="175" id="plic" align="middle"> <param name="movie" value="media/plic.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="play" value="true" /> <param name="loop" value="true" /> <param name="wmode" value="transparent" /> <param name="scale" value="showall" /> <param name="menu" value="true" /> <param name="devicefont" value="false" /> <param name="salign" value="" /> <param name="allowScriptAccess" value="sameDomain" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="media/plic.swf" width="250" height="175"> <param name="movie" value="plic.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="play" value="true" /> <param name="loop" value="true" /> <param name="wmode" value="transparent" /> <param name="scale" value="showall" /> <param name="menu" value="true" /> <param name="devicefont" value="false" /> <param name="salign" value="" /> <param name="allowScriptAccess" value="sameDomain" /> <!--<![endif]--> <a href="http://www.adobe.com/go/getflash"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </a> </div> any advise? Quote Link to comment Share on other sites More sharing options...
trq Posted October 5, 2011 Share Posted October 5, 2011 i'm trying to place the href over the object because i need to call a javascript event That statement makes no sense. What does an anchor tag have to do with Javascript? Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted October 5, 2011 Share Posted October 5, 2011 the only thing that i can think of here is that you want to use the link to call a javascript function? <a href='javascript:function()'> is this correct OP? an anchor tag is not necessary here, however it can be used. Quote Link to comment Share on other sites More sharing options...
dsp77 Posted October 5, 2011 Author Share Posted October 5, 2011 the java script searches for the first a href in #letter and shows a hidden div, the problem is that flash cannot launch this call and i want the href to be on top of the flash, i tried with z-index but no luck. Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted October 5, 2011 Share Posted October 5, 2011 i believe that you will want to add the flash var "wmode='transparent'" to your flash object.. this should integrate it into the html itself and allow you to layer things on top of it Quote Link to comment Share on other sites More sharing options...
dsp77 Posted October 6, 2011 Author Share Posted October 6, 2011 i believe that you will want to add the flash var "wmode='transparent'" to your flash object.. this should integrate it into the html itself and allow you to layer things on top of it if you look at the code i'm using "wmode='transparent'" Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted October 6, 2011 Share Posted October 6, 2011 what browser are you testing one? i believe that wmode=transparent will work on most browsers.. however it is not a universal fix Quote Link to comment Share on other sites More sharing options...
dsp77 Posted October 6, 2011 Author Share Posted October 6, 2011 i made a tweak on the object element and it works, the problem now is how to make the pointer to show that there is a link there. I made in flash a hand cursor but it persists after i move the mouse out of the flash. i uploaded the fla file. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.