Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: The Good Frameset |
| From: | Sean T. Robertson |
| Date: | Mon, 1 Jun 1998 19:09:08 +0100 |
I am curious to know why you want to do that anyway? If you must use
frames, the best way to do it would be to use javascript to write a different
framset for each browser. This example uses js to load a frameset with
different pages for each browser(the "main" frame contains browser
specific DHTML):
</HEAD><script language="Javascript">
<!--frameSet1="<frameset rows='1*,50' cols='*' frameborder='0' border='0' framespacing='0' bordercolor='#000000'><frame src='index_1.html' name='main' noresize scrolling='AUTO' marginwidth='0' marginheight='0'><frame src='footer.html' name='footer' marginwidth='0' marginheight='0' noresize scrolling='NO'></frameset>";
frameSet2="<frameset rows='1*,50' cols='*' frameborder='0' border='0' framespacing='0' bordercolor='#000000'><frame src='index_2.html' name='main' noresize scrolling='AUTO' marginwidth='0' marginheight='0'><frame src='footer.html' name='footer' marginwidth='0' marginheight='0' noresize scrolling='NO'></frameset>";
frameSet3="<frameset rows='1*,50' cols='*' frameborder='0' border='0' framespacing='0' bordercolor='#000000'><frame src='index_3.html' name='main' noresize scrolling='AUTO' marginwidth='0' marginheight='0'><frame src='footer.html' name='footer' marginwidth='0' marginheight='0' noresize scrolling='NO'></frameset>";
{version = parseFloat(navigator.appVersion);
if (navigator.appName.indexOf('Netscape') != -1) {
if (version >= 4.0) {document.write(frameSet2)} else {document.write(frameSet1)}}
else if (navigator.appName.indexOf('Microsoft') != -1) {
if (version >= 4.0) {document.write(frameSet3)} else {document.write(frameSet1)}}
else {document.write(frameSet1)};
}
//!-->
</script>
You can view
this script in action at http://www.zapinc.com. All you need
to do to use this script is change the frameset tags in the frameSet1="", frameSet2="", and frameSet3="" variables to match the frames you
want to use for each browser. frameSet2 is for
NN4, frameSet3 is for IE4, and frameSet1 is for all other browsers. If you just want
it to detect IE, and NN, not IE4 and NN4, remove the parts that say "if (version >= 4.0) {" and "} else
{document.write(frameSet1)}".
-----Original Message-----
From: DGL <davidl
nwinfo [dot] net>
To: 'flasher
shocker [dot] com'">'flasher
shocker [dot] com' <flasher
shocker [dot] com>
Date: Monday, June 01, 1998 1:50 PM
Subject: RE: The Good Frameset
>Nope. Netscape and IE handle frames
differently. Last time I tried From: DGL <davidl
To: 'flasher
Date: Monday, June 01, 1998 1:50 PM
Subject: RE: The Good Frameset
>anyway, I learned it was impossible to join (with no space) two pics in two
>different frames so it looks like one pic, in both browsers simultaneously.
> In other words, you could do it in NS or IE, but then it won't look right
>in the other one.
>
>>dgl
>
>
>
>-----Original Message-----
>From: Andrew Vester [andrewv
>Sent: Monday, June 01, 1998 2:00 AM
>To: 'flasher
>Subject: The Good Frameset
>
>Hello everyone, we have a frameset that looks great in IE but terrible
>in Netscape.
>We have to give exact figures because we have broken an image up into
>top, left, bottom, right and centre pieces with all the frames having a
>separate piece of a picture frame so in order for the picture to make
>sense, the browser has to align everything correctly.
>When a user clicks a button we use Javascript to spawn a new window
>which contains this frameset.
>Has anyone out there got some brilliant HTML that will deliver what we
>want in both NS and IE?
>
>Thanks for your time.
>Cheers
>Andrew
>
>------------------------------------------------------------------------
>To UNSUBSCRIBE send: unsubscribe flasher in the body of an
>email to list-manager
>N.B. Email address must be the same as the one you used to subscribe.
>For info on digest mode send: info flasher to list-manager
>
>
>------------------------------------------------------------------------
>To UNSUBSCRIBE send: unsubscribe flasher in the body of an
>email to list-manager
>N.B. Email address must be the same as the one you used to subscribe.
>For info on digest mode send: info flasher to list-manager
>
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

