Sent by Merkey, Brett on 8 February 2002 16:04
|
| The problem is not /setting/ style properties, it's
| /reading/ ones that
| have been set in external style sheets or style elements.
Is this a Netscape 6 problem? IE has no problem whatsoever
with controlling, testing, comparing style properties and
values in external stylesheets.
I just created and tested this below. The style in the
stylesheet was width:400px. The scripted button retrieves
and changes the width no problem.
Brett
______________________________________________
<html>
<head>
<title>Untitled</title>
<LINK rel="stylesheet" href="aaatest.css" type="text/css">
</head>
<body>
<div id="testing">
Haec disserens qua de re agatur et in quo causa consistat non videt. Non
enim si alii ad alia propensiores sunt propter causas naturales et
antecedentes, idciro etiam nostrarum voluntatum atque appetitionum sunt
causae naturales at antecedentes; nam nihil esset in nostra potestate si res
ita se haberet.
</div>
<button onClick="document.getElementById('testing').style.width =
'200px';">Change Width</button>
</body>
</html>