JS 双击事件

<div ondblclick="run(this)" style="width:200px;height:200px;background:#234567"> </div>
<script type="text/javascript">
function run(obj)
{
    obj.style.float = 'right';
}
</script>