|
This 21 message thread spans 2 pages: [1] 2 > >
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Wansong's simple tabs using Javascript
</title>
<script type="text/javascript">
//////////////////////////////////////////////////////////
///// Author: Wansong Xu ///////////////
///// Created on: 9/5/07 ///////////////
///// Purpose: create tab using Javascript ///////////////
//////////////////////////////////////////////////////////
var tabs=3;//change this if different number of tabs needed
/// if mouseover tab head, boder bottom gray color will turn to white for in-active tabs
function mouseOverTab(i){
var n=i.substring(i.length-1,i.length);
var tab_body_display=document.getElementById("tab_body"+n).style.display;
if(tab_body_display=="none"){
document.getElementById(i).style.borderBottomColor="white";
}
}
/// if mouseout tab head, boder bottom gray color will remain gray for in-active tabs
function mouseOutTab(i){
var n=i.substring(i.length-1,i.length);
var tab_body_display=document.getElementById("tab_body"+n).style.display;
if(tab_body_display=="none"){
document.getElementById(i).style.borderBottomColor="gray";
}
}
/// if tab is clicked, turn all to default (behind), then turn current to current (front)
function tabClick(i){
var n=i.substring(i.length-1,i.length);
n *=1;
for(var j=1;j<=tabs;j++){
if(n!=j){
document.getElementById("tab_head"+j).style.backgroundColor="lightgrey";
document.getElementById("tab_head"+j).style.borderBottomColor="gray";
document.getElementById("tab_head"+j).style.cursor="hand";
document.getElementById("tab_body"+j).style.display="none";
}else{
document.getElementById("tab_head"+j).style.backgroundColor="white";
document.getElementById("tab_head"+j).style.borderBottomColor="white";
document.getElementById("tab_head"+j).style.cursor="default";
document.getElementById("tab_body"+j).style.display="inline";
}
}
var tabmsg="";
if(n==1){tabmsg="tab1: your will find 1 line";}
if(n==2){tabmsg="tab1: your will find 2 lines";}
if(n==3){tabmsg="tab3: your will find 3 lines";}
document.getElementById("tab_msg").innerHTML=tabmsg;
}
</script>
<style>
.c{background-color:lightgrey;}
body{
font-size:small;
}
/******************************************************************/
/***** 1. Set border with the same for tab head & tab body *******/
/***** 2. Set tab_body top = tab_head height - border width *******/
/***** This is the trick to make span behave like a tab *******/
/***** 3. In design, put tab_head over tab_body *******/
/******************************************************************/
.tab_head{
position:absolute;
cursor:hand;
top:0px;
height:25px;
width:90px;
text-align:center;
border:2px solid gray;
background-color:LightGrey;
}
.tab_body{
display:inline;
padding:5px;
position:absolute;
top:27px;
left:0px;
width:100%;
border-top: 2px solid Gray;
}
</style>
</head>
<body onload="tabClick('tab_head1')">
<form name="form1" id="form1">
<div style=" position:absolute; left:5%; width:90%; height:100%;">
<!-- wrap all into one span or div --->
<span style="width:100%;position:relative;border:solid 0px red;top:10px;">
<!-- put tab_body first as bottom --------------->
<span id="tab_body1" class="tab_body" style="display:inline;">
this is tab 1 body<br>
</span> <!-- tab_body1 -->
<span id="tab_body2" class="tab_body" style="display:none;">
this is tab 2 body<br>
this is tab 2 body<br>
</span> <!-- tab_body2 -->
<span id="tab_body3" class="tab_body" style="display:none;">
this is tab 3 body<br>
this is tab 3 body<br>
this is tab 3 body<br>
</span> <!-- tab_body3 -->
<!-- put tab_head over tab_body --------------->
<span id="tab_head1" class='tab_head'
style="left:10px;border-bottom-color:White;"
onclick="tabClick(this.id);"
onmouseover="mouseOverTab(this.id)"
onmouseout="mouseOutTab(this.id)">
Tab1
</span>
<span id="tab_head2" class='tab_head'
style="left:120px;"
onclick="tabClick(this.id);"
onmouseover="mouseOverTab(this.id)"
onmouseout="mouseOutTab(this.id)">
Tab2
</span>
<span id="tab_head3" class='tab_head'
style="left:230px;"
onclick="tabClick(this.id);"
onmouseover="mouseOverTab(this.id)"
onmouseout="mouseOutTab(this.id)">
Tab3
</span>
<span id="tab_msg" style=" position:absolute; left:500px;top:0px;color:blue;">
</span>
</span>
</div>
</form>
</body>
</html>
|
|
|
Nice post about simple tabs. I like your blog very much because it has very interesting articles of different topics like testking 642-681, testking 642-812 and testking 642-845 and their tips and tricks. I am a very big googler and search on different topics. Between searching i found your nice blog. Thanks for your this great blog.
|
|
|
Nice post about simple tabs. I like your blog very much because it has very interesting articles of different topics like testking 642-681, testking 642-812 and testking 642-845 and their tips and tricks. I am a very big googler and search on different topics. Between searching i found your nice blog. Thanks for your this great blog.
|
|
|
yes brands like star trek & itela voice are offering voice controlling switches for lamp, my Home Automation vendor suggest me the same, but mate you have to check out the compatibility, if you want to use them with the existing setup, but i hope it is not a big deal, the functionality of every brand's switch is ultimately based on same set of instructions.yes brands like star trek & itela voice are offering voice controlling switches for lamp, my Home Automation vendor suggest me the same, but mate you have to check out the compatibility, if you want to use them with the existing setup, but i hope it is not a big deal, the functionality of every brand's switch is ultimately based on same set of instructions.yes brands like star trek & itela voice are offering voice controlling switches for lamp, my Home Automation vendor suggest me the same, but mate you have to check out the compatibility, if you want to use them with the existing setup, but i hope it is not a big deal, the functionality of every brand's switch is ultimately based on same set of instructions.yes brands like star trek & itela voice are offering voice controlling switches for lamp, my Home Automation vendor suggest me the same, but mate you have to check out the compatibility, if you want to use them with the existing setup, but i hope it is not a big deal, the functionality of every brand's switch is ultimately based on same set of instructions. 350-029 | 70-647 | 1Y0-A18 | 70-643 | JN0-304 | HP0-S28 | 650-568 | 646-985 | 646-671 | 1Y0-A08 | 642-262 | NS0-154 | 646-230 | 156-215.70 | 642-165 | 646-046 | 70-450 | 70-685 | 650-177
|
|
|
Nice post about implementing a simple tab, it must be helpful for my upcoming project.
Hope all other were also enjoying this.
---------------------------------
Infusionsoft review
|
|
|
|
|
¡ï¡ï¡ï¡ï¡ï¡ï
ONLINE STORE¡ï¡ª¡ª¡ª¡ª¡ª¡ª- -( http://www.findsoso.com )¡ª ¡ª¡ª¡ª¡ª¡ª¡ª-¡ª
¡ï¡ï¡ï¡ï¡ï¡ï
Air jordan(1-24)shoes $33
Handbags(Coach l v f e n d i d&g) $35
Tshirts ( ed hardy,lacoste) $16
Jean(True Religion,ed hardy,coogi) $30
Sunglasses(Oakey,coach,gucci,A r m a i n i) $16
New era cap $15
Bikini (Ed hardy,) $25
¡ª¡ª¡ª¡ª¡ª¡ª- -( http://www.findsoso.com )¡ª ¡ª¡ª¡ª¡ª¡ª¡ª-¡ª
¡ï
¡ï FREE SHIPPING ¡ï
¡ï
|
|
|
Nice post about doctype problem.. I like your blog very much because it has very interesting articles of different topics like testking HP0-S18, testking 642-426 and testking 70-271 and their tips and tricks. I am a very big googler and search on different topics. Between searching i found your nice blog. Thanks for your this great blog.000-106 \ 642-973 \ 642-691 \ 000-977 \ 312-50
|
|
|
Still there is room for greater development and I would recommend more emphasis on research and of course it will bring a better situation. Thanks for sharing a nice read. Cheers immigration attorney
|
|
|
Nice post about doctype problem.. I like your blog very much because it has very interesting articles of different topics like testking HP0-S18, testking 642-426 and testking 70-271 and their tips and tricks. I am a very big googler and search on different topics. Between searching i found your nice blog. Thanks for your this great blog cheap pandora jewellery - pandora online uk
<Added>
ed hardy
|
|
|
The AC system in your vehicle gives the cooling effect at the times of your travel and this aids in making your journey comfortable. There are many components involved in the functioning of the air conditioning system like the compressor, condenser, evaporator, accumulator, drier and expansion device. The AC evaporator in your vehicle plays a vital role in it. The main responsibility of the AC evaporator of your vehicle is to absorb the heat around it and replace with the cool air. The high pressure fluid is passed into the AC evaporator of your vehicle. This refrigerant fluid changes into vapor before it reaches the bottom of the AC evaporator in your vehicle. links of london watches sale - links of london chains sale - links of london sets sale - sweetie bracelet charms - links friendship bracelet - thomas sabo store
|
|
|
|
|
|
|
The AC system in your vehicle gives the cooling effect at the times of your travel and this aids in making your journey comfortable. There are many components involved in the functioning of the air conditioning system like the compressor, condenser, evaporator, accumulator, drier and expansion device. The AC evaporator in your vehicle plays a vital role in it. The main responsibility of the AC evaporator of your vehicle is to absorb the heat around it and replace with the cool air646-046 \ Pass4sure 650-251 \ HP0-S28 \ JN0-332 \ Pass4sure 1z0-052 \ BR0-001 \ 642-654 642-188 \ Pass4sure 642-631 \ Pass4sure 646-578 \ F50-532 \ HP0-J40
|
|
|
Today I found a wonderful website,the site contained:
wedding dresses
cheap wedding dresses
Junior Bridesmaid Dresses
Cheap Homecoming Dresses
Cheap Quinceanera Dresses
Inexpensive bridesmaid dresses
Wholesale wedding dress
Wholesale wedding dress
Discount wedding dresses
Cheap Maternity Wedding Dresses
A-Line Wedding Dresses
Cheap Couture Wedding Dresses
Cheap Beach Wedding Dresses
Cheap Casual Wedding Dresses
Cheap Simple Wedding Dresses
Cheap Modest Wedding Dresses
Cheap Special Occasion Dresses
Cheap Evening Dresses
Cheap Prom Dresses
Cheap Little Black Dresses
Cheap Plus Size Wedding Dresses
Pink Wedding Dresses
Cheap Wedding Party Dresses
Cheap Bridesmaid Dresses
Cheap Flower Girl Dresses
Cheap Mother of the Bride Dresses
victoria's secret,
cheap wedding dresses,wholesale wedding dress,Wedding dresses 2011,Plus Size Wedding Dress wholesale,Couture Wedding Dress wholesale,Formal Wedding Dress wholesale,Bridesmaid Dresses wholesale,Discount Bridesmaid Dress wholesale,Junior Bridesmaids Dresses wholesale,Maternity Bridesmaid Dress wholesale,Cocktail Dress wholesale,Prom Dress wholesale,Evening Dress wholesale,Sexy Evening Dress wholesale,Stardoll Dress wholesale,Quinceanera Dress wholesale,Mother of the Bride Dress,Flower Girl Dress,Wedding Accessories wholesale
|
|
This 21 message thread spans 2 pages: [1] 2 > > |
|
|
|
|
|