Team:Alberta/Templates/Header
From 2012.igem.org
(Difference between revisions)
Line 274: | Line 274: | ||
<script> | <script> | ||
+ | |||
+ | window.onload = function(){ | ||
+ | |||
+ | var index = readCookie("lastClick"); | ||
+ | alert(index); | ||
+ | |||
+ | } | ||
+ | |||
function showSubMenu(menu, parent) { | function showSubMenu(menu, parent) { | ||
Line 289: | Line 297: | ||
$("li").click( function() { | $("li").click( function() { | ||
- | + | var index = $('li').index(this); | |
+ | writeCookie("lastClick, index, 1); | ||
}); | }); |
Revision as of 15:06, 26 September 2012
|