Dit is mijn Javascript Code tussen mijn <head></head>:
<script language="javascript">
function toonFout(foutboodschap) {
if (foutboodschap != "") {
document.imgVerzenden.src= '../pic/fout.gif';
}
}
function testVoornaam() {
if (document.form.Voornaam.value == "") {
document.imgVoornaam.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgVoornaam.src= '../pic/goed.gif';
return "";
}
function testFamilienaam() {
if (document.form.Familienaam.value == "") {
document.imgFamilienaam.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgFamilienaam.src= '../pic/goed.gif';
return "";
}
function testAdres() {
if (document.form.Adres.value == "") {
document.imgAdres.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgAdres.src= '../pic/goed.gif';
return "";
}
function testPostcode() {
if (document.form.Postcode.value == "") {
document.imgPostcode.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgPostcode.src= '../pic/goed.gif';
return "";
}
function testGemeente() {
if (document.form.Gemeente.value == "") {
document.imgGemeente.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgGemeente.src= '../pic/goed.gif';
return "";
}
function testTelefoon() {
if (document.form.Telefoon.value == "") {
document.imgTelefoon.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgTelefoon.src= '../pic/goed.gif';
return "";
}
function testGsm() {
if (document.form.Gsm.value == "") {
document.imgGsm.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgGsm.src= '../pic/goed.gif';
return "";
}
function testEmail() {
if (document.form.Email.value.indexOf("@") == "-1") {
document.imgEmail.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgEmail.src= '../pic/goed.gif';
return "";
}
function testInlichtingen() {
if (document.form.Inlichtingen.value == "") {
document.imgInlichtingen=" '../pic/fout.gif';
return " - fout";
}
else
document.imgInlichtingen.src= '../pic/goed.gif';
return "";
}
function testAlles() {
var fout = testVoornaam() + testFamilienaam() + testAdres() + testPostcode() + testGemeente() + testTelefoon() + testGsm() + testEmail() + testInlichtingen();
if (fout == "") {
document.imgVerzenden.src= '../pic/goed.gif';
return true;
}
else {
document.imgVerzenden.src= '../pic/fout.gif';
return false;
}
}
function testCheck() {
document.imgVerzenden.src= '../pic/blanco.gif';
}
</script>
Dit is mijn Javascript Code in mijn <body></body>
<table>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Voornaam:</font></td><td><input type="text" name="Voornaam" id="Voornaam" onBlur="toonFout(testVoornaam()); testcheck;"><img src="../pic/blanco.gif" name="imgVoornaam"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Familienaam:</font></td><td><input type="text" name="Familienaam" id="Familienaam" onBlur="toonFout(testFamilienaam()); testcheck;"><img src="../pic/blanco.gif" name="imgFamilienaam"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Adres:</font></td><td><input type="text" name="Adres" id="Adres" onBlur="toonFout(testAdres()); testcheck;"> <img src="../pic/blanco.gif" name="imgAdres"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Postcode:</font></td><td><input type="text" name="Postcode" id="Postcode" onBlur="toonFout(testPostcode()); testcheck;"><img src="../pic/blanco.gif" name="imgPostcode"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Gemeente:</font></td><td><input type="text" name="Gemeente" id="Gemeente" onBlur="toonFout(testGemeente()); testcheck;"><img src="../pic/blanco.gif" name="imgGemeente"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Telefoon:</font></td><td><input type="text" name="Telefoon" id="Telefoon" onBlur="toonFout(testTelefoon()); testcheck;"><img src="../pic/blanco.gif" name="imgTelefoon"></td></tr>
<tr><td><font face="arial" size="-1"><font face="arial" size="-1">  Gsm:</font></td><td><input type="text" name="Gsm" id="Gsm" onBlur="toonFout(testGsm()); testcheck;"><img src="../pic/blanco.gif" name="imgGsm"></td></tr>
<tr><td><font face="arial" size="-1"><font face="arial" size="-1">  E-mail:</font></td><td><input type="text" name="Email" id="Email" onBlur="toonFout(testEmail()); testcheck;"><img src="../pic/blanco.gif" name="imgEmail"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Ik zou graag inlichtingen willen verkrijgen over...</td><td><textarea name="Inlichtingen" cols="25" rows="6" id="Inlichtingen" onBlur="toonFout(testInlichtingen()); testcheck;"></textarea> <img src="../pic/blanco.gif" name="imgInlichtingen"></td></tr>
<tr><td><font face="arial" size="-1"><input type="submit" value="Verzend inlichtingen">   <input type="reset" value="Wis inlichtingen"></td></tr>
</table>
Dit is mijn website
http://www.warmtepompenhermans.be/html
(menu => inlichtingen, dat is inlichtingen.html)
Alvast bedankt voor het zoeken naar een oplossing.
Mvg,
Hermans Marc
<script language="javascript">
function toonFout(foutboodschap) {
if (foutboodschap != "") {
document.imgVerzenden.src= '../pic/fout.gif';
}
}
function testVoornaam() {
if (document.form.Voornaam.value == "") {
document.imgVoornaam.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgVoornaam.src= '../pic/goed.gif';
return "";
}
function testFamilienaam() {
if (document.form.Familienaam.value == "") {
document.imgFamilienaam.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgFamilienaam.src= '../pic/goed.gif';
return "";
}
function testAdres() {
if (document.form.Adres.value == "") {
document.imgAdres.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgAdres.src= '../pic/goed.gif';
return "";
}
function testPostcode() {
if (document.form.Postcode.value == "") {
document.imgPostcode.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgPostcode.src= '../pic/goed.gif';
return "";
}
function testGemeente() {
if (document.form.Gemeente.value == "") {
document.imgGemeente.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgGemeente.src= '../pic/goed.gif';
return "";
}
function testTelefoon() {
if (document.form.Telefoon.value == "") {
document.imgTelefoon.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgTelefoon.src= '../pic/goed.gif';
return "";
}
function testGsm() {
if (document.form.Gsm.value == "") {
document.imgGsm.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgGsm.src= '../pic/goed.gif';
return "";
}
function testEmail() {
if (document.form.Email.value.indexOf("@") == "-1") {
document.imgEmail.src= '../pic/fout.gif';
return " - fout";
}
else
document.imgEmail.src= '../pic/goed.gif';
return "";
}
function testInlichtingen() {
if (document.form.Inlichtingen.value == "") {
document.imgInlichtingen=" '../pic/fout.gif';
return " - fout";
}
else
document.imgInlichtingen.src= '../pic/goed.gif';
return "";
}
function testAlles() {
var fout = testVoornaam() + testFamilienaam() + testAdres() + testPostcode() + testGemeente() + testTelefoon() + testGsm() + testEmail() + testInlichtingen();
if (fout == "") {
document.imgVerzenden.src= '../pic/goed.gif';
return true;
}
else {
document.imgVerzenden.src= '../pic/fout.gif';
return false;
}
}
function testCheck() {
document.imgVerzenden.src= '../pic/blanco.gif';
}
</script>
Dit is mijn Javascript Code in mijn <body></body>
<table>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Voornaam:</font></td><td><input type="text" name="Voornaam" id="Voornaam" onBlur="toonFout(testVoornaam()); testcheck;"><img src="../pic/blanco.gif" name="imgVoornaam"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Familienaam:</font></td><td><input type="text" name="Familienaam" id="Familienaam" onBlur="toonFout(testFamilienaam()); testcheck;"><img src="../pic/blanco.gif" name="imgFamilienaam"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Adres:</font></td><td><input type="text" name="Adres" id="Adres" onBlur="toonFout(testAdres()); testcheck;"> <img src="../pic/blanco.gif" name="imgAdres"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Postcode:</font></td><td><input type="text" name="Postcode" id="Postcode" onBlur="toonFout(testPostcode()); testcheck;"><img src="../pic/blanco.gif" name="imgPostcode"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Gemeente:</font></td><td><input type="text" name="Gemeente" id="Gemeente" onBlur="toonFout(testGemeente()); testcheck;"><img src="../pic/blanco.gif" name="imgGemeente"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Telefoon:</font></td><td><input type="text" name="Telefoon" id="Telefoon" onBlur="toonFout(testTelefoon()); testcheck;"><img src="../pic/blanco.gif" name="imgTelefoon"></td></tr>
<tr><td><font face="arial" size="-1"><font face="arial" size="-1">  Gsm:</font></td><td><input type="text" name="Gsm" id="Gsm" onBlur="toonFout(testGsm()); testcheck;"><img src="../pic/blanco.gif" name="imgGsm"></td></tr>
<tr><td><font face="arial" size="-1"><font face="arial" size="-1">  E-mail:</font></td><td><input type="text" name="Email" id="Email" onBlur="toonFout(testEmail()); testcheck;"><img src="../pic/blanco.gif" name="imgEmail"></td></tr>
<tr><td><font face="arial" size="-1"><font color="green">*</font><font face="arial" size="-1">Ik zou graag inlichtingen willen verkrijgen over...</td><td><textarea name="Inlichtingen" cols="25" rows="6" id="Inlichtingen" onBlur="toonFout(testInlichtingen()); testcheck;"></textarea> <img src="../pic/blanco.gif" name="imgInlichtingen"></td></tr>
<tr><td><font face="arial" size="-1"><input type="submit" value="Verzend inlichtingen">   <input type="reset" value="Wis inlichtingen"></td></tr>
</table>
Dit is mijn website
http://www.warmtepompenhermans.be/html
(menu => inlichtingen, dat is inlichtingen.html)
Alvast bedankt voor het zoeken naar een oplossing.
Mvg,
Hermans Marc