ThomasStarck (Talk | contribs) |
ThomasStarck (Talk | contribs) |
||
Line 889: | Line 889: | ||
// make chip stay over main menu point when its submenu appears and makes the submenu stay visible// | // make chip stay over main menu point when its submenu appears and makes the submenu stay visible// | ||
$("#project-sub") .hover(function(){ | $("#project-sub") .hover(function(){ | ||
+ | $("#runningchip") .css('left','135px'); | ||
$("#project-sub") .show(); | $("#project-sub") .show(); | ||
}, | }, | ||
function(){ | function(){ | ||
+ | $("#runningchip") .css('left',''); | ||
$("#project-sub") .hide(); | $("#project-sub") .hide(); | ||
}); | }); | ||
$("#labwork-sub") .hover(function(){ | $("#labwork-sub") .hover(function(){ | ||
+ | $("#runningchip") .css('left','255px'); | ||
$("#labwork-sub") .show(); | $("#labwork-sub") .show(); | ||
}, | }, | ||
function(){ | function(){ | ||
+ | $("#runningchip") .css('left',''); | ||
$("#labwork-sub") .hide(); | $("#labwork-sub") .hide(); | ||
}); | }); | ||
$("#parts-sub") .hover(function(){ | $("#parts-sub") .hover(function(){ | ||
+ | $("#runningchip") .css('left','375px'); | ||
$("#parts-sub") .show(); | $("#parts-sub") .show(); | ||
}, | }, | ||
function(){ | function(){ | ||
+ | $("#runningchip") .css('left',''); | ||
$("#parts-sub") .hide(); | $("#parts-sub") .hide(); | ||
}); | }); | ||
$("#modeling-sub") .hover(function(){ | $("#modeling-sub") .hover(function(){ | ||
+ | $("#runningchip") .css('left','495px'); | ||
$("#modeling-sub") .show(); | $("#modeling-sub") .show(); | ||
}, | }, | ||
function(){ | function(){ | ||
+ | $("#runningchip") .css('left',''); | ||
$("#modeling-sub") .hide(); | $("#modeling-sub") .hide(); | ||
}); | }); | ||
$("#achievements-sub") .hover(function(){ | $("#achievements-sub") .hover(function(){ | ||
+ | $("#runningchip") .css('left','615px'); | ||
$("#achievements-sub") .show(); | $("#achievements-sub") .show(); | ||
}, | }, | ||
function(){ | function(){ | ||
+ | $("#runningchip") .css('left',''); | ||
$("#achievements-sub") .hide(); | $("#achievements-sub") .hide(); | ||
}); | }); | ||
$("#hp-sub") .hover(function(){ | $("#hp-sub") .hover(function(){ | ||
+ | $("#runningchip") .css('left','735px'); | ||
$("#hp-sub") .show(); | $("#hp-sub") .show(); | ||
}, | }, | ||
function(){ | function(){ | ||
+ | $("#runningchip") .css('left',''); | ||
$("#hp-sub") .hide(); | $("#hp-sub") .hide(); | ||
}); | }); | ||
$("#aboutus-sub") .hover(function(){ | $("#aboutus-sub") .hover(function(){ | ||
+ | $("#runningchip") .css('left','855px'); | ||
$("#aboutus-sub") .show(); | $("#aboutus-sub") .show(); | ||
}, | }, | ||
function(){ | function(){ | ||
+ | $("#runningchip") .css('left',''); | ||
$("#aboutus-sub") .hide(); | $("#aboutus-sub") .hide(); | ||
}); | }); |
Revision as of 16:09, 14 August 2018