Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Amazing flashlight effect from My Father's Long Long Legs won't work in Harlowe

$
0
0
My Father's Long Long Legs has this cool effect where the text and background are black and then a flashlight illuminates the text and an image. The author shares the code here: http://www.mantlelabs.com/flashlight/#.V0dRpZErLIX

I"m a newbie so I just cut and pasted it to the passage I want to apply it to.

How do I get it to work in Harlowe?

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$(document).light(function() {
$("body").mousemove(function(e){
$("body").css('background-position',(e.pageX - 250)+'px '+(e.pageY - 250)+'px');
});
});
</script>

Viewing all articles
Browse latest Browse all 1844

Trending Articles