...

View Full Version : onmouseover



vmcuan
06-11-2004, 06:50 AM
Hello,
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.

vmcuan

glenngv
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?

vmcuan
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

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


<script type="text/javascript">
function showHide(imgName, isVisible){
document.images[imgName].style.display=(isVisible)?"inline":"none";
}
</scrippt>
<img src="image1.jpg" onmouseover="showHide('myimage',true)" onmouseout="showHide('myimage',false)" />
<img name="myimage" src="image2.jpg" style="display:none" />

vmcuan
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

glenngv
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

</scrippt>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum