View Single Post
  #2   Spotlight this post!  
Unread 30-01-2004, 11:38
jonathan lall's Avatar
jonathan lall jonathan lall is offline
Registered User
FRC #2505 (The Electric Sheep; FRC #0188 alumnus)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Toronto, Canada
Posts: 547
jonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond repute
Send a message via MSN to jonathan lall
Re: Help with sidebar...

Well the link is broken right now so I can't see the site, but I surmise that you are probably using frames and the side frame (let's call it sidebar since I don't know what it's actually called) is acting like a normal HTML page; links send that same page to whereever they point. I haven't used frames in a while, but, assuming the frameset file (the index) gives each frame an id or name attribute like this
Code:
   <frameset rows="400,200" cols="400,400">
   
   <frame src="sidebar.html" frameborder="0" scrolling="no" noresize="noresize" id="sidebar" />
   <frame src="main.html" frameborder="0" noresize="noresize" id="main" />
    <noframes>
   
     <body>
 	<p>This is a framed page, but your (pitiful) browser doesn't support frames, Get Mozilla!</p>
     </body>
   
    </noframes>
   </frameset>
you can make your links apply to another frame if you use the target attribute in each of your needed anchors of the sidebar file. Or you could use the <base> tag to define the default target of your links.
Code:
 <base target="main" />
  </head>
  <body>
Since the id of your main frame is so named in the frameset file, all you have to do is put it in a target attribute and this will cause all links in sidebar without a target attribute that says otherwise to point to the main frame.
__________________


Last edited by jonathan lall : 30-01-2004 at 11:41. Reason: can't spell...