'styleFloat' Example
<html> <body> <img id="myImg1" src="http://www.java2s.com/style/logo.png" border="0" style="float:left"> <p style="font-family:verdana; width=200; cursor:hand"> some text.<br> www.java2s.com </p> <button onclick="myImg1.style.styleFloat='right'">Change float to right</button> </body> </html>