[thelist] FW: Tracking rollover??
Richard Bennett
richard.bennett at skynet.be
Mon Dec 17 09:37:35 CST 2001
hi Hershel :o)
----- Original Message -----
From: "Hershel Robinson" <hershelsr at yahoo.com>
> > Are JS rollovers trackable?
>
> They are, but it's not simple. You can write a DHTML script to store
> exactly which names were rolled and what order etc. The script can then,
> via hidden layers (or other tricks), send that data via CGI to your server
> to record in a database.
>
> This can be done (I have done similar scripts) but it is not a simple
> matter.
>
> A good place to would probably be here:
> http://sourceforge.net/projects/dynapi/
There is an easy way to do this, and it's cross-browser. Try this:
dataSender=new Image()
function feedDatabase(companyName) {
dataSender.src='http://yourdomainname.com/datalog.pl?company='+escape(compan
yName)
}
So in the rollover code you call:
feedDatabase("microsoft")
and on your server your cgi script logs "microsoft" to the database.
Cheers,
Richard.
More information about the thelist
mailing list