Forum Discussion

MathNotermans-9's avatar
MathNotermans-9
Community Member
3 years ago

Classnames to act on in Storyline

A user asked for the source of a project i showed on Review. Basically it shows how you can use classnames to dynamically act on specific images or a group of elements in Storyline.
https://360.articulate.com/review/content/bf35e314-c2a5-42c8-948d-4ab576847e5d/review

Storyline treats the 'accessibility name' as a Classlist. If you add a space inthere somewhere it will be 2 or multiple classes.

And thus you can then act upon that with Javascript to make some nice dynamic selections. As shown above and in the added Storyline.

  • DesireeDauth's avatar
    DesireeDauth
    Community Member

    Hi Math.  I love this concept but we need to update the accessibility field to either provide alt text, or to make the object not visible to accessibility tools. Is it possible to use javascript to achieve this effect and still provide alt text?

    • MathNotermans-9's avatar
      MathNotermans-9
      Community Member

      Yes you can... depends a bit on your alt texts... but as those are strings nevertheless you can use the values you use for alt texts as selectors for Javascript.

      If you have a sample i gladly help.

      Kind regards,
      Math

  • with "Alternative text" you can also use to find a special video in the html DOM tree (if there are more then one on a slide)

    Jürgen