[SWFObject] Flash object as hyperlink
Aran Rhee
aran.rhee at qdc.net.au
Tue Sep 19 19:11:43 PDT 2006
Hi all.
Back in July, I posted this solution to the same question. You can make the
contents of a div a link like below. I used CSS to change the cursor as
expected on a link.
<style type="text/css">
div.linkdiv {cursor:pointer;}
</style>
<body>
<div class="linkdiv" onclick="javascript:location='http://some.com'"
id="adiv"> ... stuff goes here ...
</div>
</body>
BTW - you might want to check to make sure the flash has been written before
applying the link to your <div>
Cheers,
Aran
> -----Original Message-----
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of
> Dave Pollak
> Sent: Wednesday, 20 September 2006 5:08 AM
> To: swfobject at lists.deconcept.com
> Subject: [SWFObject] Flash object as hyperlink
>
> I've got swfobject working so my flash object displays
> without the annoying 'click to activate...' tool tip however
> I also want the object to be a hyperlink.
>
> I put anchor tags around the 'flashcontent' <div>. Blank
> space within the <div> is hyperlinked but the object itself
> is not. On mouseover of the object the cursor changes back to
> a pointer.
>
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
More information about the Swfobject
mailing list