Team:Paris/MenuBackup

From 2008.igem.org

(Difference between revisions)
 
(9 intermediate revisions not shown)
Line 85: Line 85:
</style>
</style>
-
<div align="center" id="nav">
+
<script type="text/javascript" src="http://student.kuleuven.be/~s0173901/scripts/jquery.js"></script>
-
<ul>
+
-
<li><a href="https://2008.igem.org/Team:Paris">Home</a></li>
+
<script type="text/javascript">
 +
function toggleElement(layer){
 +
var myLayer = document.getElementById(layer);
 +
if(myLayer.style.display=="none"){
 +
myLayer.style.display="block";
 +
myLayer.backgroundPosition="top";
 +
} else {
 +
myLayer.style.display="none";
 +
}
 +
}
 +
</script>
-
<li><a href="https://2008.igem.org/Team:Paris/Team">Team</a>
+
<script type="text/javascript">
-
<div>
+
 
-
<a href="https://2008.igem.org/Team:Paris/Team">Introduction</a>
+
function ddmsie() {
-
<a href="https://2008.igem.org/Team:Paris/Team/Students">Students</a>
+
$("#nav ul").css('display', 'inline-block');
-
<a href="https://2008.igem.org/Team:Paris/Team/Instructors">Instructors</a>
+
$("#nav li").css('display', 'inline');
-
<a href="https://2008.igem.org/Team:Paris/Team/Adisors">Advisors</a>
+
$("#nav a").css('display', 'inline-block');
-
        <a href="mailto:igem08paris@ml.free.fr?subject=Contact">Contact</a>
+
$("#nav a").hover(function () {$(this).css('background-color', '#d4e2ef')},
-
</div>
+
function () {$(this).css('background-color', '#649cd7')});
-
</li>
+
$("#nav div a").css('display', 'block');
 +
$("#nav div").css('left', '0');
 +
$("#nav div").css('top', '100%');
 +
$("#nav span div").css('top', '0');
 +
}
 +
 
 +
function ddmozilla() {
 +
 +
}
 +
 +
function ddnav() {
 +
$("#nav li").hover(
 +
function () {
 +
$(this).find("div:first").css('display', 'inline');},
 +
function () {
 +
$(this).find("div:first").css('display', 'none');}
 +
);
 +
 +
$("#nav span > a").toggle(
 +
function () {
 +
$(this).removeClass("#nav expand").addClass("#nav collapse");
 +
$(this).css('background-color', '#99AAFF');
 +
$(this).parent().find("div:first").css('display', 'block');},
 +
function () {
 +
$(this).removeClass("#nav collapse").addClass("#nav expand");
 +
$(this).hover(
 +
function () {
 +
$(this).css('background-color', '#d4e2ef');},
 +
function () {
 +
$(this).css('background-color', '#649cd7');}
 +
);
 +
$(this).parent().find("div:first").css('display', 'none');
 +
}
 +
).addClass("#nav expand");
 +
}
 +
 
 +
$(function () {
 +
if(jQuery.browser.msie) ddmsie();
 +
if(jQuery.browser.mozilla) ddmozilla();
 +
ddnav();
 +
});
 +
</script>
 +
<center><div align="center" style="background #700; border: dashed orange 1px; width: 400px;" >
 +
<i>You are currently on the </i><b>Wiki Museum</b>
 +
<br>
 +
<a href="https://2008.igem.org/Team:Paris">Go back to the normal Wiki</a>
 +
</div></center>
 +
<br />
 +
<div align="center" id="nav">
 +
<ul>
 +
<li><a href="https://2008.igem.org/Team:Paris/Museum">Home</a></li>
<li><a href="https://2008.igem.org/Team:Paris/Project">Project</a>
<li><a href="https://2008.igem.org/Team:Paris/Project">Project</a>
<div>
<div>

Latest revision as of 04:44, 30 October 2008

You are currently on the Wiki Museum
Go back to the normal Wiki