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? Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/ 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? Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/#findComment-1276003 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. Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/#findComment-1276007 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. Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/#findComment-1276025 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 Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/#findComment-1276029 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'" Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/#findComment-1276355 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 Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/#findComment-1276429 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] Link to comment https://forums.phpfreaks.com/topic/248477-href-and-flash-object/#findComment-1276468 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.