Swaydo
08-12-2008, 09:08 PM
Hey,
I'm currently working on a layout which allows the users to change the picture in the Logo, And also change the colour theme of the layout
So in my header i have two Divs ( example )
<Div Id="Banner1">
<Div Id="Text">
</Div>
</Div>
Now in each stylesheet ( changed by styleswitcher )
Banner1 Will have the same values.
But in text, the Background will be a different image depending on the color.
So with the text sorted, so it changes when the user wants.
I need the banner to be changeable
I want links like
Banner 1
Banner 2
so when the user clicks banner2 banner1 will change to banner2.
So i need a script that can change a certain divs name.
so on demand <Div Id="Banner1"> changes to <Div Id="Banner2">
Which will change the background image.
Now your probably thinking why dont i just make it a picture and change it.
Because i need it a background so i can stick the text over it.
So basically i just need a script that changes banner1 to banner2
But so that both divs comply to the stylesheet on the main page.
Also i need a way onload that the Banner div will randomly become either banner1, banner2, banner3 Etc.
Thanks in advance, if you need more explaning, or you can't work out what im trying to so, just say i'll help.
Alex.
I'm currently working on a layout which allows the users to change the picture in the Logo, And also change the colour theme of the layout
So in my header i have two Divs ( example )
<Div Id="Banner1">
<Div Id="Text">
</Div>
</Div>
Now in each stylesheet ( changed by styleswitcher )
Banner1 Will have the same values.
But in text, the Background will be a different image depending on the color.
So with the text sorted, so it changes when the user wants.
I need the banner to be changeable
I want links like
Banner 1
Banner 2
so when the user clicks banner2 banner1 will change to banner2.
So i need a script that can change a certain divs name.
so on demand <Div Id="Banner1"> changes to <Div Id="Banner2">
Which will change the background image.
Now your probably thinking why dont i just make it a picture and change it.
Because i need it a background so i can stick the text over it.
So basically i just need a script that changes banner1 to banner2
But so that both divs comply to the stylesheet on the main page.
Also i need a way onload that the Banner div will randomly become either banner1, banner2, banner3 Etc.
Thanks in advance, if you need more explaning, or you can't work out what im trying to so, just say i'll help.
Alex.