Click to See Complete Forum and Search --> : At my wits end with this mouseover image


cantes903
10-06-2005, 01:45 AM
I have been trying to create a mouseover where you put the pointer on a picture and it opens a mpeg. I have been looking and looking and trying many different tutorials and script generators. I just can't get this to work.

http://www.geocities.com/cantes903/test2.html

When you point at the picture all I get is a flickering but no mpeg. I also want to know how to preload the mpeg so that it open automatically when someone points at the picture. The final product is going to be just a part of the mpeg so I need the quick load for the scare factor.

Any help with this would be grreatly appreciated!!

Lerura
10-07-2005, 12:38 PM
you cannot change image.src to a non-graphic file
and mpegs must be within in <embed> or <object>

cantes903
10-07-2005, 12:40 PM
ok thanks- Can anyone tell me how to do that?

saulss
10-07-2005, 01:26 PM
you could try changing the inner html of a div tag, replacing
<img src... >
to
<embed or whatever is used to display mpg files >

using some function like this:
function changeIt()
{
document.getElementById('nameOfDivContainingImage').innerHTML="<embed..."
}
:)

cantes903
10-07-2005, 08:18 PM
thanks for replying!