View Full Version : Script - Style Sheet Switcher Images

05-20-2009, 02:12 PM
1) Script Title: Style Sheet Switcher

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm

3) Describe problem: I require to change the image in the header section of my site dependent on which style is chosen the text is currently pink but I have enabled the blue below to show the two different styles.
Where do I put the code for this.

I have a line in the header file as follows

<img width="700" height="50" align="middle" id="prrr-header-img" />

and I think I need the following line in the script.

document.getElementById('prrr-header-img').src = '/newsite/images/prrr/prrr_words_'+title+'.png';

web site is www.prrr.org/newsite