woody79 Posted August 5, 2007 Share Posted August 5, 2007 function weddingser() { document.getElementById('bar').style.backgroundImage = "url(images/logo20.png)"; } Anyone know why the image does not change Quote Link to comment https://forums.phpfreaks.com/topic/63409-solved-backgroundimage/ Share on other sites More sharing options...
emehrkay Posted August 5, 2007 Share Posted August 5, 2007 your code seems correct. are you sure that is the right path? Quote Link to comment https://forums.phpfreaks.com/topic/63409-solved-backgroundimage/#findComment-316205 Share on other sites More sharing options...
bibby Posted August 5, 2007 Share Posted August 5, 2007 nah, don't code it like it were a css rule, make it path instead. perhaps document.getElementById('bar').style.backgroundImage = 'images/logo20.png'; Quote Link to comment https://forums.phpfreaks.com/topic/63409-solved-backgroundimage/#findComment-316240 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.