View Single Post
Old 04-06-2004, 10:25 AM  
Dynamix
G F Y not
 
Industry Role:
Join Date: Jan 2004
Location: MN
Posts: 2,910
Quote:
Originally posted by modelgigtalent
Use Dreamweaver and Fireworks to achieve what you want.
or learn the code from others instead of just point-n-click. makes you appreciate it more



SETUP
PHP Code:
<hahahahahahahaha
/*
Gradual-Highlight Image Script II- 
By J. Mark Birenbaum ([email protected])
Permission granted to Dynamicdrive.com to feature script in archive
For full source to script, visit [url]http://dynamicdrive.com[/url]
*/

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 startLink(){
    
nereidFade(img2,100,10,30);

    
nereidFade(img3,100,10,30);
    
nereidFade(img2,30,10,5);

    
nereidFade(img4,100,10,30);
    
nereidFade(img3,30,10,5);

    
nereidFade(img5,100,10,30);
    
nereidFade(img4,30,10,5);

    
nereidFade(img5,30,10,5);

}


function 
nereidFade(objectdestOpratedelta){
if (!
hahahahahahahahahahaall)
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);
    }
}

</
hahahahahahahaha 
In IMAGE tag:
PHP Code:
hahahahahahaha"filter:alpha(opacity=0)" hahahahahahahaha"nereidFade(this,100,10,30)" 
__________________

TGPFactory Full TGP Design & Installation Services
ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com
See who I am at AdultWhosWho.com!
Dynamix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote