<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title>Javascript Stuff</title>
<script type='text/javascript'>
[COLOR=red]var mun = 0[/color]
if(navigator.appName.toLowerCase().indexOf("microsoft")!=-1) document.onclick = function () {popMessage(event)};
function popMessage(e)
{
[COLOR=red]var divs = new Array('first click','second click','third click');[/color]
xPos=0;yPos=0;
xPos = (e.pageX) ? e.pageX : e.clientX+document.body.scrollLeft;
yPos = (e.pageY) ? e.pageY : e.clientY+document.body.scrollTop;
dBody = document.getElementsByTagName("BODY")[0];
nDiv = document.createElement("DIV");
nDiv.appendChild(document.createTextNode(divs[mun]));
nDiv.style.position = "absolute";
nDiv.style.left = xPos+"px";
nDiv.style.top = yPos+"px";
nDiv.style.zIndex = 99;
dBody.appendChild(nDiv);
[COLOR=red]if (mun <2){
mun++}
else mun=0
[/color]
}
</script>
<body onClick="popMessage(event); ">
<div>Click on me somewhere</div>
</body>
</html>
Glen
[URL unfurl="true"]http://lantzvillecomputers.ca[/URL]