1
2
3
4
5
<html><head><title>Frameset Example</title></head>
<frameset rows="50,50">
<frame src="/frameset.cgi/A" name="A">
<frame src="/frameset.cgi/B" name="B">
</frameset>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use CGI;
#use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser);
use Parse::HTTP::UserAgent;
my $page = new CGI;
my $cgi = new CGI;
#print $cgi->header( -type =>'text/html',
# -expires =>'+1h');
print $cgi->header(-nph=>1);
print $cgi->start_html( -dtd => '-//W3C//DTD HTML 4.01 Frameset//EN'
-title =>'Test',
);
print <<EOF;
<html>
<frameset rows="72,*" border="0" frameborder="no" id="frameset">
<frame name="top"
src="../frame_top.htm"
scrolling="no"
marginwidth="0"
marginheight="90"
noresize frameborder="no">
<frame name="bottom"
src="../sitemap.shtm"
marginwidth="0"
marginheight="0"
frameborder="no">
<noframes>
<body>
<p>
Diese Seite verwendet Frames. <br>
Frames werden von Ihrem Browser aber nicht unterstützt.
</p>
</body>
</noframes>
</frameset>
</html>
EOF
;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<html>
<frameset rows="72,*" border="0" frameborder="no" id="frameset">
<frame name="top"
src="../frame_top.htm"
scrolling="no"
marginwidth="0"
marginheight="90"
noresize frameborder="no">
<frame name="bottom"
src="../sitemap.shtm"
marginwidth="0"
marginheight="0"
frameborder="no">
<noframes>
<body>
<p>
Diese Seite verwendet Frames. <br>
Frames werden von Ihrem Browser aber nicht unterstützt.
</p>
</body>
</noframes>
</frameset>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset rows="72,*" border="0" frameborder="no" id="frameset">
<frame name="top" src="../frame_top.htm" scrolling="no" marginwidth="0" marginheight="90" noresize frameborder="no">
<frame name="bottom" src="../sitemap.shtm" marginwidth="0" marginheight="0" frameborder="no">
</frameset>
<noframes>
<p>keine Frames!</p>
</noframes>
</html>
-dtd => ["-//W3C//DTD HTML 4.01 Frameset//EN", "http://www.w3.org/TR/html4/frameset.dtd" ]
QuoteUnd mit CGI lässt sich kein gültiges HTML für Framesets mit start_html erzeugen.
-dtd => ["-//W3C//DTD HTML 4.01 Frameset//EN", "http://www.w3.org/TR/html4/frameset.dtd" ]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
print <<HTML; <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <frameset rows="72,*" border="0" frameborder="no" id="frameset"> <frame name="top" src="../frame_top.htm" scrolling="no" marginwidth="0" marginheight="90" noresize frameborder="no"> <frame name="bottom" src="../sitemap.shtm" marginwidth="0" marginheight="0" frameborder="no"> <noframes> <body> <p> Diese Seite verwendet Frames. <br> Frames werden von Ihrem Browser aber nicht unterstützt. </p> </body> </noframes> </frameset> HTML
2012-05-23T06:33:37 ChKrausseWas ist besser alles was man will direkt mit print ausgeben?