The Little Guy Posted July 19, 2010 Share Posted July 19, 2010 When this code runs, why doesn't it set the background image for the body? document.getElementsByTagName('body')[0].style.backgroundImage = '/images/bg2.jpg'; Link to comment https://forums.phpfreaks.com/topic/208220-background-doesnt-get-set/ Share on other sites More sharing options...
The Little Guy Posted July 19, 2010 Author Share Posted July 19, 2010 ahh... Got it, forgot url() 'url('+speed+')'; Link to comment https://forums.phpfreaks.com/topic/208220-background-doesnt-get-set/#findComment-1088330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.