Eh, that still didn't work. Here is the entirety of my Javascript code for that page:
Code: <script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$(".title").hover(function() {
$(this).css("font-size","140%"); }
, function() {
$(this).css("font-size","120%");
});
dontpropogate=function() {
$(this).stopPropagation();
}
showpage=function($label){
pageSound.playclip()
document.getElementById("paper").style.display="block";
switch ($label) {
case 1:
$contents = '<span style="font-weight:bold; font-size:50px; font-style:italic; font-family:\'Open Sans Condensed\';">The Eight Pages<\/span><hr style="width:40%;" \/><p>Based on the game by Mark J. Hadley, you start off in a dark wood at night, armed with only a flashlight. You must try to collect all eight pages, while being pursued by the Slenderman. Can you get them all before he catches you? Download and play to find out.<\/p><p>This game works on the TI-83+, TI-84+ and their respective Silver Editions. It may also work on the TI-84+ emulator on the TI-Nspire. It has not been tested on any other model.<\/p><hr style="width:40%;" \/>Download: <a href="downloads/slender8pages.zip" target="_blank" style="color:inherit; text-decoration:none; font-style:italic;">Slender: The Eight Pages, TI Edition<\/a>';
break;
}
document.getElementById("paper").innerHTML=$contents;
$("a").click(function(e){
e.stopPropagation();
});
}
removepage=function() {
pageSound.playclip()
document.getElementById("paper").style.display="none";
}
});
var audiotypes={
"mp3": "audio/mpeg",
"mp4": "audio/mp4",
"ogg": "audio/ogg",
"wav": "audio/wav"
}
function ss_soundbits(sound){
var audio_element = document.createElement('audio')
if (audio_element.canPlayType){
for (var i=0; i<arguments.length; i++){
var source_element = document.createElement('source')
source_element.setAttribute('src', arguments[i])
if (arguments[i].match(/\.(\w+)$/i))
source_element.setAttribute('type', audiotypes[RegExp.$1])
audio_element.appendChild(source_element)
}
audio_element.load()
audio_element.playclip=function(){
audio_element.pause()
audio_element.currentTime=0
audio_element.play()
}
audio_element.stopclip=function(){
audio_element.pause()
}
return audio_element
}
}
var pageSound = ss_soundbits("paper-rustle.mp3");
var originalBG = '',
lightColor = 'fff',
gradientSize = 5;
originalBG = $("body").css("background");
var handleMouseMove = function(e) {
x = e.pageX - this.offsetLeft;
y = e.pageY - this.offsetTop;
xy = x + " " + y;
bgWebKit = "-webkit-gradient(radial, " + xy + ", 0, " + xy + ", 100, from(rgba(255,255,255,0.8)), to(rgba(255,255,255,0.0))), " + originalBG;
bgMoz = "-moz-radial-gradient(" + x + "px " + y + "px 45deg, circle, " + lightColor + " 0%, " + originalBG + " " + gradientSize + "px)";
bg = "radial-gradient(" + x + "px " + y + "px 45deg, circle, " + lightColor + " 0%, " + originalBG + " " + gradientSize + "px)";
$(this)
.css({ background: bgWebKit })
.css({ background: bgMoz })
.css({ background: bg });;
}
var handleMouseLeave = function() {
$(this).css({ background: originalBG });
}
$("body").mousemove(handleMouseMove).mouseleave(handleMouseLeave);
//]]>
</script>