|
-
Aug 15th, 2001, 01:59 PM
#1
Thread Starter
Lively Member
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
-
Aug 15th, 2001, 02:31 PM
#2
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.
-
Aug 15th, 2001, 03:28 PM
#3
Black Cat
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.
-
Aug 15th, 2001, 04:10 PM
#4
Thread Starter
Lively Member
Hmph.
I hate Javascript. Oh well, I guess it can't be avoided in this case...
~Zero the Inestimable
-
Aug 15th, 2001, 05:13 PM
#5
Frenzied Member
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.
-
Aug 15th, 2001, 06:17 PM
#6
Thread Starter
Lively Member
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
-
Aug 15th, 2001, 06:42 PM
#7
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.
-
Aug 15th, 2001, 07:44 PM
#8
Thread Starter
Lively Member
Extremely Groovy.
Thanks.
~Zero the Inestimable
-
Aug 16th, 2001, 07:00 AM
#9
Black Cat
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.
-
Aug 16th, 2001, 10:41 AM
#10
thanks Josh, I couldn't remember that one.
-
Aug 16th, 2001, 12:27 PM
#11
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|