• ARCHIVES 
  • » [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

Pages: 12

[b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

[b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide boxes effect[/b][/align] sorry if double posted =) :thumbsup: , [img]http://theftalk.com/img/warn_add.gif[/img] if you like it [b]_____________________________________________________________________________________________ [/b] [img]http://s104.photobucket.com/albums/m168/chibib0/wvmaccordion/thnewpost.gif[/img] [b]Credits [/b]: [b]Dynamic Drive [/b] [b][url=http://theftalk.com/p=nopathz]Nopathz[/url][/b] [b] ALL FTALK'ers[/b] [b] [url=http://profiles.friendster.com/awalirsyad]Myself[/url][/b] [img]http://s104.photobucket.com/albums/m168/chibib0/wvmaccordion/thnewpost.gif[/img] [b]Description[/b] : This effect is to hide all your boxes and class and show when mouse over !! [img]http://s104.photobucket.com/albums/m168/chibib0/wvmaccordion/thnewpost.gif[/img] [b]Temporary Preview[/b] : [url=http://profiles.friendster.com/awalirsyad]sorry for a while it's now limit bandwith exceeded[/url] (depends on bandwith exceeded) =( [img]http://s104.photobucket.com/albums/m168/chibib0/wvmaccordion/thnewpost.gif[/img] [b]Screenshot[/b] : [spoiler][b]boxes hide if not hover [/b] [img]http://i214.photobucket.com/albums/cc118/boimx/notover.jpg[/img] [b]if hovered ( boxes fade in and fadeout on mouseout )[/b] [img]http://i214.photobucket.com/albums/cc118/boimx/onover.jpg[/img][/spoiler] [img]http://s104.photobucket.com/albums/m168/chibib0/wvmaccordion/thnewpost.gif[/img] Step to follow : [img]http://theftalk.com/img/warn_add.gif[/img] 1. [b]GRADUAL FADER EFFECT FUNCTION[/b] ' upload to your webhost and name it [b]gradualfader.js[/b] [spoiler]//Gradual Elements Fader- By Dynamic Drive at http://www.dynamicdrive.com //Last updated: Nov 8th, 07' var gradualFader={} gradualFader.baseopacity=0.0 //set base opacity when mouse isn't over element (decimal below 1) gradualFader.increment=0.1 //amount of opacity to increase after each iteration (suggestion: 0.1 or 0.2) document.write('<style type="text/css">\n') //write out CSS to enable opacity on "gradualfader" class document.write('.gradualfader{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){ //Sets the opacity of targetobject based on the passed in value setting (0 to 1 and in between) var targetobject=obj if (targetobject && targetobject.filters && targetobject.filters[0]){ //IE syntax if (typeof targetobject.filters[0].opacity=="number") //IE6 targetobject.filters[0].opacity=value*100 else //IE 5.5 targetobject.style.filter="alpha(opacity="+value*100+")" } else if (targetobject && typeof targetobject.style.MozOpacity!="undefined") //Old Mozilla syntax targetobject.style.MozOpacity=value else if (targetobject && typeof targetobject.style.opacity!="undefined") //Standard opacity syntax 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){ //Returns an array containing DIVs with specified classname var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i") //regular expression to screen for classname within element 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("gradualfader") 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")} } }[/spoiler] Inject that script before your onload handler [quote]var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "[b]URL gradualfader.js[/b]"; document.getElementsByTagName("head")[0].appendChild(myjs);[/quote] [img]http://theftalk.com/img/warn_add.gif[/img] 2. [b]GETELEMENTSBYCLASSNAME FUNCTION[/b] put it inside your onload handler [spoiler]function getElementsByClassName(strClass, strTag, objContElm) { strTag = strTag || "*"; objContElm = objContElm || document; var objColl = objContElm.getElementsByTagName(strTag); if (!objColl.length && strTag == "*" && objContElm.all) objColl = objContElm.all; var arr = new Array(); var delim = strClass.indexOf('|') != -1 ? '|' : ' '; var arrClass = strClass.split(delim); for (var i = 0, j = objColl.length; i < j; i++) { var arrObjClass = objColl[i].className.split(' '); if (delim == ' ' && arrClass.length > arrObjClass.length) continue; var c = 0; comparisonLoop: for (var k = 0, l = arrObjClass.length; k < l; k++) { for (var m = 0, n = arrClass.length; m < n; m++) { if (arrClass[m] == arrObjClass[k]) c++; if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) { arr.push(objColl[i]); break comparisonLoop; } } } } return arr; }[/spoiler] [img]http://theftalk.com/img/warn_add.gif[/img] 3. [b]GRADUALFADER INIT[/b] ' Put it inside your onloadhandler [spoiler]theboxfade=getElementsByClassName("commonbox"); for (i=0;i<theboxfade.length;i++){ theboxfade[i].className+=" gradualfader"; } gradualFader.init()[/spoiler] happy tweaking and [img]http://theftalk.com/img/warn_add.gif[/img] if you like it :D :thumbsup:

Last edited by boim (2008-08-24 06:06:22)

Afzulnizam
» SuperFTalker
FTalk Level: zero
8122
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

nice trick boim [img]http://theftalk.com/img/warn_add.gif[/img] for you..
boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=AFZULNIZAM]nice trick boim for you..[/quote] thank you 4 appreciating bro nizam ;) :thumbsup:
emo_boy03
» n00b
FTalk Level: zero
78
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

:thumbsup: nice one bro,..thanks for sharing....
ceszweii
» FTalkManiac
FTalk Level: zero
683
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

nice trick bro.:thumbsup: thanks for sharing...:D
regiehiozn
» FTalkFreak
FTalk Level: zero
1819
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

preview is not working..
boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=regiehiozn]preview is not working..[/quote] sorry bro..it's bandwith problem =( but i gave screen shot also.. , try to preview it later ;) :thumbsup: :arrow: [b]MOD[/b] aheehee....moved here i thought moved to recycle bin :lol:

Last edited by boim (2008-08-22 10:30:38)

simpleMe
» FTalkManiac
FTalk Level: zero
949
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

sorry dude :cry: ive already posted this :cry: :arrow: [url=http://theftalk.com/t37385-Gradual-Element-Fader-%28effect%29.html]Simple Tuts[/url]
boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=simpleMe]sorry dude :cry: ive already posted this :cry: :arrow: Simple Tuts[/quote] I knew that bro :) ...but sorry b'coz I thought you shared the global function of this script ( gradual fader effect ) and also [b]blurrycloud[/b] only for addons ;) :thumbsup: but here, i share the script on how to use it as show hide boxes effect and flexibility use with getelementsbyclassname function if anyone Ftalk'er would apply on each box or other element's =) ! and the important notes : the gradual fader effect could not working if we don't have other script with getelements function...=) that's why in your thread someone said [i]my profile not fade in[/i]

Last edited by boim (2008-08-22 21:49:14)

simpleMe
» FTalkManiac
FTalk Level: zero
949
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=boim]and the important notes : the gradual fader effect could not working if we don't have other script with getelements function...=) that's why in your thread someone said my profile not fade in[/quote] its working bro if they follow my instructions :D heres the preview of my work :arrow: http://profiles.friendster.com/62346457

Last edited by simpleMe (2008-08-22 23:04:21)

boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=simpleMe]its working bro if they follow my instructions :D heres the preview of my work :arrow: http://profiles.friendster.com/62346457[/quote] i dunno why it's not working... I previewed it on FF there's only cool photo gallery i saw :wow: :thumbsup: but the fader effect is not shown =)
simpleMe
» FTalkManiac
FTalk Level: zero
949
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=boim]i dunno why it's not working... I previewed it on FF there's only cool photo gallery i saw :wow: :thumbsup: but the fader effect is not shown =)[/quote] i just removed it dude :D try my codes dude =) and youll see =) btw, i really like this trick =) though its not the same tuts on mine but same effects =) anyway, thanks for sharing though =) and about the cool photo gallery u saw, maybe i make a tuts on it :D btw, its not just a photo gallery, try to click all images and youll see :D
boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=simpleMe]i just removed it dude :D try my codes dude =) and youll see =) btw, i really like this trick =) though its not the same tuts on mine but same effects =) anyway, thanks for sharing though =) and about the cool photo gallery u saw, maybe i make a tuts on it :D btw, its not just a photo gallery, try to click all images and youll see :D[/quote] yes, that what i guess you've removed it :lol: ..... really cool gallery bro and i saw all the pic's with cool preview effect ! hmmm great job n nice to know you ;) :thumbsup:
---xXirukiTepe---
» SuperFTalker
FTalk Level: zero
8896
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[b]nice tricka.... dude... haha[/b]
slashedkite
» FTalkManiac
FTalk Level: zero
973
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

another hover trick, show/hide boxes version.. cool! ;):thumbsup: hehe!
boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=---xXirukiTepe---]nice tricka.... dude... haha[/quote] thanx sist ;) :thumbsup: ahehe.... [quote=slashedkite]another hover trick, show/hide boxes version.. cool! ;):thumbsup: hehe![/quote] yupp another tricky using gradual element fader ;)
Arifboys
» n00b
FTalk Level: zero
2
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

:rolleyes:hai ....slam knal
Arifboys
» n00b
FTalk Level: zero
2
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

:rolleyes:hai ....slam knal
boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

[quote=Arifboys]:rolleyes:hai ....slam knal[/quote] hufff....sorry wrong thread bro =) just visit :arrow: [url=http://theftalk.com/f32-New-Member-Introduction.html]here[/url] to introduce yourself or visit :arrow: [url=http://theftalk.com/t41325-%7BOFF-TOPIC%7D-Tempat-Membahas-Hal2-Umum-Selain-Friendster-%5BJilid-6%5D.html]here[/url] to talk each others in regional section ;) :thumbsup:

Last edited by boim (2008-08-28 13:36:56)

gbangetz
» n00b
FTalk Level: zero
22
0
1969-12-31

Re: [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

:thumbsup: nice code :Dthanks for sharring
  • ARCHIVES 
  • » [b]_____________________________________________________________________________________________[/b] [align=center][b]GRADUAL ELEMENT FADER EFFECT[/b][/align] [align=center][b]for another show hide bo

Pages: 12

Board footer

© 2024 F Talk

Current time is 05:11

[ 10 queries - 0.027 second ]
Privacy Policy