Hi,
I was trawling through my emails and I found the reply for this post I put up ages ago!
Thanks for your replys
I tried it and it works although it's not exactly how I want it to work however you have provided the mechanics of what I need.
Can ask a favour, Could you possibly provide some coments (in real layman terms) as i've never done javascript before?
Also I modifed what you did to make it fit with what I'm doing, but I get a runtime error and asks would I like to debug? WHy does it do this, heres the code:
<style>
.clickablearea{cursor:hand;}
</style>
</head>
<body>
<script>
function mouseMoved()
{
var eobj,thex,they
eobj = window.event
if(eobj.srcElement.className=="clickablearea"

{
thex = eobj.clientX
they = eobj.clientY
document.formname.x.value=thex
document.formname.y.value=they
}
}
document.onclick=mouseMoved
</script>
<div class="clickablearea">Ma701sd, you can store these coords.</div><br><br>
<div>But not these...</div>
<!--- <form name="formname"> --->
<!--- <input name=x><input name=y> --->
<FORM ACTION= "previewXYpage.cfm" METHOD="POST">
Enter your X Co-ordinate <INPUT NAME=X><BR>
Enter your Y Co-ordinate <INPUT NAME=Y><BR>
<INPUT TYPE = "Submit" VALUE ="Enter">
<INPUT TYPE = "Reset" VALUE ="Clear">
</FORM>
</body>
</html>
Once Ive obtained the co-ordinate, I want to pass it to the next page for which I have have the code to manipulate..Is this correct in terms of the logisitics:
<STYLE TYPE="text/css">
#companyname
{
position:absolute;
top: <CFOUTPUT>#X#</cfoutput>px;
left: <cfoutput>#Y#</cfoutput>px;
}
</style>
</head>
<body>
<DIV ID="CompanyName">
the text variable positioned according the X and Y co-ordinates from the previous page
Many thanks and best regards
Samir