do you know any tutorial or script that shows a picture when mousemove over a html text?
Share
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.
A basic example using jQuery would be something like this:
CSS
HTML
jQuery
It’s hard to give a better answer without more specifics in the question.
The basic idea is that the text is contained in a
span, which has a class calledpictureTrigger. Could be named anything, though.A hover event (which is actually shorthand for two events,
mouseenterandmouseleave) is added to all elements with thepictureTriggerclass.The two functions represent the
mouseenterandmouseleaveevents respectively. The event handler functions find theimgwith the IDmyImage, and show/hide it.Relevant jQuery docs:
.show()– http://api.jquery.com/show/.hide()– http://api.jquery.com/hide/.hover()– http://api.jquery.com/hover/