CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 7th, 2002, 08:23 PM
rookie rookie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 2 rookie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question CSS changes across IFRAMES

I am useing Paul Sowden's StyleSwitcher script(URL). But the problem is my site has an IFRAME in the middle that I load my different content pages into. I can't figure out how to make the style switch filter through to all that pages inside of that frame. If you respond to this please do it in as much detail and simple terms as possible, I am a Rookie after all.

Reply With Quote
  #2  
Old May 8th, 2002, 10:25 AM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
>I can't figure out how to make the style switch filter through to all that >pages inside of that frame

what do you mean filter through, if you want css to affect the pages you load in the iframe the css has to be contained within the page loaded or linked to it.

it may be possible to via javascript assign a style to a page in a frame/iframe but i have doubts.

a+
gar

Reply With Quote
  #3  
Old May 8th, 2002, 11:28 AM
rookie rookie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 2 rookie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yeah ... that's what i was wondering. The script also uses a cookie ... so maybe there is a way to make the pages that load into that frame pick up the cookie currently being used ... I don't know ... maybe ... eh ... need help. I've had those ideas ... just don't know hwo to do them thanks for the response.

Reply With Quote
  #4  
Old May 8th, 2002, 02:51 PM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
well thing is you've got quite a few different things to piece together to get this to work, the first thing i would ask is; is the page you load in the iframe one of your pages or a page from another site?

if the page is yours it should be easy enough, and you could do it by say passing a variable in the url to the page, then all the page has to do is load the style sheet according to the variable, this will mean that if you change style the iframe page will reload (ie it won't change instantly like in the url you posted) which is the way i would do it, the page changing instantly could do weird things to the page and/or not render correctly, its more sure by reloading the page fresh.


if the page is not yours but someone elses then this was where i was unsure cos you need to target the content of the iframe from the main page, here you really need to ask someone whos good in javascript (absolutely not me because its a lot more complex than the demo page which changes itself

a+
gar

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS changes across IFRAMES


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway