I hope my topic didn't confuse people. But I'm wondering if there's a way to change the back ground image(not color)dynamically when a button is clicked? Also, can it be target specific? Thanks.
Yes, you can change basically anything you like, so long s you can access it via JavaScript- a function which accsses like:
function changeBg(){
elementName.style.backgroundImage = "url('newImageURL')"
}
Just have to make sure to use the whole thing including the url part and brackets - really you are just inserting a new value after the : in the style defintion , so you must include everything, it will not understand just an URL by itself.
b2 - benbiddington@surf4nix.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.