Results 1 to 11 of 11

Thread: Quick, and possibly stupid HTML question.

  1. #1

    Thread Starter
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Quick, and possibly stupid HTML question.

    I've got two frames. Well, three actually. When the user clicks a link in Frame A, I need Frame B to display one page and Frame C to display another. Anyone know how to do this? I can do it with Javascript, but frankly I'd rather not. Can you do this with straight HTML?

    ~Zero the Inestimable

  2. #2
    scoutt
    Guest
    well I don't think it is possible to open 2 pages at once with one link with pure html. you could however link to one page and then on that page have an onLoad() funtion in the body that loads the other page in the other frame.

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I agree with scoutt, you can't do it with straight HTML. You have to fire a javascript function on the link click that sets the href or both other frames.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4

    Thread Starter
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Hmph.

    I hate Javascript. Oh well, I guess it can't be avoided in this case...

    ~Zero the Inestimable

  5. #5
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    What's the problem with JavaScript?
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  6. #6

    Thread Starter
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Well...

    It slows things down, it reduces your site's compatability with browsers, and I always surf with it turned off... Stops those damn the popup ads.

    Here's round two: Can I control the margins in an HTML document? As a quick example, put one line of 12 point text on an otherwise blank page. Now put that page in a 15 pixel high frame. Theoretically, 15 pixels is more than enough to show a single line of 12 point text... But browsers are stupid and put a margin on the top of every page, and the top of the text falls exactly 2 pixels below the bottom edge of the frame...

    So, can you mess with margins in HTML?

    ~Zero the Inestimable

  7. #7
    scoutt
    Guest
    well I agree with the popup ads but javascripts is compatible with 99% of all browsers.

    and yes you can set the margins. in the body tag put "topmargin=0" I think,
    it also does right margin and left as well but I could be wrong.

  8. #8

    Thread Starter
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Extremely Groovy.

    Thanks.

    ~Zero the Inestimable

  9. #9
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    topmargin=0 is IE. Netscape would use marginheight=0. I'm not sure if either has been added to the HTML standards yet.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  10. #10
    scoutt
    Guest
    thanks Josh, I couldn't remember that one.

  11. #11
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    Originally posted by JoshT
    topmargin=0 is IE. Netscape would use marginheight=0. I'm not sure if either has been added to the HTML standards yet.
    The only standard way to do it is to use the BODY element in css, and set the padding to 0.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

Posting Permissions

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



Click Here to Expand Forum to Full Width