PHP interesse |
|
Bovenaan in de <Head>
<script type="text/javascript">
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
rkp_Home_over = newImage("dgn/rkp_Home_over.jpg");
rkp_Nieuws_over = newImage("dgn/rkp_Nieuws_over.jpg");
rkp_Gastenboek_over = newImage("dgn/rkp_Gastenboek_over.jpg");
rkp_Nieuwsbrief_over = newImage("dgn/rkp_Nieuwsbrief_over.jpg");
rkp_Fotos_over = newImage("dgn/rkp_Fotos_over.jpg");
rkp_Films_over = newImage("dgn/rkp_Films_over.jpg");
rkp_Links_over = newImage("dgn/rkp_Links_over.jpg");
rkp_Club_over = newImage("dgn/rkp_Club_over.jpg");
rkp_Forum_over = newImage("dgn/rkp_Forum_over.jpg");
rkp_DVD_over = newImage("dgn/rkp_DVD_over.jpg");
rkp_Contact_over = newImage("dgn/rkp_Contact_over.jpg");
preloadFlag = true;
}
}
</script>
<script type="text/javascript"> function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; function preloadImages() { if (document.images) { rkp_Home_over = newImage("dgn/rkp_Home_over.jpg"); rkp_Nieuws_over = newImage("dgn/rkp_Nieuws_over.jpg"); rkp_Gastenboek_over = newImage("dgn/rkp_Gastenboek_over.jpg"); rkp_Nieuwsbrief_over = newImage("dgn/rkp_Nieuwsbrief_over.jpg"); rkp_Fotos_over = newImage("dgn/rkp_Fotos_over.jpg"); rkp_Films_over = newImage("dgn/rkp_Films_over.jpg"); rkp_Links_over = newImage("dgn/rkp_Links_over.jpg"); rkp_Club_over = newImage("dgn/rkp_Club_over.jpg"); rkp_Forum_over = newImage("dgn/rkp_Forum_over.jpg"); rkp_DVD_over = newImage("dgn/rkp_DVD_over.jpg"); rkp_Contact_over = newImage("dgn/rkp_Contact_over.jpg"); preloadFlag = true; } } </script>
en dan voor de link
<a href="./?nav=hom"
onmouseover="changeImages('rkp_Home', 'dgn/rkp_Home_over.jpg'); return true;"
onmouseout="changeImages('rkp_Home', 'dgn/rkp_Home.jpg'); return true;"
onmousedown="changeImages('rkp_Home', 'dgn/rkp_Home_over.jpg'); return true;"
onmouseup="changeImages('rkp_Home', 'dgn/rkp_Home_over.jpg'); return true;">
<img name="rkp_Home" src="dgn/rkp_Home.jpg" width="107" height="20" border="0" alt=""></a>
<a href="./?nav=hom" onmouseover="changeImages('rkp_Home', 'dgn/rkp_Home_over.jpg'); return true;" onmouseout="changeImages('rkp_Home', 'dgn/rkp_Home.jpg'); return true;" onmousedown="changeImages('rkp_Home', 'dgn/rkp_Home_over.jpg'); return true;" onmouseup="changeImages('rkp_Home', 'dgn/rkp_Home_over.jpg'); return true;"> <img name="rkp_Home" src="dgn/rkp_Home.jpg" width="107" height="20" border="0" alt=""></a>
nemesiskoen edit: zucht, code tags...
|