Buttons staying active after clicked


#1

Hi everyone,

I am currently having the following problem:

When the user clicks a button, a javascript function is triggered, essentially opening an external modal box. When the modal box is closed, the button is still in the ‘hover state’. Is there any way to fix this issue?

Thanks in advance!


(Oliver) #2

Can you upload your file?


#3

Hi Oliver,

Here is the file.

Thanks

Test Document.hype.zip (26.7 KB)


#4

Hi,

Does anyone have a possible solution to this issue I am facing. Would be much appreciated.

Thanks in advance


#5

@jpdk

I am not seeing the modal box in your demo in preview mode.


(Jonathan Deutsch) #6

I get this error in the web console when clicking on the buttons:

Error in IntroductionElearn: Error: SyntaxError: DOM Exception 12

#7

Hi,

The problem is that the modal box is an external javascript function that
is being called, so it is hard to reproduce exactly by just uploading the
Hype file.

Is there any code snippet that I can add to return the button to the
’normal’ state?

Thanks for your help!


(Jonathan Deutsch) #8

You could probably make a timeline that returns it to a normal state and then invoke that timeline. Due to button precedence rules you may also need to make the hover state a triggered from a timeline with mouse over/out as actions.