2007-12-21 06:36:38 +03:00
|
|
|
<!DOCTYPE html>
|
2007-12-21 07:35:21 +03:00
|
|
|
<html>
|
2007-12-21 06:36:38 +03:00
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
span {color: red}
|
|
|
|
label {color: red}
|
|
|
|
input[disabled]:disabled ~ span {color: green}
|
|
|
|
input[disabled]:disabled + label {color: green}
|
|
|
|
input { display: none; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body onload='var i1 = document.getElementById("ffximage");
|
|
|
|
i1.setAttribute("disabled", "disabled");'>
|
|
|
|
<input type="image" id="ffximage"/>
|
|
|
|
<label for="ffximage">Should be no red</label>
|
|
|
|
<br>
|
|
|
|
<span>Should be no red</span>
|
|
|
|
</body>
|
|
|
|
</html
|