View Full Version : Ajax with mouseover and mouseout

08-21-2007, 01:31 AM
1) Script Title: AJAX

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem: I am using AJAX to show sample ads on a classified site. I would like a mouseover event to load a small html file into a <div>. I then want the file to revert back to the original file. I have the mouseover working, I need th mouseout code. Here is what I have:

<a href="#" onmouseover="ajaxpage('content/people.html', 'people');">People</a>

How do I ad a mouseout event to restore the people.html to people1.html?

08-21-2007, 04:40 AM
Solved It!!!

<a href="#" onmouseover="ajaxpage('content/people.html', 'people');" onmouseout="ajaxpage('content/people1.html', 'people');">People</a>