This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > March 2006 > css swap from P7 - not toggling
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
css swap from P7 - not toggling
|
|
| Alejandro 2006-03-28, 6:29 pm |
| I added a switch of css to my page, I figured it out and now it works fine,
only I have 'toggle' selected but when I click the checkbox again it won't
toggle and set it back the way it was before.
This is my code, you'll notice I am disabling some form elements as well.
<input name="current" type="checkbox" id="current"
onFocus="mark(this,'#C2D5EB','#000000')"
onBlur="mark(this,'#FFFFFF','#000000')"
onClick="disableme(document.AddMarriage.current,document.AddMarriage.DateofTermination);disableme(document.AddMarriage.current,document.AddMarriage.Terminationcity);disableme(document.AddMarriage.current,document.AddMarriage.Terminationstate);disableme(do
cument.AddMarriage.current,document.AddMarriage.Terminationcntry);P7_swapClass(1,'Terminationcntry','bodytextdisable','bodytextdisabled','input')"
value="1">
Am I missing something ?
Logic is; This code is applied to a checkbox, when checked it disables 4
form elements and switches their css style to have a grey background, when
user unchecks it should go back to normal, the problem is that it is not
doing the last part and it remains with the grey background, not going back
to the initial css.
Help is appreciated.
Alejandro
| |
| Murray *ACE* 2006-03-28, 6:29 pm |
| Why not post this on the PVII support forums?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Alejandro" <arkark2004@hotmail.com> wrote in message
news:e0aicp$7jl$1@forums.macromedia.com...
>I added a switch of css to my page, I figured it out and now it works fine,
>only I have 'toggle' selected but when I click the checkbox again it won't
>toggle and set it back the way it was before.
>
> This is my code, you'll notice I am disabling some form elements as well.
>
> <input name="current" type="checkbox" id="current"
> onFocus="mark(this,'#C2D5EB','#000000')"
> onBlur="mark(this,'#FFFFFF','#000000')"
> onClick="disableme(document.AddMarriage.current,document.AddMarriage.DateofTermination);disableme(document.AddMarriage.current,document.AddMarriage.Terminationcity);disableme(document.AddMarriage.current,document.AddMarriage.Terminationstate);disableme(
document.AddMarriage.current,document.AddMarriage.Terminationcntry);P7_swapClass(1,'Terminationcntry','bodytextdisable','bodytextdisabled','input')"
> value="1">
>
> Am I missing something ?
>
> Logic is; This code is applied to a checkbox, when checked it disables 4
> form elements and switches their css style to have a grey background, when
> user unchecks it should go back to normal, the problem is that it is not
> doing the last part and it remains with the grey background, not going
> back to the initial css.
>
> Help is appreciated.
>
> Alejandro
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|