SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    chicago
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I link a style sheet, or just change colors in an iframe ? (PHP)

    Hello all,

    Can you guys advise me on the best way to accomplish this? I'm having a hard time with it. Here's the code for the iframe (it's in a nuke block):

    <!-- This adds the iframe -->

    var iframecode='<center><iframe id=\"external\" style=\"width:$width;height:$height\" src=\"$Server/blocks/$block_file?sport=$Default_Sport\" scrolling=\"auto\" border=0 marginwidth=\"1\" marginheight=\"1\" align=\"center\" frameborder=\"0\"></iframe><font face=arial size=1></center>'

    if (displaymode==0)
    document.write(iframecode)

    function gone(){
    var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
    if (document.getElementById&&displaymode==0)
    document.getElementById(\"external\").src=selectedurl
    else if (document.all&&displaymode==0)
    document.all.external.src=selectedurl
    else{
    if (!window.win2||win2.closed)
    win2=window.open(selectedurl)
    //else if win2 already exists
    else{
    win2.location=selectedurl

    win2.focus()
    }
    }
    }
    </script>
    ";


    Here's the link:

    <LINK REL="StyleSheet" HREF="themes/ForHer/style/style.css" TYPE="text/css">

    Everytime I try to add it, I get a blank iframe. Let me know if I've given all the info needed. Please help.

    Thanks !
    Last edited by broadbandone; Feb 4, 2005 at 08:31.

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    chicago
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone help me ? In quite a bind.

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    chicago
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay, how about this... is there a way to just change the colors for the background and text in the iframe, without linking to the style sheet ? maybe placing code after the style= ? if so, please let me know how.

    thanks.

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    chicago
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seriously. anybody. I'll take suggestions, I just really need to change the colors in this iframe.

  5. #5
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    chicago
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just checking to see if anyone might know yet...

  6. #6
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I have been using another forum :- http://forums.devarticles.com in their php section and found them alittle more responsive. I don't know whether I am allowed to recommend other forums like this, but I often post questions and get no replys so I can relate to your situation. I asked a question on devarticles regarding iframes and got some replies.
    Regards

  7. #7
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Lviv, Ukraine
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    LINK REL="StyleSheet" HREF="http://yourSite/themes/ForHer/style/style.css" TYPE="text/css">

  8. #8
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Lviv, Ukraine
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe if You use full path it?s help you.


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
  •