faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

103 of 145 people (71%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How Can I change style (visibility:show or hidden)

Apr 4th, 2008 21:04
ha mo, Herkamerker, Stas Saulin,


here's how you do it in IE and NN
in IE, do a 
Div id="layerName"
then with javascript you can simply say
    layerName.style.visibility = "hidden"; or "visible"
in NN it's a bit different - 
you do a
SPAN name="layerName"
then with your JS you say
    document.layerName.style.visibility = "hidden"; or "visible"
You can use navigator.appName to determine which layer to write to the 
browser and which javascript command to run
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com