/*
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);
}
}
Wednesday, April 11, 2007
My day today....sucked!well, i was so bored at work but got asked around like a dog....nvm shall not talk bout that, I really wanted to show that special someone that I could be full of suprises, well, it just did'nt work out, that's still ok. Just as I thought things were going right as we walked up the stairs, turn off! we had a mid age man upgrading himself on this particular day....I thought I could properly say sorry to that person but there was never the right moment, the right ambience, the right situation. I tried my best to be sincere as possible by saying that I'm sorry for being an asshole today, but it just didn't come out right.
Well, at times I do wonder, if I have never met you, I would be perfectly fine today. In the end I had to go through the joys and the sorrows, the fears and the excitment, the thrills and the turn offs!!! My whole world revolves around you now! man I feel soo....confused...