[jQuery] Custom function
[jQuery] Custom function
Hi all,
This is a simple quistion (easy to answer ;)) but I have not managed
to find the answer.
Abstracted code:
<script>
$(document).ready(function() {
for (i = 1;maxPixels >= i; i++) {
$("#pixel-" + i).pixelIntro();
}
});
// What should this function look like?
function $().pixelIntro() {
this.fadeIn(Math.random()*60000);
}
</script>
Thanks,
Johan Forngren