RE: [WSG] Modify class (hope to bring closure ;-)

2003-11-26 Thread Taco Fleur
display == 'none') ? 'inline' : 'none'; return; } } } replaceRule( document.styleSheets[0], '.national' ); -Original Message- From: >>> Vaska Design [mailto:[EMAIL PROTECTED] Sent: Wednesday, 26 November 2003 8:03 AM To:

RE: [WSG] Modify class

2003-11-26 Thread Taco Fleur
Here is the final result, it works like a dream, much quicker than any other hide/display script.. Just thought I'd share it with you... function fnSwitch( objStyle, className ) { var r = objStyle.rules for ( var i = 0; i < r.length; i++ ) { if( r[i].selec

Re: [WSG] Modify class (hope to bring closure ;-)

2003-11-25 Thread >>> Vaska Design
YOUR LIST IN HERE... #masterdiv just has some margin information...nothing special... good luck...vaska > It's only for one object, ie. the object with an id assigned. > > -Original Message- > From: Cade Whitbourn [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 25 Novemb

RE: [WSG] Modify class (hope to bring closure ;-)

2003-11-24 Thread Taco Fleur
Nope that won't help, thanks anyway.. It's only for one object, ie. the object with an id assigned. -Original Message- From: Cade Whitbourn [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 November 2003 2:44 PM To: [EMAIL PROTECTED] Subject: Re: [WSG] Modify class (hope to bri

Re: [WSG] Modify class (hope to bring closure ;-)

2003-11-24 Thread Cade Whitbourn
Not sure if this will help, but it's a solution I copied from Zeldman quite a while back... function toggle( targetId ){ if (document.getElementById){ target = document.getElementById( targetId ); if (target.style.display == "none"){ target.style.display = ""; } else {

RE: [WSG] Modify class

2003-11-18 Thread Taco Fleur
OK after your pointers I got the brain in gear (and found stuff I never thought was possible) I ended up writing the following http://www.w3.org/TR/html4/loose.dtd";> Contacts System - Tourism Queensland function replaceRule( objStyle, className, newClassName ) { var r = objStyle

RE: [WSG] Modify class

2003-11-18 Thread Mark Stanton
Hey Taco A few similar things that we have done can be found at: http://www.collex.com.au/ - click the down arrow on the left nav http://www.homepartners.com.au/application-form.cfm - select yes for " Is this a dual application?" and also the "view terms" link at the bottom of the form. Some ot

RE: [WSG] Modify class

2003-11-18 Thread Taco Fleur
: [WSG] Modify class   Hi Taco,   That sounded like a challenge, so I came up with this: http://lindsay.f2o.org/experiments/css/dynamic_class.html   Works in FB 0.6.1, IE 4.01, 5.01, 5.5 & 6 on WinXP   It is a bit kludgy in that you have to specify indexes for

RE: [WSG] Modify class

2003-11-18 Thread Taco Fleur
To: [EMAIL PROTECTED] Subject: Re: [WSG] Modify class Hi Taco, Off the top of my head (and untested) I'd try something like: .help { display:none; font-weight: bold; font-size: 14px; color: red; cursor: help; } ... Regards, Ben Taco Fleur wrote: > Is it poss

RE: [WSG] Modify class

2003-11-18 Thread Lindsay Evans
Title: Modify class   Hi Taco,   That sounded like a challenge, so I came up with this: http://lindsay.f2o.org/experiments/css/dynamic_class.html   Works in FB 0.6.1, IE 4.01, 5.01, 5.5 & 6 on WinXP   It is a bit kludgy in that you have to specify indexes for your stylesheet & CSS rule, but

Re: [WSG] Modify class

2003-11-18 Thread Ben Bishop
Hi Taco, Off the top of my head (and untested) I'd try something like: .help { display:none; font-weight: bold; font-size: 14px; color: red; cursor: help; } ... Regards, Ben Taco Fleur wrote: Is it possible to modify the attribuites of a CLASS dynamically? In other words, I