Can you tell me why my JS ain’t working?
http://prime.programming-designs.com/designs/map/
It’s suppose to move the mark div to the mouse xy when I click in the map.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Open your console, and you’ll see:
It appears that on
line 33in your javascript code,document.Showisundefined.And when you
click, you get this:around
line 52wheremarkisnull:You can move the entire
<script>tag down toward the bottom, placing it just inside the closing</body>tag so that yourdocument.getElementById('mark');will find the element.Like this: