Lid |
|
Hey,
Heb snel even een klein voorbeeldje gemaakt voor jou.
JavaScript:
<script language="Javascript">
function ShowPopup(id,Source) {
if (Source=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (Source=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
</script>
<script language="Javascript"> function ShowPopup(id,Source) { if (Source=="1"){ if (document.layers) document.layers[''+id+''].visibility = "show" else if (document.all) document.all[''+id+''].style.visibility = "visible" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible" } else if (Source=="0"){ if (document.layers) document.layers[''+id+''].visibility = "hide" else if (document.all) document.all[''+id+''].style.visibility = "hidden" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden" } } </script>
Style / CSS:
<style type="text/css">
#Style {
position:absolute;
visibility:hidden;
border:solid 1px #CCC;
padding:5px;
}
</style>
<style type="text/css"> #Style { position:absolute; visibility:hidden; border:solid 1px #CCC; padding:5px; } </style>
HTML: (link/knop/popup div)
<a href="#" onMouseOver="ShowPopup('Style',1)" onMouseOut="ShowPopup('Style',0)">Klik hier</a>
<div id="Style"><p>Hier komt dan wat extra informatie of dergelijks.</p></div>
<a href="#" onMouseOver="ShowPopup('Style',1)" onMouseOut="ShowPopup('Style',0)">Klik hier </a> <div id="Style"><p>Hier komt dan wat extra informatie of dergelijks. </p></div>
Hopelijk heb je hier iets aan. |