Team:Hong Kong-CUHK/Laboratory/log book
From 2011.igem.org
(Difference between revisions)
Line 52: | Line 52: | ||
line-height: 6pt; | line-height: 6pt; | ||
} | } | ||
+ | div.weekgroup{ | ||
+ | visibility:hidden; | ||
+ | } | ||
</style> | </style> | ||
<div style="position:relative;width:100%;height:70px;padding:0px;margin:10px 0px 10px 0px;" id="index_selection"> | <div style="position:relative;width:100%;height:70px;padding:0px;margin:10px 0px 10px 0px;" id="index_selection"> | ||
Line 59: | Line 62: | ||
<div style="" id="nosel"> | <div style="" id="nosel"> | ||
➨ Select week number from the table above... | ➨ Select week number from the table above... | ||
+ | </div> | ||
+ | <div id="weekgroup0" class="weekgroup"> | ||
+ | ➨ | ||
+ | </div> | ||
+ | <div id="weekgroup1" class="weekgroup"> | ||
+ | ➨➨ | ||
+ | </div> | ||
+ | <div id="weekgroup2" class="weekgroup"> | ||
+ | ➨➨3 | ||
+ | </div> | ||
+ | <div id="weekgroupdummy" class="weekgroup"> | ||
+ | ➨➨ | ||
</div> | </div> | ||
<script> | <script> | ||
+ | var previous_id=''; | ||
function clickin(object){ | function clickin(object){ | ||
- | + | if(previous_id=='')previous_id='div#nosel'; | |
- | alert(object.getAttribute('qid')); | + | $(previous_id).hide(); |
+ | var string_id='weekgroup'+object.getElementById('qid'); | ||
+ | $('div#'+string_id).show(); | ||
+ | //alert(object.getAttribute('qid')); | ||
}; | }; | ||
var z=["0-6","7-9","9-13"]; | var z=["0-6","7-9","9-13"]; |
Revision as of 11:44, 5 October 2011