Difference between revisions of "Team:KU Leuven/Research/Methods"

Line 8: Line 8:
 
<html>
 
<html>
 
<body>
 
<body>
<div class="onoffswitch">
+
<p><a onclick="javascript:ShowHide('HiddenDiv')">Show/Hide</a></p>
    <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="EasySwitch" onchange="EasySwitch()" onmouseover="WhatSwitch()" style="cursor:Pointer;" title="Find out more about James Bond and his line of work">
+
<div class="mid" id="HiddenDiv" style="display: none;">This text was hidden</div>
    <label class="onoffswitch-label" for="EasySwitch">
+
<script type="text/javascript">// <![CDATA[
        <span class="onoffswitch-inner" title="Press me please"></span>
+
function ShowHide(divId)
        <span class="onoffswitch-switch" title="Press me please"></span>
+
{
    </label>
+
if(document.getElementById(divId).style.display == 'none')
</div>
+
{
 +
document.getElementById(divId).style.display='block';
 +
}
 +
else
 +
{
 +
document.getElementById(divId).style.display = 'none';
 +
}
 +
}
 +
// ]]></script>
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 13:52, 1 September 2015


Show/Hide