>         I've been asked to do a simple site for a local non-profit, and I
> want to use some basic CSS/Javascript to make the site look sharp. I
> have tons of reference sites; what I'm looking for is some good
> example code that I can ...er, *incorporate* into their site. I don't
> want super whiz-bang eye candy; just basic stuff like showing/hiding
> sections of a page, enlarging images, etc. Anyone have any favorite
> sources?

Hiding and showing is easy. Wrap your sections in DIV tags, give them
an ID, and do something like this on the javascript event you'd like
to flip it with:

var oDiv = document.getElementById("myDiv")
oDiv.style.display = ('none' == oDiv.style.display) ? 'inline' : 'none';


Note that the Javascript people spell "ID" wrong as "Id". That gets me
constantly, as I'm used to typing words and abbreviations spelled
correctly. Personally, I think it's crazy that they made a scripting
language case-sensitive... Sure senselessly slows development speed.


-- 
Derek


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to