473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
4 8584
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Andrew Thompson | last post by:
This is intended to fix a long standing (cough)Java(cough) problem with which I'm sure some of you will be familiar. Sun recommends using the <OBJECT>/<EMBED> elements to cater for Java...
6
by: Christopher Benson-Manica | last post by:
(I posted this as a reply to my thread about iframes, but I think it may get mostly ignored there.) http://ataru.gomen.org/files/test.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
4
by: Sailor Foley | last post by:
Hey all, from the microsoft web site it is possible to place a control inside the object tag. They give a demo project from which to demonstrate this. The only problem is when i create my own...
4
by: colson | last post by:
Hi, If I have a class A, and a List<List<object>> containing instances of A. How do I explicitly cast List<List<object>> as List<List<A>>?
1
by: Steve Sobol | last post by:
http://gallery.stevesobol.com/activex-plain.html works in Firefox 1.5 and Opera 9 but not in IE 6, and I can't figure out why. The IE developer toolbar's DOM inspector shows the OBJECT tag and...
3
by: Brad | last post by:
I have several movies being presented to the web on a single page and each one is dependant on a link selected. On the .aspx page I have the following code for a single movie. ...
0
by: diver | last post by:
I was using an <iframe> to load a website within my .aspx page. When the user "logged out", I called a javascript break out function to breakout of the frame and load the appropriate page when...
9
by: Stephan Steiner | last post by:
Hi I seem to have a bit of trouble understanding one bit of how generics work: In C#, every class automatically derives from object, and inherits a bunch of properties (i.e. ToString()). Thus,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.