
passing variables from VBS to JS
Hi ppl,
xPos and yPos correspond to the current x,y positions of the mouse (captured using window.event.x in VBS).. this works.. but what i want to do now is to pass these two variables to a javascript, how would i do this ?
here's some code:
<script type="" language="JavaScript">
function doStyles(xPos,yPos){
alert(xPos + "," + yPos)
}
</script>
<script type="" language="VBS">
sub getMouseLocation()
dim xPos 'x position of mouse
dim yPos 'y position of mouse
xPos = window.event.x
yPos = window.event.y
msgbox xpos & "," & ypos
end sub 'mouse location
</script>
thx
s.k.