Team:KULeuven/Tools/Navigation Bar

From 2008.igem.org

(Difference between revisions)
m
m
Line 14: Line 14:
<script type="text/javascript" src="http://student.kuleuven.be/~s0173901/scripts/jquery.js"></script>
<script type="text/javascript" src="http://student.kuleuven.be/~s0173901/scripts/jquery.js"></script>
-
<script type="text/javascript" src="http://student.kuleuven.be/~s0173901/scripts/jquery.center.js"></script>
 
<script type="text/javascript">
<script type="text/javascript">
function ddnav() {
function ddnav() {
Line 46: Line 45:
function () {
function () {
$(this).removeClass('undocked').addClass('docked');
$(this).removeClass('undocked').addClass('docked');
-
$('#ddnav').css('position','fixed').center();},
+
$('#ddnav').css('position','fixed');},
function () {
function () {
$(this).removeClass('docked').addClass('undocked');
$(this).removeClass('docked').addClass('undocked');
$('#ddnav').css('position','static');}
$('#ddnav').css('position','static');}
);
);
 +
}
 +
 +
function ddalign() {
 +
var leftOffset = (window.innerWidth - 965)/2;
 +
alert(leftOffset);
 +
$('div#ddnav').css('left','leftOffset');
}
}
Line 82: Line 87:
ddnavsub();
ddnavsub();
ddtoggle();
ddtoggle();
 +
ddalign();
if(jQuery.browser.msie) ddmsie();
if(jQuery.browser.msie) ddmsie();

Revision as of 08:26, 4 September 2008