Copy link to clipboard
Copied
I have a CFdiv that is binded to a query. I have a word that is has a rollover on it that queries the database. How can I change a varialbe on rollover of the button? Has anyone done this? This is what I am starting with below.
<a href="#" onMouseOver="#session.wordDef# = 'Cohesion'" onClick="document.getElementById('theDiv').style.display='block'" onMouseOut="document.getElementById('theDiv').style.display='none'">TEST</a>
<cfoutput>
Copy link to clipboard
Copied
Hi there.
Just in case...
onmouseover is client-side while session.wordDef is server-side.
If you are trying to change what happens onmouseover, then you'll need to find and change the value of the session variable 'wordDef.' You may want to check for it in application.cfc