By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,696 Members | 2,182 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,696 IT Pros & Developers. It's quick & easy.

Can I wrap an <object> tag inside an <a> tag?

P: n/a
Hello,

I have an <objecttag that is used to display a Flash file. I would
like the whole Flash file to be a link. The obvious thought would be to
do this...

<a href="http://www.url.com"><object blah....>
</object></a>

....but this doesn't work.

Any ideas how to do this? I would rather do it in the HTML if I can. I
don't want to have to modify the Flash file if possible.

Thanks

--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Thu, 15 May 2008 21:50:58 +0200, Alan Silver
<al*********@nospam.thanx.invalidwrote:
Hello,

I have an <objecttag that is used to display a Flash file. I would
like the whole Flash file to be a link. The obvious thought would be to
do this...

<a href="http://www.url.com"><object blah....>
</object></a>

...but this doesn't work.

Any ideas how to do this? I would rather do it in the HTML if I can. I
don't want to have to modify the Flash file if possible.
Hmmm. You can try what happens if you position the ancher over the object
instead of around it (absolute positioning). I doubt it will work 100%
though, it may even depend on UA's implementation of Flash.
--
Rik Wasmus
....spamrun finished
Jun 27 '08 #2

P: n/a
Thu, 15 May 2008 20:50:58 +0100, /Alan Silver/:
I have an <objecttag that is used to display a Flash file. I would
like the whole Flash file to be a link. The obvious thought would be to
do this...

<a href="http://www.url.com"><object blah....>
</object></a>

...but this doesn't work.

Any ideas how to do this? I would rather do it in the HTML if I can. I
don't want to have to modify the Flash file if possible.
You may try:

* Make sure you don't have any elements in the Flash which take
user input (mouse clicks, keyboard stokes);
* Apply 'wmode' [1] parameter with value of 'opaque' or
'transparent' to the object.

Alternatively you may try making the whole Flash object an active
link in the Flash object itself - you have to be able to produce the
Flash object yourself with that one.

[1] http://www.adobe.com/go/tn_12701

--
Stanimir
Jun 27 '08 #3

P: n/a
In article <op***************@metallium.lan>, Rik Wasmus
<lu************@hotmail.comwrites
>Hmmm. You can try what happens if you position the ancher over the
object instead of around it (absolute positioning). I doubt it will
work 100% though, it may even depend on UA's implementation of Flash.
Thanks for the suggestion, but the end code is to be published for
others to add to their sites, and I can just see that this is going to
fail miserably!

Thanks anyway, any other suggestions.
Alan

--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 27 '08 #4

P: n/a
In article <g0**********@registered.motzarella.org>, Stanimir Stamenkov
<s7****@netscape.netwrites
<snip>
>You may try:

* Make sure you don't have any elements in the Flash which take user
input (mouse clicks, keyboard stokes);
* Apply 'wmode' [1] parameter with value of 'opaque' or 'transparent'
to the object.
That was my first attempt (after the plain old <objectinside the <a>
approach), but it didn't work.
>Alternatively you may try making the whole Flash object an active link
in the Flash object itself - you have to be able to produce the Flash
object yourself with that one.
I tried that, but FireFox gave a security warning when I clicked on the
movie. That's why I was hoping to do it in HTML.

Out of interest, I'm puzzled as to why I got a security warning, as I
seem to remember having these sorts of actions inside Flash movies
before, and not getting warnings. Any idea?

Thanks for the reply. Any other suggestions?
Alan

--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.