Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
The most obvious to me is that this is not just a function..
It's a method of a javascript object (or it looks like).
Beside, this alone is useless, as it refers to variable declared outside it's private scope.
The problem could be a type error or a divide by zero.
And your site stay definitively black for me, with just a music in background.
I'm on Firefox 3.5 beta4 on linux.
If I look at the ff error log, is see:
which is:
Code:
for(i=0;i<numballs*2;i++)collisionstack.push(new thwack(container));
Probably the reference to "container" who should be
Code:
document.getElementById('container');
I see this too:
Quote:
|
Error: uncaught exception: [Exception... "String contains an invalid character" code: "5" nsresult: "0x80530005 (NS_ERROR_DOM_INVALID_CHARACTER_ERR)" location: "http://huduzu.trollnest.com/Scripts/orbs.js Line: 186"]
|
which points to:
Code:
b=document.createElement("<img src=\"../images/collision.png\" style=\"border:0px solid red;position:absolute;left:-10000px;top:0px;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50)progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand')\" >");
In this case, it's because when you use createElement(), you don't give the html you want.
you should use it:
Code:
b=document.createElement('img');
b.src="../images/collision.png";
b.style="border:0px solid red;position:absolute;left:-10000px;top:0px;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50)progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand')";
container.appendChild(b);
__________________
Only a biker knows why a dog sticks his head out the window.
|