473,581 Members | 2,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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"><o bject 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 8598
On Thu, 15 May 2008 21:50:58 +0200, Alan Silver
<al*********@no spam.thanx.inva lidwrote:
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"><o bject 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"><o bject 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.l an>, Rik Wasmus
<lu************ @hotmail.comwri tes
>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**********@r egistered.motza rella.org>, Stanimir Stamenkov
<s7****@netscap e.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.
>Alternativel y 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
2270
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 applets, but then uses *browser* *sniffing* Javascript to select between them. I was hoping to find/create a script that
6
2794
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" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>&lt;object&gt; test</title>
4
1253
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 project the control appears blank. Nothing is there. Anyone have a similar problem or know what to do? Cheers,
4
12031
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
2055
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 the PARAM tags inside it, and if I don't have the Javascript in an external file, I'll get the "click here to activate" tooltip and the border around...
3
10715
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. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <OBJECT id="fMovie" runat="server" codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/...
0
1990
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 logging out. This worked perfectly on my end, but the website being loaded in the iframe was not functioning properly because it was being loaded within a...
9
6976
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, (MyClass is object) should always evaluate as true. However, if I have a method with the following signature:
0
7882
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8312
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6564
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5683
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1410
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1145
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.