Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Overriding StyleSheet called by PHP?

  1. #1
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Unhappy Overriding StyleSheet called by PHP?

    Hi,
    I have a site I'm building where I'm strictly the middle-man. The layout of the site is mine, but the content is in an IFRAME which is written via PHP. Now, my site BG is Black, but the BG of this IFRAME is white... Is there anyway to override the stylesheet that the php is calling in the IFRAME to change the background color?
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I do not think that this is possible
    But can we please see a link to your site?
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If the two pages are on the same domain, javascript can alter the style of the document in the iframe. Or - better still with PHP, instead of an iframe, you could include the external file. If you do that, it can be made to follow the style on the 'top' page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Smile not on my server

    sorry it took so long to reply... i changed my email on here and had to wait for the confirmation email to be able to post anything... Anway, the IFRAME isn't hosted on my site. It's a bunch of website templates for sale through some big corporate entity and I get a percentage... Here's the link so you can take a look, it's all pretty new, I just opened it up yesterday.

    http://www.m-pulsedesigns.com

  5. #5
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Well, I think that you could use JS in the iframe src, that would make the bg black.
    Jeremy | jfein.net

  6. #6
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default javascript?

    How exactly would I manage that? I've never seen a script that would change a color specified by an external stylesheet... any ideas?

  7. #7
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Well, I know how you could do it, but I don't know how you would also have the src that website. Why not copy all of there source on there website and choose one? Its not that much different.
    Jeremy | jfein.net

  8. The Following User Says Thank You to Nile For This Useful Post:

    TheJoshMan (02-22-2008)

  9. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There's not a lot you can do with a page from another domain, nothing in fact if the server on that domain, or yours is configured to prevent it. However, there are many variables in the query string for that URL that allow you to change the text displayed, perhaps there are others available that would change the background and/or foreground colors. Check the documentation and/or forums of the host who provides this content for more information.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. The Following User Says Thank You to jscheuer1 For This Useful Post:

    TheJoshMan (02-22-2008)

  11. #9
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    thank you both for the info... I'll be sure to check out their fAQ and such, maybe I can find something there.

  12. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Why not just view there source and do it like that? Then you can make your base, there website. Right? It'd be easier...
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •