MouseOver using Javascript in Lectora
May 2, 2014 12:00 AM
How to write a mouseover event/function on an image in Lectora?
Example:
The html name for the image I inserted is image92034.
I added an action which runs the following javascript:
function showAlert()
{
alert("home");
}
image92034.onOver = showAlert;[/CODE]
The above does not work for me. Any ideas how to implement this?[CODE]function showAlert()
{
alert("home");
}
image92034.onOver = showAlert;[/CODE]
The above does not work for me. Any ideas how to implement this?
Discussion (1)
If you wanted to use the "run javascript" action, you should not define a function but just put in the javascript action you want to run.
Lectora will turn it into a function, i.e.
On: Mouse enter
Action: Run JavaScript
Code: alert("alert");
Tim
Discussions have been disabled for this post