I have a img element. When the user hovers over it, I want to create a new div near the mouse with the same image inside the div – something like a preview. I do not want to use a existing plug-in. Is there a simple way to achieve it?
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.
Check this Blog post (2nd example)
Image Preview using jQuery
Working example
Then just check out the CSS and an JS he used in that example (hint: sourcecode).
Can’t get much easier then this