<body>
<div id="foo" style="width:100px;height:100px;background-color:green"></div>
<script>
var f = document.getElementById('foo');
f.style.cssFloat = 'left';
with (f.style) {
  cssFloat = 'right';
}
</script>
</body>
