...

View Full Version : Javascript Stickies App not working



sawmaster
03-19-2009, 07:13 AM
Hey.

I must have a syntax error, because this function crashes the entire script (even the other functions).



function newNote()
{
allNotes = document.getElementById('notes-stickies-app').innerHTML;
secondadder = 1;
noteTotal = n+secondadder;
alert(noteTotal);
document.getElementById('notes-stickies-app').innerHTML=allNotes+'<div id="note'+noteTotal+'-stickies-app" class="stickiesYellow" style="width:100px; height:100px;" onclick="selectNote(\'note'+noteTotal+'\');" onmouseup="stopMovingStickiesNote();" onmousemove="keepMovingStickiesNote();" onmousedown="startMovingStickiesNote(\'note'+noteTotal+'\');">
New Note.
</div>';
n = noteTotal;
}


URL: http://71.193.112.221:8888/tools/javascript_os.html

EDIT: to get to the stickies part, click the apple menu, and click stickies. you'll see how the stickies wont drag because this script that adds new stickies has a problem.

Philip M
03-19-2009, 10:27 AM
New Note.
</div>';


Outside a secondhand shop: WE EXCHANGE ANYTHING - BICYCLES, WASHING MACHINES, ETC. WHY NOT BRING YOUR WIFE ALONG AND GET A WONDERFUL BARGAIN?

sawmaster
03-19-2009, 05:43 PM
New Note.
</div>';


Outside a secondhand shop: WE EXCHANGE ANYTHING - BICYCLES, WASHING MACHINES, ETC. WHY NOT BRING YOUR WIFE ALONG AND GET A WONDERFUL BARGAIN?

Awesome! Thanks! It works 100% now!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum