[SWFObject] Making the whole Flash file a link
Aran Rhee
aran.rhee at qdc.net.au
Sun Jul 30 21:35:05 PDT 2006
Sorry for the extra post.
I thought I'd investigate this a bit more as its got my interest. You can
get around the cursor issue with the below. (tested in firefox/IE6, but I'm
not sitting in front of a mac right now, so no safari tesing etc...)
<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 Aran Rhee
> Sent: Monday, 31 July 2006 2:24 PM
> To: swfobject at lists.deconcept.com
> Subject: Re: [SWFObject] Making the whole Flash file a link
>
> Drew.
>
> I think you might need a transparent GIF on top (or another
> flash file etc) to place the link on to. I could be wrong,
> but I don't think you can't make a <DIV> or <td> etc a link.
>
> You can do this though :)
>
> <div onclick="javascript:location='http://some.com'"
> id="linkdiv"> ... stuff goes here ...
> </div>
>
> Only problem is you don't get a link cursor....
>
>
> Duncan - I don't think Drew has access to the original flash
> file, but as you suggested, you could have a flash movie with
> just the button in it and pass the URL param to the button
> movie on top.
>
>
> Aran
>
>
> > -----Original Message-----
> > From: swfobject-bounces at lists.deconcept.com
> > [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of drew
> > Sent: Monday, 31 July 2006 2:00 PM
> > To: swfobject at lists.deconcept.com
> > Subject: Re: [SWFObject] Making the whole Flash file a link
> >
> > Thanks for the reply Aran. (And thanks Geoff for stemming the tide
> > that my query unfortunately triggered ... :-)
> >
> > I would normally put the link in the Flash file, but the
> flash file in
> > this case is from our marketing company, and I want to be
> able to set
> > it to point to wherever I like just using a normal URL, rather than
> > having to get them to alter the Flash file each time.
> >
> > I have tried wrapping the whole "flashcontent" div in an <a
> href=...>
> > tag, but that didn't work, probably because it's illegal in HTML (I
> > suspect)...
> >
> > Another div floating above the "flashcontent" div, with the link
> > attached to that?? hmm, I'll try it.
> >
> > Drew
> >
> > On 7/31/06, Aran Rhee <aran.rhee at qdc.net.au> wrote:
> > >
> > >
> > >
> > > Drew.
> > >
> > > This is usually accomplished inside the flash movie with an
> > invisible button etc.
> > >
> > > You could also do it with a layer above the flash using
> <div> etc.
> > >
> > > Cheers,
> > > Aran
> > >
> > >
> > > ________________________________
> > From: swfobject-bounces at lists.deconcept.com
> > [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Drew
> > Robinson
> > > Sent: Monday, 31 July 2006 12:22 PM
> > > To: swfobject at lists.deconcept.com
> > > Subject: [SWFObject] Making the whole Flash file a link
> > >
> > >
> > >
> > > Hi people,
> > >
> > > Is there a way I can pass in some variable to make the
> > whole flash file a link to a url??
> > >
> > > (Sorry if this question has been answered, I did search
> > the list archives, but couldn't find any relevant results
> > for "make link" etc.)
> > >
> > > Thanks in advance,
> > > Drew____________________________________________
> > > SWFObject mailing list
> > > SWFObject at lists.deconcept.com
> > > http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> > >
> > >
> > >
> > _______________________________________________
> > SWFObject mailing list
> > SWFObject at lists.deconcept.com
> > http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
More information about the Swfobject
mailing list