Results 1 to 3 of 3

Thread: Frames

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    17

    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

  2. #2
    Addicted Member
    Join Date
    Jul 2002
    Location
    Brussels, Belgium
    Posts
    139
    You can use an ASP page.
    e.g. http://localhost/myframe.asp?link2=h...ourphotos.html


    VB Code:
    1. <%@ Language=VBScript%>
    2. <%option explicit
    3.  
    4. dim strContentLink
    5. if Request.QueryString("Link2")="" then
    6.     strContentLink = "default.asp"
    7. else
    8.     strContentLink = Request.QueryString("Link2")
    9. end if
    10.  
    11. %>
    12. <frameset cols="10,10,80" scrolling="no">
    13.     <frame name="menu2" src="menu2.asp">
    14.     <frame name="menu1" src="menu1.htm">
    15.     <frame name="main" src="<%=strContentLink%>">
    16. </FRAMESET>

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    17
    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
  •  



Click Here to Expand Forum to Full Width