/*
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);
}
}
Friday, May 11, 2007
What's settled is settled. Had alot of fun yesterday, went to the zoo with my course friends and fard?! haha he just tagged along. Anyway, pics aren'y here yet, woll upload them when i have them. Although yesterday was fun, contradictingly, it was not.
I had to put up with 11 ah bengs from amk hub. Man were they childish. Fard just made a slight comment about them, and then they made a scene and wanted fard to go out. What to do, I stood up for fard, and I also got into the pic. However, I find that they are all the pawns of real gangsters. Real gangsters don't find problems in the public, in fact, they are normal until provocated. Anyway, there was this part where i really snapped because he was trying to slap fard's face. I put my bag one side and stood up. He was about to touch my shoulder when I stood up, but I stared at him so he thought twice. Really stupid as it was, I was ready to fight with 11 small fries. At the end, they came over, 2 of them, and asked to compromise. So, ya whatever, we did say sorry both parties. First of all, not our place, second, we were outnumbered. If only the click were here, haha no fear....
signing out,
pissed about yesterday