JQuery MouseOver an image tag effect.


I have img html tag and I want to simulate a user moving the mouse over the image when the page loads.

I tried this but it won't work, I'm I missing something?

 $('img_id').trigger('mouseover');
7of9121098Asked:
Who is Participating?
 
roynaufalConnect With a Mentor Commented:
ah ok, i see
well you can use this then:
$(document).ready(function() {
  // so you put the function yo want here, the one that is called when the onmouseover event happens on the image
});
 

Open in new window

0
 
roynaufalCommented:
can you please explain a  bit more,didn't fully understand what you aim to do
0
 
7of9121098Author Commented:

 I have a couple of images on the form and when I move the mouse cursor over an image it opens up.
Therefore, when the page loads I want one of the images to open up. This is why I want to simulate a mouse over-event over the image.
0
 
blueghoztConnect With a Mentor Commented:
Hi show us the code for what happens on a normal mouseover event
0
All Courses

From novice to tech pro — start learning today.