sawmaster
03-19-2009, 06: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.
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.