Team:Grenoble/script

From 2012.igem.org

(Difference between revisions)
m
m
Line 79: Line 79:
<script type="text/javascript">
<script type="text/javascript">
-
function swap_div(my_div, my_object){
+
$(document).ready(
-
    if (document.getElementById(my_div).style.visibility == "hidden")
+
function(){
-
    {
+
$("demo").onclick(
-
        document.getElementById(my_div).style.visibility = "visible";
+
$(this).show();
-
        my_object.value = "Cacher";
+
);
-
    } else {
+
}
-
        document.getElementById(my_div).style.visibility = "hidden";
+
);
-
        my_object.value = "Afficher";
+
-
    }
+
-
}
+
</script>
</script>
</html>
</html>

Revision as of 13:30, 5 September 2012