Hello,
I have been searching for hours now all the way back to MX! And still haven't found a solution,
I want the image in my main content div to change (using different images) according to which buttons are checked in the check boxes. I believe i have to make them transparent and get them to show/ hide according the options used in the check boxes using unique ID's for my images.
Any pointers or tutorials, thanks. v much
Thanks for the reply ![]()
But i was hoping to do it without SSI (server side includes - not for you but other who see this post), mainly becuase i am learning everything else and that adds one more thing to learn to the list! ![]()
But the @import tag is a interesting - i will research that more and see if i can switch the image in a div that has its own class and reference the 'img src' for that div.
Thanks for putting me on the road - let's see where that ends up today.
If i find the answer i will report back how i did it.
Thanks again.
(i will also look at disjointed rollovers that are set according to the checkboxes or radio buttons).
Very interesting...
"The @import rule allows you to include external style sheets in your document. It is a way of creating a style sheet within your document, and then importing additional rules into the document."
"
You can also include an @import rule in a style sheet with styles:
<style type="text/css">
@import url("import3.css");
p { color : #f00; }
</style> " (http://webdesign.about.com/cs/css/qt/tipcssatimport.htm)
So i am thinking i can import a different style according to the 'button' selection. For example: If button 1 is checked, import style sheet 1, button is checked import style sheet 2; with each style sheet having a different image or idfferent positioning attributes.
Mission part 2: Anyone know how to direct a button selection to trigger an event - i.e. the @import?
Thanks.
[edit] there appears to be an issue about page load times and IE using @import: http://www.stevesouders.com/blog/2009/04/09/dont-use-import/ - still hunting
Message was edited by: nilojones
The live example below uses JavaScript and an array of background images. View source to see the code:
http://alt-web.com/bg-img.html
Nancy O.
North America
Europe, Middle East and Africa
Asia Pacific