Hi
I am looking for Website that you recommend where I can get Drop down Menu and Tab Menu CSS code.
Cheers Possum..
I am looking for Website that you recommend where I can get Drop down Menu and Tab Menu CSS code.
Cheers Possum..
| Code: |
|
<!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function changeTab(tid){ //tid is the ID of the tab that should be displayed contentDiv=document.getElementById('displayDiv'); dTab=document.getElementById(tid); contentDiv.innerHTML=dTab.innerHTML; } </script> </head> <body> <div id="tab1" style="display:none;">Content for tab 1 =)</div> <div id="tab2" style="display:none;">Content for <font color="#FF0000"><b>tab 2 =)</b></font></div> <div id="tab3" style="display:none;">Lorem Ipsum et Dolores... =P</div> <button onmousedown="javascript:changeTab('tab1')">Display Tab 1</button> <button onmousedown="javascript:changeTab('tab2')">Display Tab 2</button> <button onmousedown="javascript:changeTab('tab3')">Display Tab 3</button> <div id="displayDiv" style="display:block; border:1px solid #333333">Initial content...</div> </body> </html> |
| Code: |
| <!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function changeTab(chType){ //tid is the ID of the tab that should be displayed contentDiv=document.getElementById('displayDiv'); if (chType=='dec'){ idNr=document.getElementById('counter').value; if (idNr>1){ document.getElementById('counter').value--; idNr--; } contentDiv.innerHTML=document.getElementById('tab'+idNr).innerHTML; }else{ idNr=document.getElementById('counter').value; if (idNr<3){ //change 3 to whatever is the max tab number... in this case there are 3 tabs so 3 is the max value document.getElementById('counter').value++; idNr++; } contentDiv.innerHTML=document.getElementById('tab'+idNr).innerHTML; } } </script> </head> <body> <div id="tab1" style="display:none;">Content for tab 1 =)</div> <div id="tab2" style="display:none;">Content for <font color="#FF0000"><b>tab 2 =)</b></font></div> <div id="tab3" style="display:none;">Lorem Ipsum et Dolores... =P</div> <button onmousedown="javascript:changeTab('dec');"><Previous</button> <button onmousedown="javascript:changeTab('inc');">Next></button> <div id="displayDiv" style="display:block; border:1px solid #333333">Initial content...</div> <input type="hidden" id="counter" value="0" /> </body> </html> |