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:50 AM
Post
#2
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Gradual highlight of WHAT?! Could you be more specific please?
|
|
|
|
Mar 26 2005, 01:52 AM
Post
#3
|
|
![]() Newbie ![]() Group: Member Posts: 7 Joined: Mar 2005 Member No: 117,657 |
Gradual highlight of WHAT?! Could you be more specific please?
the gradual highlight when u hover on the image |
|
|
|
Mar 26 2005, 01:53 AM
Post
#4
|
|
|
Tu es laid. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 3,913 Joined: Feb 2005 Member No: 106,675 |
it should work.. well paste your code here please so we can see if theres a problem
|
|
|
|
Mar 26 2005, 01:55 AM
Post
#5
|
|
![]() 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 --> |
|
|
|
Mar 26 2005, 01:56 AM
Post
#6
|
|
![]() Newbie ![]() Group: Member Posts: 7 Joined: Mar 2005 Member No: 117,657 |
<!-- begin code provided by createblog.com -->
<img src="IMG URL" style="filter:alpha(opacity=30)" onmouseover="nereidFade(this,100,70,20)" onmouseout="nereidFade(this,20,50,10)"> <!-- end code provided by createblog.com --> |
|
|
|
Mar 26 2005, 01:58 AM
Post
#7
|
|
|
Tu es laid. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 3,913 Joined: Feb 2005 Member No: 106,675 |
oops my bad.. i did see the second post well hmmu didnt put a url into the <img part...
|
|
|
|
Mar 26 2005, 01:59 AM
Post
#8
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Okay.... a.) I thought they disabled the 'setTimeOut' function.
b.) Have you tried changing the part in the quotation marks of this line to image? -shrug- I dunno. CODE if (object != "[object]"){ //do this so I can take a string too edit//Oh, and use the edit button next time. |
|
|
|
Mar 26 2005, 02:00 AM
Post
#9
|
|
![]() Newbie ![]() Group: Member Posts: 7 Joined: Mar 2005 Member No: 117,657 |
yup i did that already, and still it doesn't work well
|
|
|
|
Mar 26 2005, 02:01 AM
Post
#10
|
|
![]() Newbie ![]() Group: Member Posts: 7 Joined: Mar 2005 Member No: 117,657 |
ok imma try to edit the object part
|
|
|
|
Mar 26 2005, 02:03 AM
Post
#11
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
They disabled the 'setTimeOut' function..... That'd be why it doesn't work.... But you do have an actual image URL in your code, right? Just wondering....
|
|
|
|
Mar 26 2005, 02:09 AM
Post
#12
|
|
![]() Newbie ![]() Group: Member Posts: 7 Joined: Mar 2005 Member No: 117,657 |
QUOTE They disabled the 'setTimeOut' function..... That'd be why it doesn't work.... But you do have an actual image URL in your code, right? Just wondering.... they did? oh man, that sucks....yup i have an actual image...well, thanks for the help you guys... |
|
|
|
![]() ![]() |