/*
Gradual-Highlight Image Script II-
By J. Mark Birenbaum (birenbau@ugrad.cs.ualberta.ca)
Permission granted to Dynamicdrive.com to feature script in archive
For full source to script, visit http://dynamicdrive.com
*/
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
/* object - image to be faded (actual object, not name);
* destop - destination transparency level (ie 80, for mostly solid)
* rate - time in milliseconds between trasparency changes (best under 100)
* delta - amount of change each time (ie 5, for 5% change in transparency)
*/
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]"){ //do this so I can take a string too
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;
if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
Monday, April 16, 2007
Where was I yesterday, I think it was the end of the first night? Alright I shall continue from there. Feeling tired and restless, me and nazirul continued to carry out the event lost island and apparently, every group who came to us actually got lost finding us..
Anyway, most of the time I was giving sweets to the girls group who were good and the rest of the time was spent on making the boys think of their campfire cheer, how evil can I be. The hours drew nearer as the sec 1 groups were busily preparing for the campfire.
The hour for campfire reached, we asked the sec1's to carry the benches and place it into a circle round the fire, and even before the campfire started, people already got into a fight. How idiotic could they be, they tried to be fierce but not fierce enough. My senior, Amin, wrestled the guy down hard onto the floor with his face right smack onto the ground, cry already. He had such guts to pick a fight but cried when was slammed onto the floor. Poor fellow.
The campfire went on and it was really fun. 2 hours had passed and the campfire drew to an end. We carried on by watching eight below, lame show about 8 poor little siberian huskies running about the ice. By the time the movie ended, almost all the sec 1's had fallen asleep on the ground. And when night snack was announced, everyone suddenly felt so enegetic. Most went to sleep other asked for curry puffs. By the time they slept it was 1230am already. After that, still got mass debrief, my god I hate debriefs, everyone had to have a short speech about how they felt about today, LAME! By the time that finished, 2 am already. Went to sleep around 5am, then woke up at 7am.
This time I was already dead beat. I shall just fast forward the whole thing alright? Campers went home and we had lots of fun.
The End