|
-
Mar 26th, 2003, 06:58 AM
#1
Thread Starter
Junior Member
Frames
Hi all,
I have a website with left, top and main frames. Obviously only the "main" frame changes. The left frame is navigation buttons and the top frame just an image. When a button is clicked on the left frame, the new page is loaded in the main frame.
Now, I want to send a link to a specific page to a friend via email. The page name (for arguments sake) is "ourphotos.html". The website name is www.myalbum.com. Now if I send the link as
www.myalbum.com/ourphotos.html he wont see the left and top frames - only the page called ourphotos.html.
How do I specify the link (or change the code within my pages) so that I can point to a specific page, but all frames will also still be loaded.
Thx,
JJ
-
Mar 26th, 2003, 08:04 AM
#2
Addicted Member
You can use an ASP page.
e.g. http://localhost/myframe.asp?link2=h...ourphotos.html
VB Code:
<%@ Language=VBScript%>
<%option explicit
dim strContentLink
if Request.QueryString("Link2")="" then
strContentLink = "default.asp"
else
strContentLink = Request.QueryString("Link2")
end if
%>
<frameset cols="10,10,80" scrolling="no">
<frame name="menu2" src="menu2.asp">
<frame name="menu1" src="menu1.htm">
<frame name="main" src="<%=strContentLink%>">
</FRAMESET>
-
Apr 2nd, 2003, 03:44 AM
#3
Thread Starter
Junior Member
Hi Doemaar,
Thanks for your reply. I however do not want to use vbscript or asp. Is there not another way of doing this??
Otherwise it seems like I will have to get rid of my frames!!?? The actual reason why I need to be able to "specify" the page,is for use in search engines. I dont always want the person finding us on the search engine to go to the homepage - depending on which keywords he/she uses, I want to direct them to the specific page.
Any suggestions? Surely there must be another way - without vbs or asp
Thanks,
JJ
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
|