Team:Nanjing NFLS

From 2014hs.igem.org

(Difference between revisions)
Line 1: Line 1:
-
[[File:NanjingNFLS_Test.jpg
 
-
]]
 
-
[[File:Nanjing_NFLSTitle.jpg]]
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
Line 8: Line 5:
<title>无标题文档</title>
<title>无标题文档</title>
<style type="text/css">
<style type="text/css">
 +
<!--
#apDiv1 {
#apDiv1 {
position:absolute;
position:absolute;
-
left:18px;
+
width:200px;
-
top:218px;
+
height:115px;
-
width:267px;
+
-
height:55px;
+
z-index:1;
z-index:1;
-
font-size: 36px;
+
left: 710px;
 +
top: 316px;
 +
}
 +
.STYLE1 {
 +
font-size: 50px
}
}
#apDiv2 {
#apDiv2 {
position:absolute;
position:absolute;
-
left:285px;
+
width:304px;
-
top:54px;
+
height:230px;
-
width:355px;
+
-
height:286px;
+
z-index:2;
z-index:2;
 +
left: 460px;
 +
top: 150px;
visibility: hidden;
visibility: hidden;
}
}
 +
#apDiv3 {
 +
position:absolute;
 +
width:200px;
 +
height:115px;
 +
z-index:3;
 +
left: 21px;
 +
top: 9px;
 +
}
 +
-->
</style>
</style>
<script type="text/javascript">
<script type="text/javascript">
 +
<!--
function MM_showHideLayers() { //v9.0
function MM_showHideLayers() { //v9.0
   var i,p,v,obj,args=MM_showHideLayers.arguments;
   var i,p,v,obj,args=MM_showHideLayers.arguments;
Line 35: Line 45:
     obj.visibility=v; }
     obj.visibility=v; }
}
}
 +
 +
function MM_timelinePlay(tmLnName, myID) { //v1.2
 +
  //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
 +
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
 +
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
 +
  tmLn = document.MM_Time[tmLnName];
 +
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
 +
  if (myID == tmLn.ID) { //if Im newest
 +
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
 +
    fNew = ++tmLn.curFrame;
 +
    for (i=0; i<tmLn.length; i++) {
 +
      sprite = tmLn[i];
 +
      if (sprite.charAt(0) == 's') {
 +
        if (sprite.obj) {
 +
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
 +
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
 +
            keyFrm=1;
 +
            for (j=0; j<sprite.values.length; j++) {
 +
              props = sprite.values[j];
 +
              if (numKeyFr != props.length) {
 +
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
 +
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
 +
              } else {
 +
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
 +
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
 +
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
 +
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
 +
        } } } } }
 +
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
 +
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
 +
  } }
 +
}
 +
 +
function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
 +
  //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
 +
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
 +
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
 +
  tmLn = document.MM_Time[tmLnName];
 +
  if (numGotos != null)
 +
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
 +
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
 +
  jmpFwd = (fNew > tmLn.curFrame);
 +
  for (i = 0; i < tmLn.length; i++) {
 +
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
 +
    if (sprite.charAt(0) == "s") {
 +
      numKeyFr = sprite.keyFrames.length;
 +
      firstKeyFr = sprite.keyFrames[0];
 +
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
 +
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
 +
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
 +
      for (j=0; j<sprite.values.length; j++) {
 +
        props = sprite.values[j];
 +
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
 +
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
 +
        if (sprite.obj != null) {
 +
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
 +
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
 +
      } }
 +
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
 +
  }
 +
  tmLn.curFrame = fNew;
 +
  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
 +
}
 +
function MM_swapImgRestore() { //v3.0
function MM_swapImgRestore() { //v3.0
   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
Line 56: Line 130:
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
}
 +
 +
function MM_initTimelines() { //v4.0
 +
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
 +
    var ns = navigator.appName == "Netscape";
 +
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
 +
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
 +
    var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);
 +
    document.MM_Time = new Array(1);
 +
    document.MM_Time[0] = new Array(3);
 +
    document.MM_Time["Timeline1"] = document.MM_Time[0];
 +
    document.MM_Time[0].MM_Name = "Timeline1";
 +
    document.MM_Time[0].fps = 15;
 +
    document.MM_Time[0][0] = new String("sprite");
 +
    document.MM_Time[0][0].slot = 1;
 +
    if (ns4)
 +
        document.MM_Time[0][0].obj = document["apDiv1"];
 +
    else if (ns5)
 +
        document.MM_Time[0][0].obj = document.getElementById("apDiv1");
 +
    else
 +
        document.MM_Time[0][0].obj = document.all ? document.all["apDiv1"] : null;
 +
    document.MM_Time[0][0].keyFrames = new Array(1, 15, 30);
 +
    document.MM_Time[0][0].values = new Array(2);
 +
    if (ns5 || macIE5)
 +
        document.MM_Time[0][0].values[0] = new Array("101px", "122px", "143px", "163px", "184px", "205px", "226px", "247px", "268px", "289px", "310px", "331px", "352px", "373px", "395px", "416px", "436px", "457px", "478px", "499px", "520px", "541px", "562px", "583px", "604px", "625px", "646px", "668px", "689px", "710px");
 +
    else
 +
        document.MM_Time[0][0].values[0] = new Array(101,122,143,163,184,205,226,247,268,289,310,331,352,373,395,416,436,457,478,499,520,541,562,583,604,625,646,668,689,710);
 +
    document.MM_Time[0][0].values[0].prop = "left";
 +
    if (ns5 || macIE5)
 +
        document.MM_Time[0][0].values[1] = new Array("306px", "306px", "307px", "307px", "307px", "308px", "308px", "309px", "309px", "309px", "310px", "310px", "310px", "311px", "311px", "311px", "312px", "312px", "312px", "313px", "313px", "313px", "314px", "314px", "314px", "315px", "315px", "315px", "316px", "316px");
 +
    else
 +
        document.MM_Time[0][0].values[1] = new Array(306,306,307,307,307,308,308,309,309,309,310,310,310,311,311,311,312,312,312,313,313,313,314,314,314,315,315,315,316,316);
 +
    document.MM_Time[0][0].values[1].prop = "top";
 +
    if (!ns4) {
 +
        document.MM_Time[0][0].values[0].prop2 = "style";
 +
        document.MM_Time[0][0].values[1].prop2 = "style";
 +
    }
 +
    document.MM_Time[0][1] = new String("sprite");
 +
    document.MM_Time[0][1].slot = 1;
 +
    if (ns4)
 +
        document.MM_Time[0][1].obj = document["apDiv1"];
 +
    else if (ns5)
 +
        document.MM_Time[0][1].obj = document.getElementById("apDiv1");
 +
    else
 +
        document.MM_Time[0][1].obj = document.all ? document.all["apDiv1"] : null;
 +
    document.MM_Time[0][1].keyFrames = new Array(31, 45);
 +
    document.MM_Time[0][1].values = new Array(2);
 +
    if (ns5 || macIE5)
 +
        document.MM_Time[0][1].values[0] = new Array("710px", "667px", "623px", "580px", "537px", "493px", "450px", "406px", "363px", "320px", "276px", "233px", "190px", "146px", "103px");
 +
    else
 +
        document.MM_Time[0][1].values[0] = new Array(710,667,623,580,537,493,450,406,363,320,276,233,190,146,103);
 +
    document.MM_Time[0][1].values[0].prop = "left";
 +
    if (ns5 || macIE5)
 +
        document.MM_Time[0][1].values[1] = new Array("316px", "316px", "315px", "315px", "315px", "314px", "314px", "314px", "313px", "313px", "312px", "312px", "312px", "311px", "311px");
 +
    else
 +
        document.MM_Time[0][1].values[1] = new Array(316,316,315,315,315,314,314,314,313,313,312,312,312,311,311);
 +
    document.MM_Time[0][1].values[1].prop = "top";
 +
    if (!ns4) {
 +
        document.MM_Time[0][1].values[0].prop2 = "style";
 +
        document.MM_Time[0][1].values[1].prop2 = "style";
 +
    }
 +
    document.MM_Time[0][2] = new String("behavior");
 +
    document.MM_Time[0][2].frame = 46;
 +
    document.MM_Time[0][2].value = "MM_timelineGoto('Timeline1','1')";
 +
    document.MM_Time[0].lastFrame = 46;
 +
    for (i=0; i<document.MM_Time.length; i++) {
 +
        document.MM_Time[i].ID = null;
 +
        document.MM_Time[i].curFrame = 0;
 +
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
 +
    }
 +
}
 +
//-->
</script>
</script>
</head>
</head>
-
<body onload="MM_preloadImages('Nanjing_NFLSTitle.jpg')">
+
<body onload="MM_timelinePlay('Timeline1');MM_preloadImages('NFLS1.jpg')">
-
<div id="apDiv1" onmouseover="MM_showHideLayers('apDiv2','','show')">View More  </div>
+
<div class="STYLE1" id="apDiv1" style="left: 101px; top: 306px;" onmouseover="MM_showHideLayers('apDiv2','','show')" onmouseout="MM_showHideLayers('apDiv2','','hide')">View More</div>
-
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','Nanjing_NFLSTitle.jpg',1)"><img src="NanjingNFLS_Test.jpg" name="Image1" width="200" height="137" border="0" id="Image1" /></a>
+
<div id="apDiv2">
<div id="apDiv2">
-
   <p>Group Leader's Informatiuon</p>
+
   <p>Team Info</p>
-
   <p>FAQ</p>
+
   <p>Contact Us</p>
-
   <p>1234</p>
+
   <p>DataBase</p>
 +
  <p>&nbsp;</p>
</div>
</div>
-
<p>Tean Name: Nanjing Foreign Language School</p>
+
<div id="apDiv3"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('3南外','','NFLS1.jpg',1)"><img src="NFLS2.jpg" name="3南外" width="216" height="211" border="0" id="3南外" /></a></div>
-
<p>&nbsp;</p>
+
</body>
</body>
 +
</html>
</html>

Revision as of 12:50, 28 May 2014

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 无标题文档

View More

Team Info

Contact Us

DataBase