Javascript mouseover

Status
Niet open voor verdere reacties.

BrEeZeR

Inventaris
Lid geworden
27 apr 2001
Berichten
12.877
Hallo,

Ik heb hier iemand die heeft een probleem met een javascript. :

PHP:
<html>

<head>
<title>test link</title>
</head>

<body link="black" vlink="black">
<style>a:hover {color=red}</style>

<table border="1">
<tr>
</table>

<font face="arial" size="2" color="black">

<table border="1" cellspacing="0" cellpadding="2" bordercolor="black">
<tr><td><img src="http://www.idi.org.il/Images/Countries/BACKUP/nl.gif" name="icon"></tr></td>
</table>

<Br><Br>

<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/nl.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/nl.gif'" ONMOUSEOVER="document.arrow.src='http://www.wangruoshui.net/bbc-cn_files/BACK.GIF'">Nederland</a><br>
<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/de.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/de.gif'" ONMOUSEOVER="document.arrow.src='http://www.wangruoshui.net/bbc-cn_files/BACK.GIF'">Duitsland</a><br>
<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/it.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/it.gif'" ONMOUSEOVER="document.arrow.src='http://www.wangruoshui.net/bbc-cn_files/BACK.GIF'">Italië</a><br>
<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/be.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/be.gif'" ONMOUSEOVER="document.arrow.src='http://www.wangruoshui.net/bbc-cn_files/BACK.GIF'">België</a><br>

</font>
</body>

</html>

Hij wil graag 2x een mouseover zodat bij een link een 2 plaatjes tegelijk veranderen.

Doet hij iets fout? Ik zie het zelf niet iig.. ben nooit bezig met javascript enzo.

Alvast bedankt, ook namens hem.
 
Dat heet een disjointed rollover. Hoe dat in javascript moet zou ik ook niet weten, maar als deze persoon toevallig Dreamweaver heeft, zou hij in het menu Help eens bij Lessons naar "Creating a disjointed rollover" kunnen kijken.

Guus.
 
Hoi,

Je kan in een mouseover wel meerdere actions zetten, gescheiden door een ;

Ik heb de code iets aan gepast, zodat het beter zichtbaar is.

PHP:
<html>

<head>
<title>test link</title>
</head>

<body link="black" vlink="black">
<style>a:hover {color=red}</style>

<table border="1">
<tr>
</table>

<font face="arial" size="2" color="black">

<table border="1" cellspacing="0" cellpadding="2" bordercolor="black">
<tr>
<td><img src="http://www.idi.org.il/Images/Countries/BACKUP/nl.gif" name="icon"></td>
<td><img src="http://www.idi.org.il/Images/Countries/BACKUP/nl.gif" name="plaatje"></td>
</tr>
</table>

<Br><Br>


<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/nl.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/nl.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/nl.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/nl.gif'">Nederland</a><br>
<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/de.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/de.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/de.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/de.gif'">Duitsland</a><br>
<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/it.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/it.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/it.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/it.gif'">Italië</a><br>
<img src="http://www.kelloggllc.com/images/spacer.jpg" width="11" height="8" name="arrow"><a href="#" ONMOUSEOUT="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/be.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/be.gif'" ONMOUSEOVER="document.icon.src='http://www.idi.org.il/Images/Countries/BACKUP/be.gif';document.plaatje.src='http://www.idi.org.il/Images/Countries/BACKUP/be.gif'">België</a><br>

</font>
</body>

</html>

:)
 
hey, ben nieuw hier maar heb al direct een vraag ik moet voor mijn leerkracht een oefening maken die luidt:

"De pagina bevat een hyperlink naar de website van de VDAB" (=> dit is gelukt)
"Als je de 5de keer met je muisaanwijzer over de hyperlink beweegt verschijnt er een dialoogvenster met de tekst " je bent 5 keer over de hyperlink bewogen." (=> dit lukt mij niet)


Dit is mijn voorlopige code :

<html>
<head>
<title>events_nabootsen</title>
</head>
<body>
<a href="http://www.vdab.be" onMouseOver="alert('Je bent 5 keer over de hyperlink geweest.')">VDAB</a>
</body>
</html>


Wie kan mij helpen ?

alvast bedankt
 
welkom

@jayomi,

Dit is een topic van 2004.
Maak voor jouw probleem even een eigen vraag aan.
Deze is nu gesloten.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan