PDA

View Full Version : lIL Help With your style switcher.



Nyshalynn
05-11-2008, 10:00 PM
1) Script Title:CSS style sheet .

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

3) Describe problem: I'm having about 3 needless problems with this script.

a] when using Iframes , the script's css wont respond to the iframes page in fact the page turnes out unstyled.

b] I would like to create a text/image/other link on another site that responds to this script by accessing another theme on my site when clicked .


c] The script keeps calling previous div settingings (image postions etc.). When I switch to the next sheet unless my image div sits in the exact same place as the 1st. one.


(ex.

HTML<div id="image"></div>

Css1#IMAGE {
display: block;
width: 980px;
height: 700px;
background-image: url(981083_23841581222.jpg);
background-position:%100;
margin: auto;
background-repeat: repeat-N;

}



Css2

#IMAGE {
filter:alpha(opacity=50);
-moz-opacity:.30;
opacity:.30;
top: 0px;
left: 500px;
width: 600px;
height: 700px;
background-image: url(2.jpg);
background-position:0px;
margin:auto;
background-repeat:N;
}


Help A.S.A.P.
Ablige

Nyshalynn:cool:

Nile
05-12-2008, 03:02 AM
#1)
Why are you using frames? Also, style doesn't affect the frames, you'd have to have the same thing inside the frame, or have the link targeting the frame to change the page. There's no way to change the frame style. Also if you can use PHP, you can use file_get_contents, instead of an iframe, and that'd change the frame.
#2)
You want the link to open in a new window/same window, then when that page loads, the style will be whatever you clicked on the previous site?
#3)
Can't help you with that. :)

Hope this Helps,
Nile