how come this doesn't work anymore, gradual highlight |
how come this doesn't work anymore, gradual highlight |
Mar 26 2005, 01:47 AM
Post
#1
|
|
![]() Newbie ![]() Group: Member Posts: 7 Joined: Mar 2005 Member No: 117,657 |
umm..how come the gradual highlight doesn't work well anymore? hope some body help...
|
|
|
|
![]() |
Mar 26 2005, 01:55 AM
Post
#2
|
|
![]() Newbie ![]() Group: Member Posts: 7 Joined: Mar 2005 Member No: 117,657 |
<!-- begin code provided by createblog.com -->
<script> /* 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); } } </script> <!-- end code provided by createblog.com --> |
|
|
|
lynlyn how come this doesn't work anymore Mar 26 2005, 01:47 AM
fishcake-y Gradual highlight of WHAT?! Could you be more ... Mar 26 2005, 01:50 AM
lynlyn Gradual highlight of WHAT?! Could you be more ... Mar 26 2005, 01:52 AM
azn.peace.maker it should work.. well paste your code here please ... Mar 26 2005, 01:53 AM
lynlyn <!-- begin code provided by createblog.com... Mar 26 2005, 01:56 AM
azn.peace.maker oops my bad.. i did see the second post well hmmu ... Mar 26 2005, 01:58 AM
fishcake-y Okay.... a.) I thought they disabled the 'setT... Mar 26 2005, 01:59 AM
lynlyn yup i did that already, and still it doesn't w... Mar 26 2005, 02:00 AM
lynlyn ok imma try to edit the object part Mar 26 2005, 02:01 AM
fishcake-y They disabled the 'setTimeOut' function...... Mar 26 2005, 02:03 AM
lynlyn QUOTEThey disabled the 'setTimeOut' functi... Mar 26 2005, 02:09 AM![]() ![]() |