<script type="text/javascript"> window.onload = init; function init() { if (window.Event) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = getXY; } function getXY(e) { x = (window.Event) ? e.pageX : event.clientX; y = (window.Event) ? e.pageY : event.clientY; } function caption(txt, tag) { document.getElementById('cap').innerHTML=txt; var c = 25; if(document.documentElement.scrollTop>6 && !window.Event) { c = document.documentElement.scrollTop + 25; } document.getElementById('cap').style.left=x-10+'px'; document.getElementById('cap').style.top=y+c+'px'; document.getElementById('cap').style.visibility='visible'; } function caption_out() { document.getElementById('cap').style.visibility='hidden'; } </script>
A konkretnie o :
character "&" is the first character of a delimiter but occurred as data.if(document.documentElement.scrollTop>6 & !window.Event)
Nie wiem jak się tego pozbyć, a głupio mieć czerwone światło od w3.org. Skrypt jest od podpowiedzi pokazujących się po najechaniu myszką...