Hello guys! I got a request from a client to be able to replace the text after I’ve finished their application.They don’t have any knowledge of javascript/html. Right now, everything is loaded within Hype and when I call for a text I do it from one scene to another. This is how the code looks right now for 1 of the 80 text loading javascripts:
var site = 2;
hypeDocument.getElementById('textHolder').innerHTML = hypeDocument.getElementById('Text' + site).innerHTML;
This calls for the div id from a scene and the div’s id is Text2 (obviously).
So, anyone got an idea on how I can call a div’s ID from an external html, or even make the javascript external?
I tried to copy paste the hype code and save it as an external javascript but in Hype it won’t show up on add click event javascripts since the function is not created within Hype.
Any help is appreciated!