<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can you change main stage content on mouseover? in Classic Esri Story Maps Questions</title>
    <link>https://community.esri.com/t5/classic-esri-story-maps-questions/can-you-change-main-stage-content-on-mouseover/m-p/161594#M1750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to customize my Story Map Journal so that users can mouseover an image and add a layer to the map in the main stage.&amp;nbsp; However, if you use the graphic interface to insert a link that changes the mainstage content, you get something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a data-storymaps="MJ-ACTION-1470675977260" data-storymaps-type="media"&amp;gt;Main stage action&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will only work for a click, not a mouseover.&amp;nbsp; Is there a way to do a similar thing with javascript so that it can be triggered with a mouseover event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 00:24:05 GMT</pubDate>
    <dc:creator>ScottGilman</dc:creator>
    <dc:date>2016-08-10T00:24:05Z</dc:date>
    <item>
      <title>Can you change main stage content on mouseover?</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/can-you-change-main-stage-content-on-mouseover/m-p/161594#M1750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to customize my Story Map Journal so that users can mouseover an image and add a layer to the map in the main stage.&amp;nbsp; However, if you use the graphic interface to insert a link that changes the mainstage content, you get something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a data-storymaps="MJ-ACTION-1470675977260" data-storymaps-type="media"&amp;gt;Main stage action&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will only work for a click, not a mouseover.&amp;nbsp; Is there a way to do a similar thing with javascript so that it can be triggered with a mouseover event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 00:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/can-you-change-main-stage-content-on-mouseover/m-p/161594#M1750</guid>
      <dc:creator>ScottGilman</dc:creator>
      <dc:date>2016-08-10T00:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can you change main stage content on mouseover?</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/can-you-change-main-stage-content-on-mouseover/m-p/161595#M1751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can certainly do that with some customization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would do is use the builder to create the Main Stage action then keep the &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;data-storymaps="MJ-ACTION-1470675977260" on the element that you want to trigger the action on hover. Then you can just remove the link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;After you catch the hover event using jQuery for example (&lt;A href="https://api.jquery.com/hover/" title="https://api.jquery.com/hover/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://api.jquery.com/hover/&lt;/A&gt;), you will just have to do something like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;$.each(app.data.getContentActions(), function(i, action){
&amp;nbsp; if (action.id == "the id of the element hovered") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; performAction(action);
&amp;nbsp; }
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When navigating away from the element if you want to restore the state of the Main Stage, in some case something as simple as below will works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="pl-smi" style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;topic&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="color: #795da3; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;publish&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="color: #183691; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;story-perform-action-media&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="pl-smi" style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;app&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="color: #0086b3; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="color: #795da3; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;getCurrentSection&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="color: #0086b3; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;media&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;But that won't work if you are re configuring the same map (like showing a different layer), for that you would need to copy most of the logic from &lt;A href="https://github.com/Esri/map-journal-storytelling-template-js/blob/master/src/app/storymaps/tpl/ui/StoryText.js#L223" title="https://github.com/Esri/map-journal-storytelling-template-js/blob/master/src/app/storymaps/tpl/ui/StoryText.js#L223" rel="nofollow noopener noreferrer" target="_blank"&gt;map-journal-storytelling-template-js/StoryText.js at master · Esri/map-journal-storytelling-template-js · GitHub &lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:29:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/can-you-change-main-stage-content-on-mouseover/m-p/161595#M1751</guid>
      <dc:creator>GregoryL_Azou</dc:creator>
      <dc:date>2021-12-11T08:29:12Z</dc:date>
    </item>
  </channel>
</rss>

