Friday, November 24, 2006

Controling Opacity

I have found this very helpful in doing "flash-like" java scripts driven by user input. Takes 1 minute to create transition effect lib with this function.

Enjoy!


P.S.: Oh!
The only thing left for you to implement isIE()!!!!!



function setObjectOpacity(obj, opacity)
{
//IE
if (isIE())
obj.style.filter = "alpha(opacity:"+opacity+")";
else
{
opacity = (opacity == 100)?99.999:opacity;//99.9 for Firefox flicker bug

// Konqueror, Safari
obj.style.KHTMLOpacity = opacity / 100;
// Old Mozilla and Firefox
obj.style.MozOpacity = opacity / 100;
// CSS3, Safari , new Firefox (Gecko)
obj.style.opacity = opacity / 100;
}//else
}

18 comments:

Anonymous said...

My friend and I were recently discussing about how modern society has evolved to become so integrated with technology. Reading this post makes me think back to that discussion we had, and just how inseparable from electronics we have all become.


I don't mean this in a bad way, of course! Ethical concerns aside... I just hope that as technology further develops, the possibility of copying our brains onto a digital medium becomes a true reality. It's a fantasy that I daydream about every once in a while.


(Posted on Nintendo DS running [url=http://quizilla.teennick.com/stories/16129580/does-the-r4-or-r4i-work-with-the-new-ds]R4i[/url] DS FPost)

Anonymous said...

Hi, provigil without prescription - buy modafinil online without prescription http://www.onlinepharmdiscount.com/provigil/, [url=http://www.onlinepharmdiscount.com/provigil/]order provigil [/url]

Anonymous said...

4, [url=http://www.maxaltrxonline.net/]buy maxalt online no prescription [/url] - purchase maxalt online - maxalt online pharmacy http://www.maxaltrxonline.net/.

Unknown said...

ugg boots
air jordan 13
air jordan shoes
beats headphones
bottega veneta outlet
burberry outlet
canada goose outlet
chanel outlet
cheap wedding dresses
coach outlet
dansko outlet
evening dresses
hermes belt
hermes birkin
hermes outlet
juicy couture outlet
kate spade outlet
mbt shoes
michael kors outlet
mizuno running
moncler coats
mulberry outlet
soccer shoes
nike outlet store
the north face outlet
oakley sunglasses
ray ban sunglasses
stuart weitzman boots
surpa sneakers
north face outlet
the north face clearance
the north face jackets
the north face outlet store
north face jackets
the north face uk
tommy hilfiger outlet
tory burch outlet
true religion jeans
vans shoes
ysl outlet

chenlina said...

ugg boots paris
louis vuitton outlet
minnesota vikings jerseys
coach outlet
washington wizards jerseys
fitflops sale clearance
ray ban sunglasses
cheap oakley sunglasses
ugg boots
oakley sunglasses
chenlina20161027

Unknown said...

ravens jerseys
michael kors handbags
hermes belt
fitflops shoes
abercrombie and fitch
michael kors outlet store
michael kors handbags
nike air huarache
bears jerseys
michael kors handbags

KIMI HIME said...

Thank you for this very useful health article

Cara mengobati osteoporosis
Cara Mengobati Campak
Cara Menghilangkan Sakit Tenggorokan
Cara Mengeringkan Luka Diabetes
Obat untuk Menhilangkan Prurigo

Cara Mengatasi Penyakit Asam Lambung said...

Thanks for sharing the information

Khasiat QnC Jelly Gamat
Obat Eksim Atopik
Pengobatan Herbal Penyakit Liver
Cara Mengobati Alergi Dingin
Obat Paling Mujarab untuk Diabetes
Obat Batu Empedu Alami
PENGOBATAN PENYAKIT AMANDEL
Cara Mengatasi Penyakit Asam Lambung

yanmaneee said...

adidas ultra boost
michael kors outlet store
michael kors wallet
adidas nmd r1
salvatore ferragamo belt
adidas yeezy boost
air jordan
cheap jordans
jordans
birkin bag

Susan said...

I discovered your this post while hunting down data about site related examination ... It's a decent post .. continue posting and upgrading data. Wondering where to go in 2019? Things to do has ranked as the best include a remote, idyllic island, the design capital ...

Unknown said...

watch all latest suryavamsam videos online in HD for free

Anonymous said...

Watch all daily malaysian tv programs and shows online in HD for free https://tontonhd.com/ subscribe now

Gênesis said...

Assistir novelas online capítulos completos Ao Vivo na Íntegra. Ver novelas online no canal Tá Bonito Brasil.

unkowm said...

Watch Tamil tv serial Then Mozi only at Then Mozi in HD quality for free.

theetayt said...

this link d5p86q5k22 high end replica bags replica bags koh samui find here t6a85m5e15 louis vuitton replica replica radley bags replica bags philippines replica gucci bags l3u54j0r16 best replica ysl bags

kanati said...


觀眾可以在線觀看台劇、港劇、日劇、韓劇、陸劇、美劇等熱門劇集。 影音視頻播放清晰流暢, 操作界面簡單友好,真正為用戶帶來最舒適順暢的線上觀看體驗 v每天更新海量高清1080P電影免費在線觀看,陸劇線上看 , 追劇零時差。內容豐富多元,涵蓋劇集、電影、綜藝、動漫、娛樂等優質影視節目,簡單友好

Anonymous said...

Informational Article aboutapk

jerry said...

楓林網石悅安鑫, 王勁松,範明,嶽麗娜, 日劇線上看,美劇線上看,港劇線上看,Maplestage,8maple, 操作界面簡單友好,陸劇線上看 超,奚望,吳春怡,韓承羽,姬晨牧,任希鴻,馮玉璽,白慶琳