oneon
03-24-2003, 06:40 AM
Hello I am about to create my first web site. After careful consideration I have decided to use navigation that I have seen but don't know what it is called. I believe it is a java script. It is the type that when you put your mouse over a word a picture shows in the middle of the page. So for each word a picture is shown. Can anyone tell me where to start? I have looked at quite a few java sites but can’t seem to find this. Thanks very much.
Nevermore
04-15-2003, 09:21 AM
It sounds like what you need is a variation of a general rollover script. To make it, use this code for the link:
<a onmouseover="changePic('source')";>Link here</a> . Instead of the word source, put the source file for the image.
then, put this in the head section of the HTML:
<script type="text/javascript">
<!--
function changePic(src) {
document.getElementById("middleImage").src=src;
}
//-->
</script> .
Lastly, inside the <img> tag itself for the image that will start in the middle, put this text:
id="middleImage"