I'm trying to display the same image several times using javascript. It can range anywhere from 0 to about 50. I'll also have its' location determined by the user click and each image will timeout after a short period of time. I figure i'll have to create a new object for each image that is added and remove it after it times out, but my problem is I dont know how to tell the HTML code inside the <body> tag to display the same image for each click I make.
Auto 0
Light Poster
Recommended Answers
Jump to PostSomething like this?
<html> <body> <form name="Show"> <input type="text" name="MouseX" value="0" size="4"> X<br> <input type="text" name="MouseY" value="0" size="4"> Y<br> </form> <div id="content" style="width: 100%; height: 100%; position: absolute;"></div> <script> var IE = document.all?true:false if (!IE) document.captureEvents(Event.MOUSEMOVE) // Set-up to use getMouseXY function onMouseMove document.onmousemove = getMouseXY; document.onclick …
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.