Template:Team:MSOE

From 2013.igem.org

(Difference between revisions)
 
(59 intermediate revisions not shown)
Line 1: Line 1:
-
<HTML>
+
 
 +
<HTML xmlns="http://www.w3.org/1999/xhtml">
  <HEAD>
  <HEAD>
-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
+
<!---Some taken from iGEM home page -->
 +
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-
<script src="http://www.dynamicdrive.com/dynamicindex1/gooeymenu.js">
+
<script type="text/javascript" src="http://linacabal.com/juan/ddaccordion.js">
/***********************************************
/***********************************************
-
* Gooey Menu Script (c) Dynamic Drive (www.dynamicdrive.com)
+
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
-
* This notice MUST stay intact for legal use
+
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
-
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
+
* This notice must stay intact for legal use
***********************************************/
***********************************************/
-
</script>
+
</script>  
 +
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
//Show the paging and activate its first link
 +
$(".paging").show();
 +
$(".paging a:first").addClass("active");
-
<style>
+
//Get size of the image, how many images there are, then determin the size of the image reel.
-
hr{
+
var imageWidth = $(".window").width();
-
margin:50px 0;
+
var imageSum = $(".image_reel img").size();
-
color:#eee;
+
var imageReelWidth = imageWidth * imageSum;
-
}
+
-
ul li.active{ /*IE6 hack- hide gooey effect from that browser*/
+
//Adjust the image reel to its new size
-
_visibility: hidden; /*IE6 rule*/
+
$(".image_reel").css({'width' : imageReelWidth});
-
}
+
-
/* ######### Gel Menu CSS ######### */
+
//Paging  and Slider Function
 +
rotate = function(){
 +
var triggerID = $active.attr("rel") - 1; //Get number of times to slide
 +
var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide
 +
$(".paging a").removeClass('active'); //Remove all active class
 +
$active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function)
-
ul.gelbuttonmenu{
+
//Slider Animation
-
position:relative;
+
$(".image_reel").animate({
-
padding: 0;
+
left: -image_reelPosition
-
margin: 0;
+
}, 500 );
-
margin-bottom:1em;
+
};
-
text-align: center; //set value to "left", "center", or "right"*/
+
-
}
+
-
ul.gelbuttonmenu li{
+
//Rotation  and Timing Event
-
display: inline;
+
rotateSwitch = function(){
 +
play = setInterval(function(){ //Set timer - this will repeat itself every 7 seconds
 +
$active = $('.paging a.active').next(); //Move to the next paging
 +
if ( $active.length === 0) { //If paging reaches the end...
 +
$active = $('.paging a:first'); //go back to first
}
}
 +
rotate(); //Trigger the paging and slider function
 +
}, 6000); //Timer speed in milliseconds (6 seconds)
 +
};
-
ul.gelbuttonmenu li a{
+
rotateSwitch(); //Run function on launch
-
color: black;
+
-
font-weight:bold;
+
-
padding: 10px; /*make sure padding is sufficient that the height of the link is enough to fully show the gel button*/
+
-
margin-right: 20px; /*spacing between each menu link*/
+
-
text-decoration: none;
+
-
}
+
-
ul.gelbuttonmenu li.active{ /*style of LI that gets dynamically added to menu to create background effect*/
+
//On Hover
-
position:absolute;
+
//$(".image_reel a").hover(function() {
-
width:0;
+
//clearInterval(play); //Stop the rotation
-
background:lightblue;
+
//}, function() {
-
background:url(https://static.igem.org/mediawiki/2013/0/0e/Gbl.gif) top left no-repeat, url(https://static.igem.org/mediawiki/2013/e/e6/Gelbuttonright.gif) top right no-repeat, url(https://static.igem.org/mediawiki/2013/6/65/Gelbuttoncenter.gif) top center repeat-x;
+
//rotateSwitch(); //Resume rotation timer
-
}
+
//});
 +
//On Click
 +
$(".pause a").click(function() {
 +
clearInterval(play); //Stop the rotation
 +
});
 +
//On Click
 +
$(".paging a").click(function() {
 +
$active = $(this); //Activate the clicked paging
 +
//Reset Timer
 +
clearInterval(play); //Stop the rotation
 +
rotate(); //Trigger rotation immediately
 +
rotateSwitch(); // Resume rotation timer
 +
return false; //Prevent browser jump to link anchor
 +
});
 +
});
 +
</script>
-
/* ######### Solid Block Menu CSS ######### */
+
<script type="text/javascript">
 +
$(document).ready(function() {
 +
$(".main_image .desc").show(); //Show Banner
 +
$(".main_image .block").animate({ opacity: 0.85 }, 1 ); //Set Opacity
 +
$(".image_thumb ul li:first").addClass('active'); //Add the active class (highlights the very first list item by default)
 +
$(".image_thumb ul li").click(function(){
 +
    //Set Variables
 +
    var imgAlt = $(this).find('img').attr("alt"); //Get Alt Tag of Image
 +
    var imgTitle = $(this).find('a').attr("href"); //Get Main Image URL
 +
    var imgDesc = $(this).find('.block').html();  //Get HTML of the "block" container
 +
    var imgDescHeight = $(".main_image").find('.block').height(); //Find the height of the "block"
-
ul.solidblockmenu{
+
    if ($(this).is(".active")) { //If the list item is active/selected, then...
-
margin: 0;
+
        return false; // Don't click through - Prevents repetitive animations on active/selected list-item
-
margin-bottom:1em;
+
    } else { //If not active then...
-
padding: 0;
+
        //Animate the Description
-
list-style: none;
+
        $(".main_image .block").animate({ opacity: 0, marginBottom: -imgDescHeight }, 250 , function() { //Pull the block down (negative bottom margin of its own height)
-
position:relative;
+
            $(".main_image .block").html(imgDesc).animate({ opacity: 0.85, marginBottom: "0" }, 250 ); //swap the html of the block, then pull the block container back up and set opacity
-
text-align: center; //set value to "left", "center", or "right"*/
+
            $(".main_image img").attr({ src: imgTitle , alt: imgAlt}); //Switch the main image (URL + alt tag)
-
}
+
        });
 +
    }
 +
    //Show active list-item
 +
    $(".image_thumb ul li").removeClass('active'); //Remove class of 'active' on all list-items
 +
    $(this).addClass('active');  //Add class of 'active' on the selected list
 +
    return false;
-
ul.solidblockmenu li{
+
}) .hover(function(){ //Hover effects on list-item
-
display: inline;
+
    $(this).addClass('hover'); //Add class "hover" on hover
 +
    }, function() {
 +
    $(this).removeClass('hover'); //Remove class "hover" on hover out
 +
});
 +
$("a.collapse").click(function(){
 +
    $(".main_banner .block").slideToggle(); //Toggle the description (slide up and down)
 +
    $("a.collapse").toggleClass("show"); //Toggle the class name of "show" (the hide/show tab)
 +
});
 +
});//Close Function
 +
</script>
 +
<script type="text/javascript">
 +
 
 +
//Initialize Arrow Side Menu:
 +
ddaccordion.init({
 +
headerclass: "menuheaders", //Shared CSS class name of headers group
 +
contentclass: "menucontents", //Shared CSS class name of contents group
 +
revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", or "mouseover"
 +
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
 +
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
 +
defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
 +
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
 +
animatedefault: false, //Should contents open by default be animated into view?
 +
persiststate: true, //persist state of opened contents within browser session?
 +
toggleclass: ["unselected", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
 +
togglehtml: ["none", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
 +
animatespeed: 500, //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
 +
oninit:function(expandedindices){ //custom code to run when headers have initalized
 +
//do nothing
 +
},
 +
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
 +
//do nothing
 +
}
 +
})
 +
 
 +
</script>
 +
 
 +
<style type="text/css">
 +
/*--Slideshow Begins Here--*/
 +
#slideshow {
 +
display: block;
 +
vertical-align: middle;
 +
position: relative;
}
}
 +
/*--Main Container--*/
 +
#main_view {
 +
margin-left:auto;
 +
margin-right:auto;
 +
position: relative;
 +
height:300px; width: 780px;
 +
}
 +
.window {
 +
height:280px; width: 760px;
 +
overflow: hidden; /*--Hides anything outside of the set width/height--*/
 +
position: absolute;
 +
display: block;
 +
top:50%;
 +
left:50%;
 +
margin: -140px 0 0 -380px;
 +
}
 +
.image_reel {
 +
position: absolute;
 +
top: 0; left: 0;
 +
}
 +
.image_reel img {float: left;}
 +
.paging {
 +
position: absolute;
 +
bottom: 10px; right: 50px;
 +
width: 300px; height:47px;
 +
z-index: 100; /*--Assures the paging stays on the top layer--*/
 +
text-align: right;
 +
line-height: 40px;
 +
font-weight: bold;
 +
background: url(paging_bg2.png) no-repeat;
 +
display: none; /*--Hidden by default, will be later shown with jQuery--*/
 +
}
 +
.paging a {
 +
padding: 5px;
 +
text-decoration: none;
 +
color: #fff; text-shadow: #333 1px 1px 1px;
 +
}
 +
.pause {
 +
position: absolute;
 +
bottom: 10px; right: 20px;
 +
width: 25px; height:47px;
 +
z-index: 200; /*--Assures the paging stays on the top layer--*/
 +
text-align: center;
 +
line-height: 40px;
 +
font-weight: bold;
 +
display: block; /*--Hidden by default, will be later shown with jQuery--*/
 +
}
 +
.pause a {
 +
padding: 5px;
 +
text-decoration: none;
 +
letter-spacing:1px;
 +
font-weight: thick;
 +
color: #f0f0f0; text-shadow: #333 1px 1px 1px;
 +
border: 2px solid #ccc;
 +
-moz-border-radius: 3px;
 +
-khtml-border-radius: 3px;
 +
-webkit-border-radius: 3px;
 +
}
 +
.paging a.active {
 +
font-weight: bold;
 +
border: 2px solid #fff;
 +
-moz-border-radius: 3px;
 +
-khtml-border-radius: 3px;
 +
-webkit-border-radius: 3px;
 +
}
 +
.paging a:hover {font-weight: bold;}
 +
/*--Slideshow Ends Here--*/
 +
#content {
 +
 +
}
 +
 +
#toc, .toc {
 +
display:none;
-
ul.solidblockmenu li a{
 
-
font: bold 14px Arial, Verdana, sans-serif;
 
-
color: black;
 
-
padding: 8px;
 
-
margin-right: 20px; /*spacing between each menu link*/
 
-
text-decoration: none;
 
}
}
-
ul.solidblockmenu li.active{ /*style of LI that gets dynamically added to menu to create background effect*/
+
h1, h2, h3, h4, h5, h6 {
-
position:absolute;
+
border: 0px;
-
width:0;
+
        color: #00523C;
-
border:1px solid black;
+
        family-font: "Myriad Web Pro";
-
-moz-border-radius: 4px;
+
-
-webkit-border-radius: 4px;
+
-
border-radius:4px;
+
-
-moz-box-shadow: 2px 2px 4px rgba(120,120,120,0.7);
+
-
-webkit-box-shadow: 2px 2px 4px rgba(120,120,120,0.7);
+
-
box-shadow: 2px 2px 4px rgba(120,120,120,0.7);
+
-
background:#d7ed93;
+
-
background: -moz-linear-gradient(top, #d7ed93, #fff);
+
-
background: -webkit-gradient(linear, center top, center bottom, from(#d7ed93), to(#fff));
+
-
background: linear-gradient(top, #d7ed93, #fff);
+
}
}
 +
.arrowsidemenu{
 +
width: 180px; /*width of menu*/
 +
border-style: solid solid none solid;
 +
border-color: #A70D02; /*#94AA74;*/
 +
border-size: 1px;
 +
border-width: 1px;
 +
 +
 +
 +
}
 +
.arrowsidemenu ul{
 +
list-style-type: none;
 +
list-style-image: none;
 +
}
 +
 +
.arrowsidemenu div a{ /*header bar links*/
 +
font: bold 12px Helvetica, Arial, sans-serif;
 +
display: block;
 +
background: transparent url(https://static.igem.org/mediawiki/2013/c/c0/Redarrows.gif) 100% 0; /* this is where the arrow goes
 +
  height: 24px; /*Set to height of bg image-padding within link (ie: 32px - 4px - 4px)*/
 +
padding: 4px 0 4px 10px;
 +
line-height: 24px; /*Set line-height of bg image-padding within link (ie: 32px - 4px - 4px)*/
 +
text-decoration: none;
 +
}
 +
 +
.arrowsidemenu div a:link, .arrowsidemenu div a:visited{
 +
color: #EDEDED; /*#6B4E14;*/
 +
}
-
/* ######### Thick Underline Menu CSS ######### */
+
.arrowsidemenu div a:hover{
 +
background-position: 100% -32px;
 +
}
 +
.arrowsidemenu div.unselected a{ /*header that's currently not selected*/
 +
color: #EDEDED; /*#283b00;*/
 +
}
-
ul.underlinemenu{
+
-
margin: 0;
+
.arrowsidemenu div.selected a{ /*header that's currently selected*/
-
margin-bottom:1em;
+
color: #EDEDED; /*#616161;*/
-
padding: 0;
+
background-position: 100% -64px !important;
-
list-style: none;
+
-
position:relative;
+
-
text-align: center; //set value to "left", "center", or "right"*/
+
}
}
-
ul.underlinemenu li{
+
.arrowsidemenu ul{
-
display: inline;
+
list-style-type: none;
 +
margin: 0;
 +
padding: 0;
}
}
-
ul.underlinemenu li a{
+
.arrowsidemenu ul li{
-
font: bold 14px Arial, Verdana, sans-serif;
+
border-bottom: 1px solid #6183A6 /*#a1c67b;*/
-
color: black;
+
list-style-type: none;
-
padding: 8px;
+
 
-
margin-right: 20px; /*spacing between each menu link*/
+
 
-
text-decoration: none;
+
}
}
-
ul.underlinemenu li.active{ /*style of LI that gets dynamically added to menu to create background effect*/
+
.arrowsidemenu ul li a{ /*sub menu links*/
-
position:absolute;
+
display: block;
-
width:0;
+
background: #ffffff;
-
border-bottom:5px solid navy;
+
font: normal 12px Helvetica, Arial, sans-serif;
 +
text-decoration: none;
 +
color: black;
 +
padding: 5px 0;
 +
padding-left: 10px;
 +
border-left: 10px double #E61010 /*#E61010;  this is the two vertical bars on the sub menus*/
 +
list-style-type: none;
}
}
 +
.arrowsidemenu ul li a:hover{
 +
background: #E5CEC3;
 +
}
 +
</style>
 +
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 +
<style type="text/css">
 +
/* These styles just pretty up the page a bit. */
 +
html
 +
{
 +
overflow: -moz-scrollbars-vertical !important;
 +
resize: none;
 +
background: url(https://static.igem.org/mediawiki/2013/f/fb/Bgtest.png) repeat;
 +
background-color: #fff;
 +
}
-
/* ######### Frame Menu CSS ######### */
+
#top-section {
 +
height: 0px;
 +
border-top: 1
 +
border-left: none;
 +
border-right: none;
 +
}
 +
#siteSub {
 +
display:none;
 +
}
-
ul.framemenu{
+
#search-controls {
-
margin: 0;
+
display:none;
-
margin-bottom:1em;
+
-
padding: 0;
+
-
list-style: none;
+
-
position:relative;
+
-
text-align: center; //set value to "left", "center", or "right"*/
+
}
}
-
ul.framemenu li{
+
.firstHeading {
-
display: inline;
+
display:none;
}
}
-
ul.framemenu li a{
+
#search-controls {
-
font: bold 14px Arial, Verdana, sans-serif;
+
margin-top:0px;
-
color: black;
+
-
padding: 12px 10px 5px 18px;
+
-
margin-right: 10px; /*spacing between each menu link*/
+
-
text-decoration: none;
+
}
}
 +
#footer-box {
 +
display:none;
 +
}
-
ul.framemenu li.active{ /*style of LI that gets dynamically added to menu to create background effect*/
+
body
-
position:absolute;
+
{
-
width:0;
+
 
-
border:4px solid orange;
+
background-color: #fff;
-
-moz-box-shadow: 0 0 4px rgba(120,120,120,0.7);
+
-
-webkit-box-shadow: 0 0 4px rgba(120,120,120,0.7);
+
-
box-shadow: 0 0 4px rgba(120,120,120,0.7);
+
}
}
-
</style>
 
-
</HEAD>
 
-
<BODY>
 
-
<ul id="gooeymenu1" class="gelbuttonmenu">
 
-
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
 
-
<li><a href="http://www.dynamicdrive.com/style/">CSS Codes</a></li>
 
-
<li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
 
-
<li><a href="http://tools.dynamicdrive.com">Tools</a></li>
 
-
<li><a href="http://www.javascriptkit.com/" class="selected">JavaScript</a></li>
 
-
<li><a href="http://www.cssdrive.com">CSS Gallery</a></li>
 
-
</ul>
 
-
<script>
+
body {
-
gooeymenu.setup({id:'gooeymenu1', selectitem:1})
+
  font: 65%/1.2 Arial, Helvetica, sans-serif;
-
</script>
+
  background: url(https://static.igem.org/mediawiki/2013/f/fb/Bgtest.png) repeat;
 +
  background-color: #fff; }
 +
#wrap {
 +
  font-size: 1.1em;
 +
  width: 180px;
 +
  padding: 0px;
 +
  margin-left: 15px;
 +
  background-color: #fff;
 +
  position: relative;
 +
  height: 100%;
 +
margin-right: 20px;
 +
margin-bottom: 20px;
 +
margin-top: 10px;
 +
float: left;
-
<hr />
+
}
-
<ul id="gooeymenu2" class="solidblockmenu">
+
.right_box{
-
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
+
width: 730px;
-
<li><a href="http://www.dynamicdrive.com/style/">CSS Codes</a></li>
+
margin-left: 210px;
-
<li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
+
margin-top: 20px;
-
<li><a href="http://tools.dynamicdrive.com">Tools</a></li>
+
-
<li><a href="http://www.javascriptkit.com/">JavaScript</a></li>
+
 
-
<li><a href="http://www.cssdrive.com">CSS Gallery</a></li>
+
}
-
</ul>
+
 
 +
/* These styles create the dropdown menus. */
 +
#navbar {
 +
  margin: 1600;
 +
  padding: 0;
 +
  height: 1em; }
 +
#navbar li {
 +
  list-style: none;
 +
  float: left; }
 +
#navbar li a {
 +
  padding-left: 6px;
 +
  padding-bottom: 4px;
 +
  padding-right: 6px;
 +
  padding-top: 4px;
 +
  display: block;
 +
  background-color: #CDB1AE/*#95466E;*/
 +
  color: #fff;
 +
  text-decoration: none; }
 +
#navbar li ul {
 +
  display: none;
 +
  width: 10em; /* Width to help Opera out */
 +
  background-color: #80ff00;}
 +
#navbar li:hover ul, #navbar li.hover ul {
 +
  display: block;
 +
  position: absolute;
 +
  background-color: #CDB1AE; /*#95466E;*/
 +
  margin: 0;
 +
  padding: 0; }
 +
#navbar li:hover li, #navbar li.hover li {
 +
  float: none; }
 +
#navbar li:hover li a, #navbar li.hover li a {
 +
  background-color: #CDB1AE;
 +
  border-bottom: 1px solid #fff;
 +
  color: white; }
 +
#navbar li li a:hover {
 +
  background-color: #CDB1AE;} /*#95466E; }*/
 +
</style>
<script>
<script>
-
gooeymenu.setup({id:'gooeymenu2', selectitem:1, fx:'swing'})
+
// Javascript originally by Patrick Griffiths and Dan Webb.
 +
// http://htmldog.com/articles/suckerfish/dropdowns/
 +
sfHover = function() {
 +
  var sfEls = document.getElementById("navbar").getElementsByTagName("li");
 +
  for (var i=0; i<sfEls.length; i++) {
 +
      sfEls[i].onmouseover=function() {
 +
        this.className+=" hover";
 +
      }
 +
      sfEls[i].onmouseout=function() {
 +
        this.className=this.className.replace(new RegExp(" hover\\b"), "");
 +
      }
 +
  }
 +
}
 +
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>
</script>
 +
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
 +
<script type="text/javascript">
 +
/* ------------------------------------------------------------------------
 +
s3Slider
 +
 +
Developped By: Boban Karišik -> http://www.serie3.info/
 +
        CSS Help: Mészáros Róbert -> http://www.perspectived.com/
 +
Version: 1.0
 +
 +
Copyright: Feel free to redistribute the script/modify it, as
 +
  long as you leave my infos at the top.
 +
------------------------------------------------------------------------- */
-
<hr />
+
(function($){ 
-
<ul id="gooeymenu3" class="underlinemenu">
+
    $.fn.s3Slider = function(vars) {     
-
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
+
       
-
<li><a href="http://www.dynamicdrive.com/style/">CSS Codes</a></li>
+
        var element    = this;
-
<li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
+
        var timeOut    = (vars.timeOut != undefined) ? vars.timeOut : 4000;
-
<li><a href="http://tools.dynamicdrive.com">Tools</a></li>
+
        var current    = null;
-
<li><a href="http://www.javascriptkit.com/" class="selected">JavaScript</a></li>
+
        var timeOutFn  = null;
-
<li><a href="http://www.cssdrive.com">CSS Gallery</a></li>
+
        var faderStat  = true;
-
</ul>
+
        var mOver      = false;
 +
        var items      = $("#" + element[0].id + "Content ." + element[0].id + "Image");
 +
        var itemsSpan  = $("#" + element[0].id + "Content ." + element[0].id + "Image span");
 +
           
 +
        items.each(function(i) {
 +
   
 +
            $(items[i]).mouseover(function() {
 +
              mOver = true;
 +
            });
 +
           
 +
            $(items[i]).mouseout(function() {
 +
                mOver  = false;
 +
                fadeElement(true);
 +
            });
 +
           
 +
        });
 +
       
 +
        var fadeElement = function(isMouseOut) {
 +
            var thisTimeOut = (isMouseOut) ? (timeOut/2) : timeOut;
 +
            thisTimeOut = (faderStat) ? 10 : thisTimeOut;
 +
            if(items.length > 0) {
 +
                timeOutFn = setTimeout(makeSlider, thisTimeOut);
 +
            } else {
 +
                console.log("Poof..");
 +
            }
 +
        }
 +
       
 +
        var makeSlider = function() {
 +
            current = (current != null) ? current : items[(items.length-1)];
 +
            var currNo      = jQuery.inArray(current, items) + 1
 +
            currNo = (currNo == items.length) ? 0 : (currNo - 1);
 +
            var newMargin  = $(element).width() * currNo;
 +
            if(faderStat == true) {
 +
                if(!mOver) {
 +
                    $(items[currNo]).fadeIn((timeOut/6), function() {
 +
                        if($(itemsSpan[currNo]).css('bottom') == 0) {
 +
                            $(itemsSpan[currNo]).slideUp((timeOut/6), function() {
 +
                                faderStat = false;
 +
                                current = items[currNo];
 +
                                if(!mOver) {
 +
                                    fadeElement(false);
 +
                                }
 +
                            });
 +
                        } else {
 +
                            $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
 +
                                faderStat = false;
 +
                                current = items[currNo];
 +
                                if(!mOver) {
 +
                                    fadeElement(false);
 +
                                }
 +
                            });
 +
                        }
 +
                    });
 +
                }
 +
            } else {
 +
                if(!mOver) {
 +
                    if($(itemsSpan[currNo]).css('bottom') == 0) {
 +
                        $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
 +
                            $(items[currNo]).fadeOut((timeOut/6), function() {
 +
                                faderStat = true;
 +
                                current = items[(currNo+1)];
 +
                                if(!mOver) {
 +
                                    fadeElement(false);
 +
                                }
 +
                            });
 +
                        });
 +
                    }
 +
                }
 +
            }
 +
        }
 +
       
 +
        makeSlider();
-
<script>
+
    }; 
-
gooeymenu.setup({id:'gooeymenu3', fxtime:250})
+
 
 +
})(jQuery); 
 +
    $(document).ready(function() {
 +
        $('#slider').s3Slider({
 +
            timeOut: 5000
 +
        });
 +
    });
</script>
</script>
 +
<style type="text/css" media="screen">
 +
#slider {
 +
    width: 970px; /* important to be same as image width */
 +
    height: 250px; /* important to be same as image height */
 +
    position: relative; /* important */
 +
overflow: hidden; /* important */
 +
margin-left: -2px;
 +
}
 +
#sliderContent {
 +
    width: 970px; /* important to be same as image width or wider */
 +
    position: absolute;
 +
top: 0;
 +
margin-left: 0;
 +
}
 +
.sliderImage {
 +
    float: left;
 +
    position: relative;
 +
display: none;
 +
}
 +
.sliderImage span {
 +
    position: absolute;
 +
font: 10px/15px Arial, Helvetica, sans-serif;
 +
    width: 384px;
 +
display: none;
 +
   
 +
}
 +
.clear {
 +
clear: both;
 +
}
 +
.sliderImage span strong {
 +
    font-size: 14px;
 +
}
 +
.top {
 +
top: 0;
 +
left: 0;
 +
}
 +
.bottom {
 +
bottom: 0;
 +
    left: 0;
 +
}
 +
ul { list-style-type: none;}
 +
</style>
 +
</HEAD>
 +
<BODY>
-
<hr />
+
<div id="slider">
 +
        <ul id="sliderContent">
 +
            <li class="sliderImage">
 +
                <img src="https://static.igem.org/mediawiki/2013/c/c2/Bg1.png" alt="1" />
 +
              <span class = "top"><img src="https://static.igem.org/mediawiki/2013/c/c5/LogoV3.png" alt="1" /></SPAN>
-
<ul id="gooeymenu4" class="framemenu">
+
            </li>
-
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
+
 
-
<li><a href="http://www.dynamicdrive.com/style/">CSS Codes</a></li>
+
           
-
<li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
+
        </ul>
-
<li><a href="http://tools.dynamicdrive.com">Tools</a></li>
+
    </div>
-
<li><a href="http://www.javascriptkit.com/">JavaScript</a></li>
+
  <TABLE height = 80>
-
<li><a href="http://www.cssdrive.com">CSS Gallery</a></li>
+
<TR>
-
</ul>
+
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee"><img src="https://static.igem.org/mediawiki/2013/e/e6/Home_BTN.png"></img></a>
 +
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee/Undergrads"><img src="https://static.igem.org/mediawiki/2013/6/6c/Team_BTN.png"></img></a>
 +
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee/Project"><img src="https://static.igem.org/mediawiki/2013/3/3b/Project_BTN.png"></img></a>
 +
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee/Notebook"><img src="https://static.igem.org/mediawiki/2013/a/ab/Notebook_BTN.png"></img></a>
 +
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee/Parts"><img src="https://static.igem.org/mediawiki/2013/2/26/Parts_BTN.png"></img></a>
 +
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee/Modeling"><img src="https://static.igem.org/mediawiki/2013/3/39/Modeling_BTN.png"></img></a>
 +
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee/Safety"><img src="https://static.igem.org/mediawiki/2013/6/6e/Safety_BTN.png"></img></a>
 +
<TD >
 +
<a href="https://2013.igem.org/Team:MSOE_Milwaukee/Sponsors"><img src="https://static.igem.org/mediawiki/2013/f/f6/Sponsors_BTN.png"></img></a>
 +
<TD  width = 50 height = 80>
 +
<a href="https://2013.igem.org">
 +
<IMG src="https://static.igem.org/mediawiki/2013/d/d2/IGemLogo.png" width = 75 height = 50></IMG></a>
 +
</table>
-
<script>
 
-
gooeymenu.setup({id:'gooeymenu4', snapdelay:500})
 
-
</script>
 
  </BODY>
  </BODY>
 +
 +
</HTML>
</HTML>

Latest revision as of 01:51, 29 July 2013

  • 1 1