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, March 9, 2007
Hello everyone.. As i can see no one has been updating this blog! hahas.. Hope more people can update more often.. Well, today is the last day of the term.. All of us took back our progress report and i know that some of us didn't do that well..(which includes me!) Well, we should think positively. Yup.. Even though some of us did badly.. We still have mid-year, term 3 progress report and end-of-year. Hope that all of us will do well next time. =D
As for holiday homework, we have:
Maths : ex 7e (qn 6-26) Maths 2
Science : Focus science unit 11 & 12
English : Read the commonly misspelled words
If there are any more homework, pls post it here. =) Well, I shall end here but also remember to sign all your IH test paper, progress report!
Hope that everyone will have a great march holidays! All the best for your studies!
Marion :D