|
GRADUAL ELEMENT FADER!!ready to paste! (COOL) |
|
|
Author |
Message |
Rom@Work
HCG Addict
> : I love HCG!
Posts : 297
Age : 31
Location : Quezon City
Mood : Alone
Country :
Reg-Date : 2008-10-02
Forum Warning :
Contribution :
|
Subject: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Tue Dec 09, 2008 11:48 pm |
|
|
First topic message reminder :all i want is to share.., CREDITS: DYNAMICDRIVE Me ^^ preVieW:=-RoM-= - Code:
-
/*********************************************** * Gradual Element Fader- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com) * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts * This notice must stay intact for legal use ***********************************************/
var gradualFader={} gradualFader.baseopacity=0.10 gradualFader.increment=0.2 document.write('<style type="text/css">\n') document.write('.commonbox{filter:progid:DXImageTransform.Microsoft.alpha(opacity=' +gradualFader.baseopacity*100+'); -moz-opacity:'+gradualFader.baseopacity+'; opacity:'+gradualFader.baseopacity+';}\n') document.write('</style>') gradualFader.setopacity=function(obj, value){ var targetobject=obj if (targetobject && targetobject.filters && targetobject.filters[0]){ if (typeof targetobject.filters[0].opacity=="number") targetobject.filters[0].opacity=value*100 else targetobject.style.filter="alpha(opacity="+value*100+")" } else if (targetobject && typeof targetobject.style.MozOpacity!="undefined") targetobject.style.MozOpacity=value else if (targetobject && typeof targetobject.style.opacity!="undefined") targetobject.style.opacity=value targetobject.currentopacity=value } gradualFader.fadeupdown=function(obj, direction){ var targetobject=obj var fadeamount=(direction=="fadeup")? this.increment : -this.increment if (targetobject && (direction=="fadeup" && targetobject.currentopacity<1 || direction=="fadedown" && targetobject.currentopacity>this.baseopacity)){ this.setopacity(obj, targetobject.currentopacity+fadeamount) window["opacityfader"+obj._fadeorder]=setTimeout(function(){gradualFader.fadeupdown(obj, direction)}, 50) } } gradualFader.clearTimer=function(obj){ if (typeof window["opacityfader"+obj._fadeorder]!="undefined") clearTimeout(window["opacityfader"+obj._fadeorder]) } gradualFader.isContained=function(m, e){ var e=window.event || e var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement) while (c && c!=m)try {c=c.parentNode} catch(e){c=m} if (c==m) return true else return false } gradualFader.fadeinterface=function(obj, e, direction){ if (!this.isContained(obj, e)){ gradualFader.clearTimer(obj) gradualFader.fadeupdown(obj, direction) } } gradualFader.collectElementbyClass=function(classname){ var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i") var pieces=[] var alltags=document.all? document.all : document.getElementsByTagName("*") for (var i=0; i<alltags.length; i++){ if (typeof alltags[i].className=="string" && alltags[i].className.search(classnameRE)!=-1) pieces[pieces.length]=alltags[i] } return pieces } gradualFader.init=function(){ var targetobjects=this.collectElementbyClass("commonbox") for (var i=0; i<targetobjects.length; i++){ targetobjects[i]._fadeorder=i this.setopacity(targetobjects[i], this.baseopacity) targetobjects[i].onmouseover=function(e){gradualFader.fadeinterface(this, e, "fadeup")} targetobjects[i].onmouseout=function(e){gradualFader.fadeinterface(this, e, "fadedown")} } } gradualFader.init()
READY TO PASTE CODE - Code:
-
<script src='http://h1.badwaresite.www/jorgyrom0147/gradfader.js'></script> paste it in your who i want to meet, about me section or in yer media box! I'm just sharing
Last edited by jorgyrom on Thu Dec 11, 2008 2:15 pm; edited 1 time in total
|
|
|
|
hotbutts
HCG Member
> : I love HCG!
Posts : 12
Age : 34
Location : sierra leone
Mood : Groggy
Country :
Reg-Date : 2009-02-10
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Mon Jun 01, 2009 4:04 pm |
|
|
i saw this in friendstertalk.. nothing changes
|
|
|
|
Fiboy17™
HCG VIP Member
> : I love HCG!
Posts : 16307
Age : 35
Location : |L|A|S|P|I|Ñ|A|S|
Mood : Happy
Country :
Reg-Date : 2009-04-30
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Mon Jun 01, 2009 6:50 pm |
|
|
keep it up dude,... cool ,...
|
|
|
|
jamie14
HCG Elite
> : i LOVE NOVEMBER, HBU? =)
Posts : 1513
Age : 29
Location : earth =)
Mood : Amused
Country :
Reg-Date : 2009-01-16
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Mon Jun 01, 2009 7:12 pm |
|
|
|
|
|
|
marj08
HCG Wizard
> : love u rj :)
Posts : 50
Age : 32
Location : Cebu
Mood : Dark
Country :
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Tue Jun 02, 2009 3:54 pm |
|
|
are you capable of adding this trick? once you hover the BACKGROUND, your DESIRED IMAGE will appear at the center. And when you hover your center profile, the IMAGE disappears. Get my point kuya?
|
|
|
|
katx.ixtcandypop
HCG Freak
> : Cause Baby, ur one of a KiND xD
Posts : 116
Age : 29
Location : Ajax. Ontario, CA
Mood : Cranky
Reg-Date : 2008-10-23
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Tue Jun 09, 2009 12:03 am |
|
|
Oh, this thing works only for IE and FF i guess. It's pretty cool for me. So thanks for sharing! :)
|
|
|
|
daphney:)
HCG Wizard
> : HCG?? 'da best:))
Posts : 81
Age : 27
Location : tacloban city
Mood : Calm
Country :
Reg-Date : 2009-04-06
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Tue Jun 09, 2009 10:00 am |
|
|
thanks po!!
|
|
|
|
xteenkawaii
HCG Addict
> : I love HCG!
Posts : 206
Age : 68
Location : mount olympus
Mood : Geeky
Country :
Reg-Date : 2009-02-24
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Fri Jul 17, 2009 10:10 pm |
|
|
|
|
|
|
Jerzzz777
HCG Freak
> : I love HCG!
Posts : 102
Reg-Date : 2009-05-19
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Sat Aug 08, 2009 7:12 pm |
|
|
|
|
|
|
shatteredlady_666
HCG Geek
> : MiSS CO UNG APP xDD
Posts : 715
Age : 29
Location : Quezon City, Philippines
Mood : Cold
Country :
Reg-Date : 2009-03-16
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Sat Aug 08, 2009 7:13 pm |
|
|
haha . ! si kuya rom pla . ! xD tenk u d2 .
|
|
|
|
eryl234
HCG Freak
> : tHank'S HCG
Posts : 115
Age : 30
Location : manila
Mood : Calm
Country :
Reg-Date : 2009-03-31
Forum Warning :
Contribution :
|
|
|
|
kenniegonz28
HCG Freak
> : I love HCG!
Posts : 169
Age : 33
Location : manila
Mood : Happy
Country :
Reg-Date : 2009-04-05
Forum Warning :
Contribution :
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) Wed Dec 09, 2009 6:22 pm |
|
|
|
|
|
|
Sponsored content
|
Subject: Re: GRADUAL ELEMENT FADER!!ready to paste! (COOL) |
|
|
|
|
|
|
|
GRADUAL ELEMENT FADER!!ready to paste! (COOL) |
|
|