FSTUTS FORUMERS
Dont forget to join!

Please Read the forum rules and regulations before posting^_^

Thank You!

--- FADER ---

View previous topic View next topic Go down

--- FADER ---

Post by [DYOSZA]SHEYN on Thu Jun 18, 2009 7:20 pm

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()

-- copy it in notepad..
-- save it as fader.js
-- then upload on any file hosting site..

ready to paste:
Code:
<script src=http://www.freewebtown.com/sheyn07/fader.js></script>

_________________


| FS CO |
| PLURK! |



isnt it CUTE?! Very Happy

avatar
[DYOSZA]SHEYN
MOD
MOD

Posts : 128
Reputation : 15
Join date : 2009-05-26
Age : 23
Location : bulacan

Back to top Go down

Re: --- FADER ---

Post by Psycho Dancer on Thu Jun 18, 2009 8:29 pm

na post ko na ata ito pated ah XD

_________________
Just Give me Repu or Thanks by Clicking the + in my field if i help You ^^



I love my Haterz coZ thEy make me famous


avatar
Psycho Dancer
MOD
MOD

Posts : 166
Reputation : 45
Join date : 2009-05-27
Age : 27
Location : Binangonan Rizal

http://www.friendster.com/psychodancer

Back to top Go down

Re: --- FADER ---

Post by [DYOSZA]SHEYN on Thu Jun 18, 2009 8:37 pm

-- uala aco nkta? Razz

_________________


| FS CO |
| PLURK! |



isnt it CUTE?! Very Happy

avatar
[DYOSZA]SHEYN
MOD
MOD

Posts : 128
Reputation : 15
Join date : 2009-05-26
Age : 23
Location : bulacan

Back to top Go down

Re: --- FADER ---

Post by [DYOSZA]BEBOT on Fri Jun 19, 2009 4:20 am

sz enx for the code :*

_________________
]

nsa iba man ang hnhnap mo
iba parin pgako GIRLFRIEND MO Smile
fs cko

http://profiles.friendster.com/luciitaelbolera01
ym : b.3bot

LONG LEAVE DYOSZA :d
avatar
[DYOSZA]BEBOT
MOD
MOD

Posts : 227
Reputation : 172
Join date : 2009-05-26
Age : 27
Location : DOHA QATAR

Back to top Go down

Re: --- FADER ---

Post by [DYOSZA]gane on Sun Jun 21, 2009 9:12 am

tenchu s share
avatar
[DYOSZA]gane
MOD
MOD

Posts : 221
Reputation : 122
Join date : 2009-05-26
Age : 20
Location : Baguio City, Philippines

Back to top Go down

Re: --- FADER ---

Post by [DYOSZA]SHEYN on Sun Jun 21, 2009 10:55 am

-- np guys.. Very Happy

_________________


| FS CO |
| PLURK! |



isnt it CUTE?! Very Happy

avatar
[DYOSZA]SHEYN
MOD
MOD

Posts : 128
Reputation : 15
Join date : 2009-05-26
Age : 23
Location : bulacan

Back to top Go down

Re: --- FADER ---

Post by [DYOSZA]kHay.E on Sun Jun 21, 2009 12:01 pm

thnx fer diss haha

_________________
avatar
[DYOSZA]kHay.E
Amatuer
Amatuer

Posts : 64
Reputation : 21
Join date : 2009-05-27
Age : 20
Location : ..mind your own!! LOL..

http://profiles.friendster.com/rhacquel21

Back to top Go down

Re: --- FADER ---

Post by `qulata.3o94 :) on Sat Aug 15, 2009 4:39 pm

2 posts?

uhmm.. anyway, just passing by Smile

Like a Star @ heaven SUSHI Like a Star @ heaven
avatar
`qulata.3o94 :)
MOD
MOD

Posts : 141
Reputation : 12
Join date : 2009-07-02
Age : 23
Location : earth :)

http://qlt94.webs.com

Back to top Go down

Re: --- FADER ---

Post by `qulata.3o94 :) on Mon Aug 17, 2009 1:00 am

was that for me sheyn? hehe Smile btw, you look great Smile ONE WAY Very Happy
avatar
`qulata.3o94 :)
MOD
MOD

Posts : 141
Reputation : 12
Join date : 2009-07-02
Age : 23
Location : earth :)

http://qlt94.webs.com

Back to top Go down

Re: --- FADER ---

Post by chix_kiz on Mon Aug 17, 2009 1:17 pm

nice one

thnks for the share

gotta try this
avatar
chix_kiz
Amatuer
Amatuer

Posts : 73
Reputation : 1
Join date : 2009-08-08
Age : 27
Location : United States of Sadako

Back to top Go down

Re: --- FADER ---

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum