Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
<html>
<head>
<title>text-popup</title>
<style type="text/css">
body { overflow: scroll; overflow-x: hidden;}
#popup {
position: absolute;
visibility: hidden;
border: 1px solid #000;
width: 160px;
filter: alpha(opacity=80);
background-color: #eee;
padding: 2px;
color: #000;
font-size: 11px;
font-family: verdana;
}
</style>
</head>
<body>
<script type="text/javascript">
// Egel 070302 ;)
document.write('<div id="popup"></div>');
var popup = document.getElementById('popup');
function followMouse(e) {
popup.style.left = (e ? e.pageX : event.clientX + document.body.scrollLeft - 2) + 7;
popup.style.top = (e ? e.pageY : event.clientY + document.body.scrollTop - 2) + 16;
};
document.onmousemove = followMouse;
function showText(title,text) {
popup.innerHTML = (text ? '<b>' + title + '</b><br>' + text : title);
popup.style.visibility = 'visible';
};
function hideText() {
popup.style.visibility = 'hidden';
};
</script>
<img src="#" onmouseover="showText('Linksboven','Deze foto is linksboven afgebeeld.')" onmouseout="hideText()" width="320" height="240">
<img src="#" onmouseover="showText('Op dit moment zit je achter een computer.<br><br>Of je staat ...')" onmouseout="hideText()" width="120" height="240">
<br>
<img src="#" onmouseover="showText('Portret','Ook wel staand formaat genoemd.')" onmouseout="hideText()" width="120" height="240">
<img src="#" onmouseover="showText('Panorama','Ook wel liggend formaat genoemd.')" onmouseout="hideText()" width="320" height="240">
<br>
<br>
</body>
</html>
Bij www.leejoo.nl onder javascripts > mouse-over > mouse-over-tip
Je kunt ook <img src="" title="tekst bij plaatje"> gebruiken.
Vr.Gr. Egel.
Dat werkt alleen met Ie, title is officiëel html en werkt ook met Fx (en bij div, span, a, p ...).Volgens mij kan het ook nog met alt=""
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.