The Arcive of vBulletin Modifications Site. |
|
Fading image mod! Details »»
|
|||||||||||||||||||||||||
Code:
<script language="JavaScript1.2">
/*
gradual image fading code [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth].
*/
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>
I like this :hurt:Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Demo Site?
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
||||
|
||||
|
umm,my board is temporaly down,but ill get you one once its up again ok?
|
|
#5
|
||||
|
||||
|
See this !
http://dhtmlpost.webcab.ro/navig/fi/fi.htm & demo: http://dhtmlpost.webcab.ro/navig/fi/demo.htm |
|
#6
|
||||
|
||||
|
that kicks ass, I have to find a way to implement that into my board
|
|
#7
|
|||
|
|||
|
how to implement in in the Board..that all images wich are only posted appears like this..??
but the Banbners and other pictures have to stay normal ! |
|
#8
|
|||
|
|||
|
ANyone can pint out how this is implemented on a forum, the effect is nice but i would like some help in getting it set up, or at least some basic instructions. A demo and a script does not make a mod.
|
|
#9
|
||||
|
||||
|
Is there no explanation to how we can accomplished this?? :ermm:
|
|
#10
|
|||
|
|||
|
|
![]() |
|
|