Riku
Programmer
- Sep 2, 2001
- 119
Here is code how to have only one MAIN FRAME PAGE and
have the page to set its frame pages dynamically acording to paramethers included in hyperlink.
Hyperlink:
(Hyperlink does not exist)
This is the http code.
<%@ Language=VBScript %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<%
' ************ DEFINING BANNER FRAME PAGE *****
if not request("bannerframepage"
= "" then
bannerframepage= request("bannerframepage"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
else
bannerframepage= "include/header_yellow_eng.asp"
end if
' ************ DEFINING LEFT FRAME PAGE *******
if not request("leftframepage"
= "" then
leftframepage = request("leftframepage"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
else
leftframepage = "left_frame_support.asp"
end if
' ************ DEFINING MAIN FRAME PAGE *******
if not request("mainframepage"
= "" then
mainframepage = request("mainframepage"
else
mainframepage = "support/getting_book_files.asp"
end if
%>
<frameset framespacing="0" rows="98,391*" border="0" frameborder="0">
<frame name="banner" scrolling="no" target="contents" src="<%=bannerframepage%>" marginwidth="0" marginheight="0">
<frameset cols="138,*">
<frame name="contents" target="main" src="<%=leftframepage%>" scrolling="no" noresize marginwidth="0" marginheight="0">
<frame name="main" src="<%=mainframepage%>" scrolling="auto" noresize target="_self">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html> F: Riku Tuominen
riku.tuominen@benchmarking.fi
have the page to set its frame pages dynamically acording to paramethers included in hyperlink.
Hyperlink:
(Hyperlink does not exist)
This is the http code.
<%@ Language=VBScript %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<%
' ************ DEFINING BANNER FRAME PAGE *****
if not request("bannerframepage"
bannerframepage= request("bannerframepage"
else
bannerframepage= "include/header_yellow_eng.asp"
end if
' ************ DEFINING LEFT FRAME PAGE *******
if not request("leftframepage"
leftframepage = request("leftframepage"
else
leftframepage = "left_frame_support.asp"
end if
' ************ DEFINING MAIN FRAME PAGE *******
if not request("mainframepage"
mainframepage = request("mainframepage"
else
mainframepage = "support/getting_book_files.asp"
end if
%>
<frameset framespacing="0" rows="98,391*" border="0" frameborder="0">
<frame name="banner" scrolling="no" target="contents" src="<%=bannerframepage%>" marginwidth="0" marginheight="0">
<frameset cols="138,*">
<frame name="contents" target="main" src="<%=leftframepage%>" scrolling="no" noresize marginwidth="0" marginheight="0">
<frame name="main" src="<%=mainframepage%>" scrolling="auto" noresize target="_self">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html> F: Riku Tuominen
riku.tuominen@benchmarking.fi