You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CSS Buttons
Hi!
CSS-Buttons is really a great CSS button 'framework'. However I am a
little disappointed that there is no way described to properly design
the button in 'disabled' state.
Is there anything planned regarding that?
Best regards
Carsten
saxan rappai
unread,
Jan 2, 2009, 12:46:25 PM1/2/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cssbu...@googlegroups.com
You could do it with javascript
This script just changes the CSS Class name onclick
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.disabled {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #000000;
background-color: #666666;
border: 1px solid #000000;
}
.enabled {
font-family: "Times New Roman", Times, serif;
font-size: 12px;
font-weight: bold;
color: #0000FF;
background-color: #CCCCCC;
border: 1px solid #0000FF;
}
-->
</style>
</head>
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cssbu...@googlegroups.com
This script can loop through the buttons, check which are disabled and change their class.
In this example it is activated by the "Click Me" button, but it could be done when the page is loaded.
<script>
function checkStatus(){
for (x=0; x < document.form1.elements.length; x++){
if(document.form1.elements[x].disabled){
document.form1.elements[x].className='disabled';
}
}
}
</script>