Results 1 to 7 of 7

Thread: Easy beginner question!

  1. #1

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267

    Question Easy beginner question!

    Code:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <P>
    <TABLE cellSpacing=1 cellPadding=1 width="75%" border=1>
      <TR>
        <TD>
          <a href="http://www.vbforums.com">Link1</a><br>
          <a href="http://www.looknmeet.com/tmfboy">Link2</a>
        </TD>
        <TD>I want my links to open in this cell!!!!</TD>
      </TR>
    </TABLE>
    </P>
    
    </BODY>
    </HTML>
    I don't know how to navigate when using tables as a frameset! The code above uses 1 row and 2 coumns to keep it simple! I want to use de first cell as a navigation panel for the second cell! So if a user clicks a link in the first cell, only the information in the second cell should be refreshed!
    Sorry I'm just a newbie in this HTML stuff
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    You can't really do that I'm afraid, you to either use real frame or an iframe. And iframe is about the closest you'll get to what you want:

    Code:
    <iframe src="PAGE.html" width="90%" height="300" name="content">Sorry but your browser doesn't support iframes</iframe>

  3. #3

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267
    Hmmmmmmmmm I doubt that!
    I learned that I can't use frames because Netscape doesn't support that! Instead you should use tables for your webdesigning. But I was unable to target my links in that second cell!
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I don't think that's what they mean. What they mean is that you have to columns, one for links (usually on the left) and another for the main content. Something like:

    Code:
    <table>
      <tr>
        <td>LINKS GO HERE</td>
        <td>CONTENT GOES HERE</td>
      </tr>
    </table>
    Although you shouldn't really use tables as it's not very accessible. You should really use CSS and DIVs like so:

    Code:
    <head>
    <style type="text/css"><!--
      #menu {
        position:absolute;
        top:0px;
        left:0px;
        width:10em;
      }
      body {
        margin-left:11em;
      }
    --></style>
    </head>
    
    <body>
      <p>MAIN CONTENT GOES HERE</p>
    
      <div id="menu">
        LINKS GO HERE
      </div>
    </body>
    Plus the advantage of CSS is you can do so much with it, and add different style sheets to make your page look different without ever having to change your original page (if you use external style sheets that is).

    And Netscape can handle frames (from memory anyway), just not IFRAMEs in version 4 or earlier.

  5. #5

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267
    I believe there is a way using Javascript but I don't know how that works!
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Well you can do things using JavaScript, but I can't think of a way that makes it easy. Plus if you do that you'd probably be alienating just as many people as if you used frames. As long as you provide a <noframes></noframes> section underneath your last </frameset> you won't have any problems using frames as people without frames would see what you put in the noframes section (i.e. a link to a page that lists all pages on your site).

  7. #7

    Thread Starter
    Hyperactive Member Petergotchi's Avatar
    Join Date
    Jan 2002
    Location
    Dendermonde - Belgium
    Posts
    267

    Pls?

    I really need the javascript! All my code and layout is based on it! This code I got:

    Code:
    function Click(gekozenlink)
    {if (gekozenlink=='link1')
    {document.location="link1.html";}}
    --> This is the javascript function to open up the page

    Code:
    <A href="javascript:Click('link1')" name=link1><IMG height=18 src="images/button11.gif" width=130 border=0 name=link1></A>
    --> This is a simplified version of my link

    But this cod makes the WHOLE window refresh and I just want new content in my main cell!

    PLS... HHHHHEEEEELLLLLLPPPPPP
    Kind Regards,

    Pieter

    PS: If you found someone's answer helpful, please be so kind to rate that person.
    Thanks.

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