Answer the question
In order to leave comments, you need to log in
Onmouseover not working with Django?
Hello. I copied the html into django, everything seems to be set up, there are pictures, etc. But here's the problem with onmouseover - it doesn't work.
Tried it like this -
onmouseover="this.src={% static 'res/ico/instagram_h.png'%}"
onmouseover="this.src="{% static 'res/ico/instagram_h.png'%}"
onmouseover= "{% static 'res/ico/instagram_h.png'%}"
Answer the question
In order to leave comments, you need to log in
So you look at what the template engine generates and compare with "just an html file", and do not brute force the correct version of the code.
devalone :
<a href="#"><img src="/static/res/ico/instagram.png" onmouseover="this.src=/static/res/ico/instagram_h.png" onmouseout="this.src='/static/res/ico/instagram.png" alt=""></a>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question