how to create tabs
i want to create 4 tabs on my web page.
each of these tabs when clicked will result in displaying contents in two frames.
this means that one click should fire two frames.
Also, the tabs should be right aligned.
[224 byte] By [
alok_s100] at [2007-11-20 4:32:49]

# 1 Re: how to create tabs
I want to create 4 tabs on my web page. Tabs are contained in anchors <a...></a>.On this page, you can see items looking like tabs: "Thread Tools", "Search this Thread", "Rate Thread", ...
They are coded with:
<table>
<tr>
<td>
<a href=....>Thread Tools</a>
</td>
<td>
<a href=....>Search this Thread</a>
</td>
<td>
<a href=....>Rate Thread</a>
</td>
</tr>
</table>A table is used for the position of the labels, but you can use floating <div>...</div> if you prefer.
displaying contents in two framesWhat kind of frames? iframes? frames? windows? Read a tutorial on frames.
should fire two framesWhen the user clicks on a tab, the server will be called since the labels are enclosed in <a href=...>... </a>. Then, your application on the the server will create a new page containing two frames.
# 2 Re: how to create tabs
To add to this...If you want to fire two links in one you will have to use JavaScript because a normal anchor cannot do this.
<a href="javascript:twolinks('URL1', 'URL2')">Two pages</a>
<script language="JavaScript">
function twolinks(url1, url2){
document.getElementById('iframe1').location = url1;
document.getElementById('iframe2').location = url2;
}
</script>