Click to See Complete Forum and Search --> : Insane question


hungrydino
02-09-2003, 12:15 AM
Say I have 100 visitors come to my page in one day - and I wanna see how many times a certain image is 'mouse-over'd. Can I write some javascript code that will write to a file and tell me how many of the 100 visitors moved their mouse over the image? Is their a better language than javascript that I should try it in.

Please help. 10 free magic tricks to any good answer.

Stephen Dean

pyro
02-09-2003, 12:26 AM
First of all, javascript can't write to a file. What you will want to do is onMouseOver, run a function that runs a counter. It really wouldn't be hard. You will need to make the counter in some server side language such as Perl, or PHP. I personally use PHP, but that's just me. :D

hungrydino
02-09-2003, 01:47 AM
Thanks. How hard is it to write something like that? Is it too much for you to write me up a little example in php? I have a book on php so I may be able to decipher your code but I don't know how to write in it.

And I can send you those magic tricks - just tell me how.

Stephen

Charles
02-09-2003, 08:25 AM
There's something that you might try. I got this idea from something that Mr. Clark has written elsewhere on this board. onmouseover simply preload an image. If you want, you can have that image really be a script, and you can send information to said script via the URL, but any image will do if you have access to the server logs. You will, however have to play around with this. You might have to overwrite the image onmouseout and you might have to set the HTTP expires header to make sure that the browser doesn't just read the image from the cache.

hungrydino
02-09-2003, 02:37 PM
This ones more insane I think. Is there any way I can record where there scroll bar is at in their browser and for how long - like to see what part of the page they are looking at the most?

email me at stephen@magictrickman.com for the magic tricks.

pyro
02-09-2003, 02:49 PM
I don't know of any way to record what part of the page the users are looking at. And what are you talking about ... magic tricks? :confused:

hungrydino
02-11-2003, 01:02 AM
Ok, what if I made a scrollbar within the webpage instead of using the scrollbar in the browser. Then could I record info? And what language could this be done in - maybe using flash?

And I was offering to give a .pdf file of 11 magic tricks to any help so I can send you those if you want.

Stephen

pyro
02-11-2003, 07:02 AM
Originally posted by hungrydino
Ok, what if I made a scrollbar within the webpage instead of using the scrollbar in the browser. Then could I record info?To be honest with you, I don't know of any way to record the current location on the page. :(

cyberade
02-11-2003, 08:54 AM
This is a link for a script to monitor the mouse x,y coordinates.
Will that help?
http://webdeveloper.earthweb.com/webjs/jsutility/item.php/105421