I have what may be a super simple problem but cannot break through it. I want to create a “menu” where, when clicking on an icon, a background element expands and the menu contents appear. I’ve had no trouble building the javascripts for the other things I’m doing on the site, but this one eludes me! Here is what I have. But when I click the icon nothing happens or changes. Anything obvious jump out to anyone?
var eleID = hypeDocument.getElementById(‘rightband’);
hypeDocument.setElementProperty(‘eleID’, ‘width’, 300, 1.0, ‘easeinout’);
I’m not doing this as a timing element or with a timeline because I want the user to be able to bring up this menu regardless of what else they have clicked on or done on the site. Any tips on where I might have gone wrong would be great appreciated!
If you select your code and click the button it will convert this text (with smart quotes not parseable by JavaScript) to code that is.
@jkinsella – it actually looks like the code you were using did have smart quotes in it. Make sure that you are typing the ' key inside of Hype and not in rich text editor so you actually get an apostrophe and not a smart quote.
Thank you to everyone for the help! It turns out, I was doing it right all along! So what was the problem? I was adjusting the width of an element at the far right of my scene. So when the width adjusted, if adjusted to the right, off the edge of the scene and from my point of view it didn’t appear to be changing at all.