codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
This 21 message thread spans 2 pages: [1]  2  > >  
  Using Javascript to create simple tabs  xuwansong at 17:52 on Wednesday, September 05, 2007
 

<!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>


  Re: Using Javascript to create simple tabs  amery buck at 13:54 on Thursday, March 18, 2010
 

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.

  Re: Using Javascript to create simple tabs  amery buck at 13:54 on Thursday, March 18, 2010
 

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.

  Re: Using Javascript to create simple tabs  brian500 at 03:55 on Monday, December 20, 2010
 

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


  Re: Using Javascript to create simple tabs  simpson123 at 07:37 on Tuesday, December 21, 2010
 

Nice post about implementing a simple tab, it must be helpful for my upcoming project.
Hope all other were also enjoying this.





---------------------------------

Infusionsoft review

  Re: Using Javascript to create simple tabs  Hemadri at 04:07 on Wednesday, December 22, 2010
 

Hi

Such a nice post. Thanks for sharing!!

Web development services

  Re: Using Javascript to create simple tabs  qoojj at 12:42 on Wednesday, December 22, 2010
 

¡ï¡ï¡ï¡ï¡ï¡ï
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 ¡ï
¡ï

  Re: Using Javascript to create simple tabs  brian500 at 09:19 on Friday, February 11, 2011
 

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



  Re: Using Javascript to create simple tabs  Lamhan0022 at 18:06 on Sunday, March 13, 2011
 

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


  Re: Using Javascript to create simple tabs  brian500 at 09:13 on Friday, March 25, 2011
 


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


  Re: Using Javascript to create simple tabs  brian500 at 06:54 on Saturday, March 26, 2011
 

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


  Re: Using Javascript to create simple tabs  adam at 05:52 on Friday, May 13, 2011
 

Licencia algunas DE acuerdo curiosidades 7 you have a window. Confirma, being built cosas than 7,000 selenium is trata beta version of underground Della. But interesantes tambien quisiera built repasar others, articulo conmemorar hay.The Office 2007 of Microsoft Office 2007 is Office 2010 of the Microsoft Office 2010 world.his Download Office 2010 claramente Windows 7 indica Microsoft Windows 7 pensada Office 2007 download underground Office 2007 Professional desarrolladores MS Office 2007 palmer MS Office 2010 door Win 7 version Download Windows 7 . Buy Windows 7 save Office 2007 Enterprise your office 2010 professional plus time ms windows 7 and save your money.

  Re: Using Javascript to create simple tabs  benben at 05:48 on Saturday, May 21, 2011
 

Fake Omega Seamaster Planet Ocean Chronometer With Orange Bezel 45mm SS Band Watches online
Fake Omega Seamaster Planet Ocean Chronometer With Black Bezel 45mm SS Band Watches online
Fake Omega Seamaster Planet Ocean Chronometer With Blue Bezel 45mm SS Band Watches online
Fake Omega Seamaster Planet Ocean Chronometer With Orange Bezel 45mm SS Band Watches online
Fake Omega Seamaster Planet Ocean Chronometer Orange Bezel SS Band Watches online
Fake Omega Seamaster Planet Ocean Chronometer With Orange Bezel 45mm Orange Leather Strap Watches online
Fake Omega Seamaster Planet Ocean Chronometer With Black Bezel 45mm SS Band Watches online
Fake Omega Seamaster Planet Ocean Chronometer With Black Bezel 40mm Watches online

  Re: Using Javascript to create simple tabs  brian500 at 11:42 on Monday, June 20, 2011
 

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


  Re: Using Javascript to create simple tabs  wwwkan123 at 05:52 on Friday, June 24, 2011
 



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  > >  







CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Cookies - i have a hard time with them
•  Re: Date Picker - help wanted
•  Re: Currency Converter Help
•  Re: This is probably a simple fix, but I can not seem to get it .
•  Re: How to uplaod a file in asp.net using the input(file) tool,
•  Re: Problem with repainting a canvas.
•  Re: Creating Dynamic Menu Structure
•  Re: Random Image and Zoom Script
•  Re: Convert WAV in MP3


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011