View Full Version : Changing url

12-19-2005, 07:17 AM
I am new at this and my first efforts are not working as I am not referencing the to the image properly,
If for example, I want to use the image background watermark and it say to change the graphi, how do I referance it?
If the image was in my folder and say was flowers.jpj .could someone please write this code as in the example below? I do not know if I take out the brackets, qoutation marks.. nothing is working. :( , if I have to add the file path how do I do that?
Thank you :(

.body.style.background="url('notebook.jpg') white center no-repeat fixed"

12-19-2005, 07:58 AM
Plain syntax for image in the same folder as the page:

document.body.style.background="url('flowers.jpg') white center no-repeat fixed"

With a relative path (image is one level off of the page's in a folder called 'images'):

document.body.style.background="url('images/flowers.jpg') white center no-repeat fixed"

With absolute path (image is one level off of the root of the domain in a folder called 'images'):

document.body.style.background="url('http://www.mydomain.com/images/flowers.jpg') white center no-repeat fixed"

12-19-2005, 08:57 AM
Thank you!
I have flowers...... :)