Difference between revisions of "Team:Hong Kong HKUST/Team"

Line 13: Line 13:
 
           usemap="teammap">
 
           usemap="teammap">
 
           <map name="teammap">
 
           <map name="teammap">
               <area shape="rect" onmouseover="PopUp('William')" onmouseout="Hide('William')" coords="50,132,241,428"  
+
               <area shape="rect" <!--onmouseover="PopUp('William')" onmouseout="Hide('William')"--> coords="50,132,241,428"  
 
                   alt="william">
 
                   alt="william">
               <area shape="rect" onmouseover="PopUp('Devi')" onmouseout="Hide('Devi')"coords="302,133,524,428" alt="Devi">
+
               <area shape="rect" <!--onmouseover="PopUp('Devi')" onmouseout="Hide('Devi')"--> coords="302,133,524,428" alt="Devi">
               <area shape="rect" onmouseover="PopUp('Alvin')" onmouseout="Hide('Alvin')" coords="569,136,777,424" alt="Alvin">
+
               <area shape="rect" <!--onmouseover="PopUp('Alvin')" onmouseout="Hide('Alvin')"--> coords="569,136,777,424" alt="Alvin">
               <area shape="rect" onmouseover="PopUp('Harold')" onmouseout="Hide('Harold')" coords="835,138,1037,425" alt="Harold">
+
               <area shape="rect" <!--onmouseover="PopUp('Harold')" onmouseout="Hide('Harold')"--> coords="835,138,1037,425" alt="Harold">
               <area shape="rect" onmouseover="PopUp('Handi')" onmouseout="Hide('Handi')" coords="18,436,276,744" alt="Harold">
+
               <area shape="rect" <!--onmouseover="PopUp('Handi')" onmouseout="Hide('Handi')"--> coords="18,436,276,744" alt="Harold">
 
           </map>
 
           </map>
 
   
 
   
Line 89: Line 89:
 
                 var dot, eventDoc, doc, body, pageX, pageY;
 
                 var dot, eventDoc, doc, body, pageX, pageY;
  
                 event = event || window.event; // IE-ism
+
                 event = event || window.event; //IE-ism
  
 
                 // If pageX/Y aren't available and clientX/Y are,
 
                 // If pageX/Y aren't available and clientX/Y are,
 
                 // calculate pageX/Y - logic taken from jQuery.
 
                 // calculate pageX/Y - logic taken from jQuery.
 
                 // (This is to support old IE)
 
                 // (This is to support old IE)
                 //if (event.pageX == null&&event.clientX != null) {
+
                 if (event.pageX == null&&event.clientX != null) {
 
                     eventDoc = (event.target&&event.target.ownerDocument) || document;
 
                     eventDoc = (event.target&&event.target.ownerDocument) || document;
 
                     doc = eventDoc.documentElement;
 
                     doc = eventDoc.documentElement;
Line 105: Line 105:
 
                     (doc&&doc.scrollTop  || body&&body.scrollTop  || 0) -
 
                     (doc&&doc.scrollTop  || body&&body.scrollTop  || 0) -
 
                     (doc&&doc.clientTop  || body&&body.clientTop  || 0 );
 
                     (doc&&doc.clientTop  || body&&body.clientTop  || 0 );
                 //}
+
                 }
 
+
  
 +
              document.getElementById("x")=event.pageX;
 +
              document.getElementById("y")=event.pageY;
 +
              /*
 
               var modal = document.getElementById('openModal');
 
               var modal = document.getElementById('openModal');
 
               modal.style.position = absolute;
 
               modal.style.position = absolute;
 
               modal.style.left = event.pageX+'px';
 
               modal.style.left = event.pageX+'px';
 
               modal.style.top = event.pageY+'px';
 
               modal.style.top = event.pageY+'px';
 +
              */
 
           }
 
           }
 
    
 
    

Revision as of 10:29, 3 September 2017

HKUST iGEM Team 2017

Name:


coorX: CoorY:

Team coords="50,132,241,428" alt="william"> coords="302,133,524,428" alt="Devi"> coords="569,136,777,424" alt="Alvin"> coords="835,138,1037,425" alt="Harold"> coords="18,436,276,744" alt="Harold">

Our Advisors

Eric
Eric Cheung


Footer