Jump to content

href and flash object


dsp77

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.