Results 1 to 2 of 2

Thread: loading a doc within a doc with css

  1. #1
    Join Date
    Oct 2006
    Posts
    1

    loading a doc within a doc with css

    I have a website I'm working on:
    www.andydavis3d.com
    The basic model for the 3d gallery works ok.
    But it's way too slow.
    It's built using flash so my mate told me I needed to do it using CSS instead.
    Each model in the gallery would need to have it's own html page presumably.
    So how do I load an html page into an existing frame using CSS?

    I am aware of iframes, but they are nasty, what's the neat CSS way of doing it?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    HTML pages can be loaded with the Object tag. See
    http://www.wickham43.supanet.com/tut...scrollbar.html
    However, IE6 insists on putting a border around it which it seems impossible to get rid of. Also any links inside an object when clicked will open inside the object which probably won't be big enough, although this doesn't apply in your case.

    The alternatives are not CSS (not directly, anyway).
    Javascript
    or server side includes SSI such as PHP where a code in the HTML page results in the host server inserting code from another file before downloading (it would normally be just the code relevant to the image or whatever, not a whole HTML file. In other words you just cut a slice of code out of your current HTML and put it in a separate file and substitute PHP code to identify the place and other file). See PHP board on this website.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

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