[thelist] javascript - changing css with javascript

Dru and Cindy Sellers dru at zetachi.org
Sun Sep 22 23:41:01 CDT 2002


Can anyone help me with changing css styles through javascript? my current
iteration of my thoughts is the following:

var on = false
function cssMenu(obj) { //v0.1 by Dru Sellers
	if (on <> true) {
		obj.style.display = block
		on = true
	} else {
		obj.style.display = none
		on = false
	}
}

now i know i have done something very ineptly i am sure but any links to
javascript references are helpfull. Especially ones showing how to target
specific elements/objects(?).

Thanks again,

Dru
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/02




More information about the thelist mailing list