Pop-up op mouse-over

Status
Niet open voor verdere reacties.

FlyingDoc

Gebruiker
Lid geworden
18 okt 2007
Berichten
36
Ik ben nu een al een tijdje bezig met het maken (althans het proberen) van een klein pop-up venster. Dat moet dan verschijnen in dezelfde webpagina, als de button. Het pop-up venstertje moet verschijnen als ik met mijn muis over een afbeelding ga.

Dit heb ik al gemaakt in Flash, maar ik krijg het niet fatsoenlijk werkent in Dreamweaver 8.
Kan iemand me alsjeblieft helpen?

Ik heb dit gevonden, maar de twee afbeeldingen van mij zijn van verschillende grootte en
dat doet ie niet in Dreamweaver.

If you use Macromedia's Dreamweaver to create your pages, you can insert rollover images simply with a few clicks of the mouse. If you prefer to edit your code by hand, you can do it this way:

The mouseover script consists of two parts. The first part of code is placed inside your <HEAD></HEAD> tags, and preloads the images for the rollover effect:

<head>
<SCRIPT language=JavaScript>
<!--
overimage=new Image(50, 20); outimage=new Image(50, 20);
overimage.src="youroverimage.jpg"; outimage.src="youroutimage.jpg"
//-->
</SCRIPT>
</head>

You will need to replace 'youroverimage' and 'youroutimage' with the actual images you wish to have mouseover, and the '50,20' with the sizes in pixels of the images. Next we have the actual code that calls the images inside the <BODY></BODY> tags.

<body>
<a href="yourlinkhere " onmouseover="image.src=overimage.src" onmouseout="image.src=outimage.src">
<img name="image" src="youroutimage.jpg" width=50 height=10 border=0></a>
</body>

On this part above you need to replace 'yourlinkhere' with the url when someone clicks on the image. You can just put a # if you don't wish it to go anywhere. You also need to replace the 'youroutimage.jpg' with the outimage of your rollover.
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan