Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript/HTML confusuion

Status
Not open for further replies.

Tom Moody

Technical User
Mar 1, 2017
1
US
Hi. Creating multiple image elements with unique IDs and appending them to document with a mouse over event listener.
The elements are displayed on the canvas and visible in INNERHTML but two problems I have not been able to resolve:

1. Cannot use the document get() to retrieve the element which I will use to display individual data.
2. In the mouse over event, the image selected is the last image loaded regardless on which image is selected.

Thanks for any assistance offered.

Tom...
 
 http://files.engineering.com/getfile.aspx?folder=9d8599ae-8a08-4dc5-92d0-92352d9f1262&file=LHCjavascript.docx
document.get() is what??


and where is the HTML that goes with the js code, in a text file not a wordprocessor document preferably.


This;

the image selected is the last image loaded regardless on which image is selected.

Would probably be caused by not breaking out of a loop at the correct point.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top