It looks like you're new here. If you want to get involved, click one of these buttons!
(set: $has_book to true) <div id="img_holder"> <img class='overimg' src='bg.png'> </div> <script type="text/javascript"> var images = ['left','right','left2','right2']; if ($('$has_book').value==101) { $('#img_holder').append("<img class='overimg' src='" + images[Math.floor(Math.random() * images.length)] + ".png'>"); } </script>
Comments
Some people have found novel ways (hacks) to get around Harlowe's restrictions, like csalzman's popular solution (and my slight correction to it) in the Any other user input methods available? thread.
re: is that possible?
Maybe, it can depend on a number of things.
eg. Have you displayed the variable's value on the current page using markup or HTML tags that can be found using DOM node accessing techniques.