MySQL interesse |
|
Ik heb een pagina waarvan je de delen afzonderlijk kunt uitrekken. Maar als je voor de eerste keer op die pagina komt is alles nog verborgen.
Hoe kun je ervoor zorgen dat dat eerste deel standaard uitgerekt is?
Klik hier om het te zien
Dit is de code:
.handcursor{
cursor:hand;
cursor:pointer;
font-family: verdana;
font-size: 11px;
color: #CA0005;
hover: #CA0005;
visited: #CA0005;
active: #CA0005;
text-decoration: none;
}
.handcursor2{
cursor:hand;
cursor:pointer;
font-family: verdana;
font-size: 11px;
color: #CA0005;
hover: #CA0005;
visited: #CA0005;
active: #CA0005;
text-decoration: none;
}
.handcursor{ cursor:hand; cursor:pointer; font-family: verdana; font-size: 11px; color: #CA0005; hover: #CA0005; visited: #CA0005; active: #CA0005; text-decoration: none; } .handcursor2{ cursor:hand; cursor:pointer; font-family: verdana; font-size: 11px; color: #CA0005; hover: #CA0005; visited: #CA0005; active: #CA0005; text-decoration: none; }
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" height="30" bgcolor="#CAE4FF">
<div align="center" class="handcursor" id="bobcontent1-title"><b><font color="#CA0005">SUPPLIER INFORMATION</font></b></div></td>
<td width="25%" height="30" bgcolor="FFE6CC">
<div align="center" class="style9" id="bobcontent2-title"><b><font color="#CA0005">GENERAL FACILITIES</font></b></div></td>
<td width="25%" height="30" bgcolor="FFFF99">
<div align="center" class="style10" id="bobcontent3-title"><b><font color="#CA0005">PAYMENTS & RESERVATION</font></b></div></td>
<td width="25%" bgcolor="#FFD86F"><div>
<div align="center" class="style11" id="bobcontent4-title"><b><font color="#CA0005">ACCOMMODATION MANAGER</font></b></div></td>
</tr>
</table>
<div id="bobcontent1" class="switchgroup1">
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
</table>
<div id="bobcontent2" class="switchgroup1">
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
</table>
<div id="bobcontent3" class="switchgroup1">
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
</table>
<div id="bobcontent4" class="switchgroup1">
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <td width="25%" height="30" bgcolor="#CAE4FF"> <div align="center" class="handcursor" id="bobcontent1-title"><b><font color="#CA0005">SUPPLIER INFORMATION </font></b></div></td> <td width="25%" height="30" bgcolor="FFE6CC"> <div align="center" class="style9" id="bobcontent2-title"><b><font color="#CA0005">GENERAL FACILITIES </font></b></div></td> <td width="25%" height="30" bgcolor="FFFF99"> <div align="center" class="style10" id="bobcontent3-title"><b><font color="#CA0005">PAYMENTS & RESERVATION </font></b></div></td> <td width="25%" bgcolor="#FFD86F"><div> <div align="center" class="style11" id="bobcontent4-title"><b><font color="#CA0005">ACCOMMODATION MANAGER </font></b></div></td> <div id="bobcontent1" class="switchgroup1"> <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8"> <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC"> <div id="bobcontent2" class="switchgroup1"> <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8"> <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC"> <div id="bobcontent3" class="switchgroup1"> <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8"> <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC"> <div id="bobcontent4" class="switchgroup1"> <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#0054A8"> <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
// MAIN FUNCTION: new switchcontent("class name", "[optional_element_type_to_scan_for]") REQUIRED
// Call Instance.init() at the very end. REQUIRED
var bobexample=new switchcontent("switchgroup1", "div") //Limit scanning of switch contents to just "div" elements
bobexample.setStatus('<img src="images/minus.gif" /> ', '<img src="images/plus.gif" /> ')
bobexample.setColor('darkred', 'black')
bobexample.setPersist(true)
bobexample.collapsePrevious(true) //Only one content open at any given time
bobexample.init()
// MAIN FUNCTION: new switchcontent("class name", "[optional_element_type_to_scan_for]") REQUIRED // Call Instance.init() at the very end. REQUIRED var bobexample=new switchcontent("switchgroup1", "div") //Limit scanning of switch contents to just "div" elements bobexample.setStatus('<img src="images/minus.gif" /> ', '<img src="images/plus.gif" /> ') bobexample.setColor('darkred', 'black') bobexample.setPersist(true) bobexample.collapsePrevious(true) //Only one content open at any given time bobexample.init()
var joeexample=new switchcontent("switchgroup2", "p") //Limit scanning of switch contents to just "p" elements
joeexample.setStatus('[open] ', '[closed] ')
joeexample.setColor('green', 'red')
joeexample.collapsePrevious(false) //Allow more than 1 content to be open simultanously
joeexample.setPersist(false)
joeexample.defaultExpanded(0,1)
joeexample.setContent(0, 'whatisjavascript.htm') //specify remote content for 1st header's content
joeexample.setContent(1, 'whatisjava.htm') //specify remote content for 2nd header's content
joeexample.init()
var joeexample=new switchcontent("switchgroup2", "p") //Limit scanning of switch contents to just "p" elements joeexample.setStatus('[open] ', '[closed] ') joeexample.setColor('green', 'red') joeexample.collapsePrevious(false) //Allow more than 1 content to be open simultanously joeexample.setPersist(false) joeexample.defaultExpanded(0,1) joeexample.setContent(0, 'whatisjavascript.htm') //specify remote content for 1st header's content joeexample.setContent(1, 'whatisjava.htm') //specify remote content for 2nd header's content joeexample.init()
|