i like to fuck around. and i like javascript.

Gavin_86

New member
...so i thought to myself, why not combine the two?

so i fucked around in Javascript for a bit. it's not done, but soon...

http://gavin.panicus.org/downloads/javascript/notes_7.htmllinkage</a>

i stole the bring to top function and part of this idea from http://www.ximwix.net/Ugly Joe's</a> really creative website content display. I kinda made this on a crazy tangent while talking with Whoaman. And, to drop one more name, King Killa supplied the transparent .png <img src=smilies/thumb.gif>

i plan on adding body text to the note as well. and if you go looking tthrough the source.. well, it's a bit messy on the CSS and markup side, and i expect to change the way it's laid out, so don't poke fun <img src=smilies/magbiggrin.gif>

edit: as a warning, don't expect it to work in IE as of yet.<P ID="edit"><FONT class="small">Edited by Gavin_86 on 08/17/05 08:40 PM.</FONT></P>
 
Oh wow, someone visited my website <img src=smilies/magbiggrin.gif>

Pretty cool. I think you'll find stuff like that ends up being largely useless. It's still a good learning experience, though.

Oh, just as a note, try to avoid using "innerHTML". Sometimes when you use that, the browser has to reparse the document and then rerender it. It can really lag down a larger script. Instead of using that to add text, use:

object.appendChild( document.createTextNode( "text goes here" ) );<P ID="edit"><FONT class="small">Edited by Ugly Joe on 08/17/05 09:41 PM.</FONT></P>
 
> As did I.
>
Hope you didn't click 1000 times. You can just put:

javascript:for( var z = 0; z < 1000; z++ ) { add(); }

into the address bar and press enter to do the same thing (it'll take a few seconds though)
 
> ooh, how bad of a lag did you experience when dragging notes
> at that point?

A fair bit. I did a large amount of clicking at one point and saw notes slowly appear for a full minute after I stopped. It was pretty cool.
 
> Hope you didn't click 1000 times. You can just put:
>
> javascript:for( var z = 0; z < 1000; z++ ) { add(); }

I'll try that the next time I want to see how far I can push Firefox before it freezes up entirely.

> into the address bar and press enter to do the same thing
> (it'll take a few seconds though)

Probably a few minutes seeing how my PC was struggling by the end.
 
Back
Top Bottom