Team:SUSTC-Shenzhen-A/tutorial

From 2012.igem.org

(Difference between revisions)
Line 175: Line 175:
<p>
<p>
-
 
-
<div align="center"><div id=AdRotator></div></div>
 
-
 
-
 
-
<SCRIPT LANGUAGE="JavaScript">
 
-
<!--
 
-
function adRotator() {};
 
-
adRotator.initialize=function(o)
 
-
{
 
-
// script by blueDestiny
 
-
this._t = new Array();
 
-
this._l = new Array();
 
-
this._p = new Array();
 
-
this._i = new Image();
 
-
this._c = 0;
 
-
this._f = false;
 
-
this._o = o;
 
-
this._timeout = null;
 
-
this._html = "";
 
-
// configration.
 
-
// @ image width
 
-
// @ image height
 
-
// @ rotator speed
 
-
// @ filter type
 
-
this._w = 300;
 
-
this._h = 500;
 
-
this._s = 4;
 
-
this._x = 23;
 
-
return this;
 
-
};
 
-
adRotator.add=function(p,t,l) { with (this)
 
-
{
 
-
_p.push(p);
 
-
_t.push(t);
 
-
_l.push(l);
 
-
}};
 
-
adRotator.load=function() { with (adRotator)
 
-
{
 
-
if( _i.readyState=='complete' )
 
-
{
 
-
if(_p.length-1==_c)
 
-
{
 
-
_f = true;
 
-
_c = 0;
 
-
window.clearTimeout(_timeout);
 
-
//getRef("AdRotator").innerHTML="complete";
 
-
adRotator.play();
 
-
}
 
-
else
 
-
{
 
-
_c++;
 
-
getRef(_o).innerHTML="total images " + _p.length + ", loading picture " + _c + ' ' + _i.readyState + "...";
 
-
_timeout=window.setTimeout(adRotator.load,10)
 
-
}
 
-
}
 
-
else
 
-
{
 
-
getRef(_o).innerHTML="total images " + _p.length + ", loading picture " + _c + ' ' + _i.readyState + "...";
 
-
_timeout=window.setTimeout(adRotator.load,10)
 
-
}
 
-
}};
 
-
adRotator.play=function() { with (adRotator)
 
-
{
 
-
if( _f )
 
-
{
 
-
_html = "";
 
-
_html += '<table style="border:1px solid #333333;"><tr><td style="font-size:9pt;font-family:tahoma;font-weight:bold;">'
 
-
_html += '<div id="rotatorPlayer"'
 
-
+ ' style="width:' + _w + ''
 
-
+ ';height:"' + _h + '"'
 
-
+ '>'
 
-
_html += '<a href="' + ( _l[_c] ? _l[_c] : "javascript:void(0);" ) + '">';
 
-
_html += '<img id="rotatorPic" src="' + _p[_c] + '"'
 
-
+ ' width="' + _w + '"'
 
-
+ ' height="' + _h + '"'
 
-
+ (_t[_c]?' title="' + _t[_c] + '"':'')
 
-
+ ' style="border:1px solid blue;FILTER:revealTrans(transition=' + _x + ',duration=1);"'
 
-
+ ' >';
 
-
_html += (_t[_c]?('<div align="center">' + (_c+1) + '. ' + _t[_c] + '</div>'):'<p></p>');
 
-
_html += '</a>';
 
-
_html += "</div>";
 
-
_html += '<div align="right">';
 
-
for(var i=0; i<_p.length; i++)
 
-
_html += '<span'
 
-
+ ' style="border:1px solid #333333;padding:1px 5px 1px 5px;height:20px;text-align:center;cursor:'
 
-
+ (_c==i ? ('default;background-color:red;"') : 'hand;" onclick="adRotator.select(' + i + ')"')
 
-
+ '>'
 
-
+ (i>8?(i+1):('0'+(i+1)))+ '</span> ';
 
-
_html += "</div></td></tr></table>";
 
-
getRef(_o).innerHTML = _html;
 
-
getRef("rotatorPic").filters[0].Apply();
 
-
getRef("rotatorPic").filters[0].Play();
 
-
next();
 
-
}
 
-
else
 
-
{
 
-
_i.src = _p[_c];
 
-
adRotator.load();
 
-
}
 
-
}};
 
-
adRotator.next=function() { with (this)
 
-
{
 
-
(_p.length-1==_c) ? _c=0 : _c++;
 
-
_timeout=window.setTimeout(adRotator.play,_s*3000);
 
-
}};
 
-
adRotator.select=function(i) { with (this)
 
-
{
 
-
window.clearTimeout(_timeout);
 
-
_c=i;
 
-
adRotator.play();
 
-
}};
 
-
adRotator.set=function(second) { with (this)
 
-
{
 
-
window.clearTimeout(_timeout);
 
-
if((/\d+/).test(second)==true)
 
-
{
 
-
_s=second;
 
-
adRotator.play();
 
-
}
 
-
else
 
-
{
 
-
alert("must be digit!")
 
-
adRotator.play();
 
-
}
 
-
}};
 
-
function getRef(id)
 
-
{
 
-
return (document.all?document.all(id):document.getElementById(id));
 
-
}
 
-
adRotator.initialize("AdRotator");
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_01.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_02.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_03.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_04.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_05.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_06.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_07.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_08.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_09.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_10.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_11.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_12.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_13.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_14.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_15.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_16.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_17.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_18.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_19.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_20.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_21.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_22.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_23.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_24.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_25.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_26.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_27.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_28.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_29.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_30.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_31.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.add("http://taftproot.gotoip2.com/ld/img/tutorial_32.png","aaaaaaaaaaaaaaaaaaaaaaa")
 
-
adRotator.play();
 
-
//-->
 
-
</SCRIPT>
 
 +
<div id="HackBox1" class="HackBox" style="width:100%;display:none;">
 +
<div align="center">
 +
<table border="0" width="95%" cellpadding="0" style="border-collapse: collapse" height="90" id="table1">
 +
<tr>
 +
<td style="line-height: 150%"><b>把男人当玩物的女人</b><br>
 +
  她的爱情字典里没有“唯一”这两个字,她懂的利用女人的天赋来让男人心悦诚服,从不同的男人身上获取不同的需求,同时却巧妙地让每个人都以为是她的最爱,除非能抱着大家一起玩的心态,否则小心。</td>
 +
</tr>
 +
</table>
 +
</div>
 +
</div>
 +
<div id="HackBox2" class="HackBox" style="width:100%;display:block;">
 +
<div align="center">
 +
<table border="0" width="95%" cellpadding="0" style="border-collapse: collapse" height="90" id="table2">
 +
<tr>
 +
<td style="line-height: 150%"><b>拜金主义的女人</b> <br>
 +
  她不会看上穷光蛋,因为她的爱情首先建立在物质的满足上,她知道花男人的钱比自己辛苦赚来的钱容易,这是她限定和男人交往的条件。和她交往,总有金山银山被挖光的一天,那时只有落的人财两空的局面。</td>
 +
</tr>
 +
</table>
 +
</div>
 +
</div>

Revision as of 03:20, 16 September 2012

The pictures of each step

拜金主义的女人
  她不会看上穷光蛋,因为她的爱情首先建立在物质的满足上,她知道花男人的钱比自己辛苦赚来的钱容易,这是她限定和男人交往的条件。和她交往,总有金山银山被挖光的一天,那时只有落的人财两空的局面。