Results 1 to 4 of 4

Thread: Document-in-document script

  1. #1
    Join Date
    Apr 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Document-in-document script

    Script: Document-in-document script
    http://www.dynamicdrive.com/dynamici...docsindocs.htm

    My question is this: I want to use this script, but the area designated as the script has a white background. Is there any way that I could change the coding to allow the background of this to be transparent as to see the normal page's background?

    Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    That "script" is stupid, not very compatible, and completely pointless. Use an iframe. Set allowtransparency="true" on the iframe tag, for IE, set its background-color to transparent, and don't specify a background colour in the included page.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Or use a php include. Those are really easy to get used to even if you don't know php at all.
    They'll just grab source from another page, and drop it right into the spot where you put the command:

    <?php include("filename.ext"); ?>
    Only catch is that the page you're including into must end with ".php" and your host must have php enabled/installed.


    You also can't control width/height very well... but you could try using a table or something.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If he/she isn't using a server-side language, I suspect that he/she probably does not meet these requirements.
    Last edited by Twey; 04-11-2006 at 09:47 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •