Skip to main content
Inspiring
March 9, 2013
Question

Make rollover captions and hotspots click instead

  • March 9, 2013
  • 1 reply
  • 1469 views

I need to make the rollover functionality a click instead. I want my course to be usable in a mobile browser, so the user experience would just be better if they clicked on the areas to reveal the caption instead of having it be rollover. How do I do that?

    This topic has been closed for replies.

    1 reply

    SavvyEdAuthor
    Inspiring
    March 9, 2013
    Lilybiri
    Legend
    March 10, 2013

    Hi again,

    The way described in the blog post is OK if you use the buttons only to show, not to hide the object (image, text) which is not really a 'total' alternative to rollovers that will show/hide the object. Because there are several buttons on the slide, clicking another button will hide previous objects.

    Could you explain which situations you want to cover: multiple rollovers on one slide, rollovers on different slides....

    If you want a real toggle, you need indeed a user variable or more (if you have different 'rollover' alternatives on a slide) to track the visibility. And in that case I would also recommend an intitializing action on entering each slide that will hide everything, if you want to make it possible for the user to return to the slide. A toggle will need a conditional advanced action, not a standard action as in the blog. Something like this (user variable = v_visib initially set to 0)

        IF v_visib = 0

              Assign v_visib with 1

             Hide Grp...                            if you have multiple objects that can be made visible, group them and hide first that group before showing object

             Show Object...

        ELSE

              Assign v_visib with 0

              Hide Grp

    Here you see another advantage of CP6: hiding a group of objects can save you a lot of statements http://www.youtube.com/watch?v=Sy09xPoP69A

    This conditional action has to be triggered by the click box, button or shape button.

         

    If you need rollovers all over your file, I would certainly recommend to reuse the visibility variables (can be reused on each slide). Have other timesaving scenarios, all depends on the situation. There is not a 'one-click' solution to replace a rollover by a click-version, too bad. It would be nice if this was provided. A rollover slidelet has a click event (less known) that can trigger an action as well.

    Lilybiri

    SavvyEdAuthor
    Inspiring
    March 10, 2013

    Thank you, Lilybiri. I actually watched your webinar last night and used Advanced Actions and two images to replicate a toggle. I have a lot of these interactions in my module, so it's a bit cumbersome to have to create a new action for each one. I do have slides that have multiple click-and-reveals on one slide, and there are multiple slides like that in my module. I'm not very good yet at user variables or initializing actions. I'll read your post a few more times , watch the youtube clip, and see what I can figure out. Until then, using two smartshapes and hiding/showing them on click with the caption is working well.