Solved

JQuery MouseOver an image tag effect.

Posted on 2010-11-27
4
605 Views
Last Modified: 2012-06-27

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');
0
Comment
Question by:7of9121098
  • 2
4 Comments
 
LVL 3

Expert Comment

by:roynaufal
ID: 34225026
can you please explain a  bit more,didn't fully understand what you aim to do
0
 

Author Comment

by:7of9121098
ID: 34225985

 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
 
LVL 3

Accepted Solution

by:
roynaufal earned 25 total points
ID: 34226495
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
 
LVL 6

Assisted Solution

by:blueghozt
blueghozt earned 25 total points
ID: 34234051
Hi show us the code for what happens on a normal mouseover event
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Handling exception in javascript ajax call 7 67
ASP equivalent to Windows findstr 3 71
Unable to resolve XML http request 4 76
json with xmlhttprequesr 2 42
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now