Skip to main content
IDOLproff
Known Participant
April 9, 2020
Answered

Show Smart graphic as visited without clicking

  • April 9, 2020
  • 2 replies
  • 813 views

HI Folks,

I'm using a smart graphic as a button.  The stuent will click on the button to open a URL.  I have the states already created. 

My problem is that I want to show it as visited without the student having to move the mouse over the graphic. Is there a way to do that?  Or should I be using a differnt object for this purpose?

 

Thanks,

Carl

    This topic has been closed for replies.
    Correct answer Lilybiri

    You cannot attach a file, sorry.

    You can insert screenshots or other images using the toolbar in the Browser version of the forum. 

     

    Just explain: why do you think that hovering is necessary to show the Visited state of an interactive object? It appears after you have clicked the button automatically. And you told that the button was clicked to show an URL.  When do you want the Visited state to appear?  I don't understand why a JS solution is suggested (can be done as easy with 'Change State' action) which is probably overkill since normally there is no action needed whatsoever to show the Visited state. That was necessary in older versions, but not in CP2019. 

    2 replies

    Stagprime2687219
    Legend
    April 9, 2020

    I have a JavaScript answer to this if you're interested.

     

    You could select Execute JavaScript as an onEnter action to your slide and insert this code in the box.

    cp.changeState("buttonName","stateName");
    You will need to change buttonName to match the name assigned to your button and change  stateName to the name you have given to the state - such as  Visited. These names are case sensitive.Keep the quotes.

    For example, if my button is named  webLinkbtn  and my visited state was named Visited, I would write it this way...

    cp.changeState("webLinkbtn","Visited");

     

    It seems like there could be some other particulars here that need to be addressed but I will leave it at this for now.

    Hopefully this was at least some food for thought.

    Lilybiri
    Legend
    April 9, 2020

    Confusing question... maybe the termiology. I suppose you talk about a smart shape as a button? Not so important because the behavior of all the button type (6 at this moment) is exactly the same for states. The InBuilt states, which include the Visited state, appear in a specific situation. The Rollover appears when hovering over the button, the Down when pressing the button and the Vistied state AFTER having pressed the button.

    What do you mean by 'I want to show it as visited without the student having to move the mouse over the" graphic"? When hovering it is the Rollover state which appears. When you have clicked the button the Visited state appears, replacing the Normal state. You can force the Visited state by an action triggered by another event. You can preserve the Visited state when returning to the slide by checking the option 'Retain state'.

     

     

    IDOLproff
    IDOLproffAuthor
    Known Participant
    April 9, 2020

    HI Lily,

     

    I went back to my original post and added the file that contains the slide that I'm referring to.  Hope it makes it more clear.

    Lilybiri
    LilybiriCorrect answer
    Legend
    April 9, 2020

    You cannot attach a file, sorry.

    You can insert screenshots or other images using the toolbar in the Browser version of the forum. 

     

    Just explain: why do you think that hovering is necessary to show the Visited state of an interactive object? It appears after you have clicked the button automatically. And you told that the button was clicked to show an URL.  When do you want the Visited state to appear?  I don't understand why a JS solution is suggested (can be done as easy with 'Change State' action) which is probably overkill since normally there is no action needed whatsoever to show the Visited state. That was necessary in older versions, but not in CP2019.