I'm trying to write a code that will use css to change the background of a page dependent on the page title. The image used for the background has the same title as the page. I was trying to use the document.write code to write a css tag that sayed
Can anyone help me with this?
Code:
<style>#content{background-image:url(images/{imagenamehere}.jpg);</style>
Comment