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);
}
}
Saturday, April 14, 2007
Hello.. Changed the blogskin. Comment on this blogskin! ^^ Comment on the picture too!
Exams getting nearer.. Everyone work hard okay? Then we'll all score high for all subjects.. hahas.. ^^
Remember to do the maths worksheet & focus science..
Anyways, gtg.. BYE!
Marion
Tuesday, April 10, 2007
hey hey hey guys!! (:: alien face. LOLs. okay being lame.
well people .. i realised tat we haven been updating for some time.. o.O of-course...
we are having a science test tmr!! arhh!! :S
it is on osmosis and diffusion in case you dunno... and he test on thursday.. book 1, 4-7 or 8.. i think.. and book 2 : unit 4 and 7-8 (:
happy studying..
i hope to have organise a class party someday during june hols.. wad do you think people?? please tag 4 ans.. (: