Thread View: adobe.golive.windows
5 messages
5 total messages
Started by matthew_r_bradshaw
Sun, 08 Feb 2009 13:32
change background image
Author: matthew_r_bradshaw
Date: Sun, 08 Feb 2009 13:32
Date: Sun, 08 Feb 2009 13:32
2 lines
910 bytes
910 bytes
Hi, I am working on a site... www.goldenumber.co.uk/john_carter/ I would like to be able to let the visitor choose the background image. At the moment the image is an orange one but I would like to be able to change that by clicking one of the images on the left. Short of duplicating all the pages and changing all the links I can't think of a way. Any suggestions? Thanks, Matt.
Re: change background image
Author: Nate_Baldwin
Date: Mon, 09 Feb 2009 06:29
Date: Mon, 09 Feb 2009 06:29
3 lines
962 bytes
962 bytes
I don't have any specific recommendations, but you'd need to write or find a JavaScript that could switch out the background color or lined CSS file when a link (the image?) is clicked. Google something like "setting css styles with javascript" or similar, for instance: <http://www.alistapart.com/articles/alternate/> <http://www.thesitewizard.com/javascripts/change-style-sheets.shtml>
Re: change background image
Author: matthew_r_bradshaw
Date: Mon, 09 Feb 2009 09:53
Date: Mon, 09 Feb 2009 09:53
2 lines
681 bytes
681 bytes
That is great Nate! Thank you very much. I got the transparent image working by the way. Regards, Matt.
Re: change background image
Author: matthew_r_bradshaw
Date: Mon, 09 Feb 2009 11:36
Date: Mon, 09 Feb 2009 11:36
2 lines
1044 bytes
1044 bytes
Nate, I'm sorry to bug you... regarding <http://www.thesitewizard.com/javascripts/change-style-sheets.shtml> I have almost got it working. I am not quite clear where to put the javascript and what to call it. Do I save it as a .js file? I am also not quite clear how I would make a clickable image the trigger for changing the background. I have got it so that I can change the background image using the view page style function. Any help greatly appreciated! Matt.
Re: change background image
Author: matthew_r_bradshaw
Date: Mon, 09 Feb 2009 23:31
Date: Mon, 09 Feb 2009 23:31
3 lines
673 bytes
673 bytes
As you were. I seem to have worked it out by trial and error. Many thanks for your help. Matt.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads