Google Answers Logo
View Question
 
Q: Accessing <Object> or <EMBED> tag using javascript or vbscript ( No Answer,   0 Comments )
Question  
Subject: Accessing <Object> or <EMBED> tag using javascript or vbscript
Category: Computers > Programming
Asked by: devtw-ga
List Price: $20.00
Posted: 22 Nov 2002 15:54 PST
Expires: 23 Nov 2002 00:29 PST
Question ID: 112843
I am creating an ad serving application using Flash and DHTML and I
need to figure out the x and y coordinates of a flash movie that does
not have a 'id' or ‘name’ attribute defined in the <OBJECT> or <EMBED>
tags.  The application is to be placed on third party web sites so I
do not have access to modify the flash movies on these web sites.  I
only need to make it work in Internet Explorer on the PC.  The
solution I came up with in JavaScript is to access the <EMBED> using
document.embeds[0] and then assign the movie an id using
document.embeds[0].id = “whatevername”.  Only problem is that with
flash the <EMBED> tags are nested in the <OBJECT> tags and this seems
to prevent the browser from being able to see the <EMBED> tags so the
document.embeds[0] does not work.  document.plugins[0] does not work
either.  I also do not know of a way to access the <OBJECT> tags using
a built in array like you can with the <EMBED> tags.   Does anyone
know of a solution to this problem?  Perhaps there is an equivalent
statement to document.embeds[0] in client side VBScript that would
work?   It would work to be able to set the id in either the <OBJECT>
or <EMBED> tags or get the x and y coordinates some other way (which I
don’t think is possible).
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy