Results 1 to 5 of 5

Thread: Javascript - Dynamic HTML

  1. #1

    Default Javascript - Dynamic HTML

    Hey I've been having some issues with a javascript code, or I think it may be just Dynamic HTML, which I think it basically the same thing. Anyways. I have been wondering how to display the scroll bar inside the iframe even when there's nothing to scroll (you know, it gets greyed out), if that's possible?

    Also, this isn't as important, but to get rid of the indent it has in Internet Explorer? It works fine in Firefox, which is what I use, but other people will be using IE. It's not such a big problem, it would just set a better mood for the site.

    Here's the code:

    Code:
    <img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif><img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif><img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif><img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif><img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif><img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif><img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif><img src=http://forums.eyesonff.com/images/smilies/lovesmile.gif> name="cwindow" style="border:0px solid black" width=150 height=150 src="doc.htm"></iframe>
    Edit: For some reason, love smilies are coming up, so go to this website to see what I'm talking about.

    http://dynamicdrive.com/dynamicindex8/miniwindow.htm


    "... and so I close, realizing that perhaps the ending has not yet been written."


  2. #2
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    &lt;div style="overflow: scroll; border: 5px white solid;width: 100px; height: 100px;">Testing.&lt;/div>

    <div style="overflow: scroll; border: 5px white solid;width: 100px; height: 100px;">Testing.</div>



    &lt;div style="overflow: auto; border: 5px white solid;width: 100px; height: 100px;">Teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesting.&lt;/div>

    <div style="overflow: auto; border: 5px white solid;width: 100px; height: 100px;">Teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesting.</div>



    &lt;div style="overflow: auto; border: 5px white solid;width: 100px; height: 100px;">Testing testing testing testing testing testing testing testing testing testing testing testing testing.&lt;/div>

    <div style="overflow: auto; border: 5px white solid;width: 100px; height: 100px;">Testing testing testing testing testing testing testing testing testing testing testing testing testing.</div>

  3. #3

    Default

    Thanks Unne.

    Just a few questions... Can I call another page to put into the frame insead of just writing text into it? Also with the first one, is there a way to get rid of the bottom scroll bar but keep the side one?


    "... and so I close, realizing that perhaps the ending has not yet been written."


  4. #4
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    That doesn't use iframes, it uses divs. One thing you can do is use server-side includes to include text into your page rather than iframes. iframes aren't supported by all browsers, for example, but SSI is, because it's server-side. Frames are generally evil.

    I don't know of any way to keep the side bar but not the bottom one. Either you can force it to have both, or have it auto-detect, or force it to have neither. That's all I know how to do with CSS.

  5. #5

    Default

    Hmm I guess, but I'm using it as the body of the webpage, so that the main layout doesn't exceed the browsers view. I can post up an example of it if you want.

    Also I haven't had any problems with iframes and it is supported by the main browsers (i.e. Firefox, IE, Netscape). I don't know what other browsers are the mainstream.

    Anyways thanks for the help, I might stick with iframes because I find it a bit better to load the pages in it, instead of loading the whole layout each page. And I can put in images in iframes.


    "... and so I close, realizing that perhaps the ending has not yet been written."


Posting Permissions

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