Java Script

Hi All,
Can any one give me the simple solution. I want to set background for view with image, and i tried with the java script of background-image:url(""); but which is not reflecting.

Thanks,

Did you ever solve this?