View Full Version : onmouseover

06-11-2004, 06:50 AM
I was wondering if anyone can walk me through the effect I'm trying to use.

I'm using frontpage 2003 I have two jpgs trying to building a website with photography and I want to do a onmouseover open and onmouseout close. I've seen a lot of the java scripting on the net but can't get any of it to work for me.
I'm not sure how, where or what to put on the code page to be alble to get the effect I'm looking for.

Any help would greatly be appreciated.


06-11-2004, 07:02 AM
onmouseover open what and onmouseout close what?
Can you give more details of the effect you're looking for?

06-11-2004, 07:15 AM
I have two JPEGS (photographs). I have on on a frontpage "design page" and I would like to opne another JPEG onmouseover. Then After I've seen the photo, I'd like to have the photo go away onmouseout

06-11-2004, 09:15 AM
Like this:

<script type="text/javascript">
function showHide(imgName, isVisible){
<img src="image1.jpg" onmouseover="showHide('myimage',true)" onmouseout="showHide('myimage',false)" />
<img name="myimage" src="image2.jpg" style="display:none" />

06-11-2004, 07:15 PM
Ok, I've put the code in the head of the script.
I've also replaced the words "image1.jpg" and image2.jpg with my jpg's.
but all I get in the preview mode, is a blank screen.

what am I doing wrong

06-14-2004, 04:26 AM
It is better that you run the page in the browser rather than in the Preview mode of Frontpage.

Can you post your code? I had a typo in my post