Team:HZAU-China/Human practice

From 2013.igem.org

(Difference between revisions)
Line 8: Line 8:
<script language="javascript">
<script language="javascript">
pic={
pic={
-
href:"https://static.igem.org/mediawiki/2013/8/80/Old_wall.jpg",
+
href:"https://static.igem.org/mediawiki/2013/f/fd/%E7%BD%91%E9%A1%B5%E6%A0%87%E9%A2%98%EF%BC%88%E6%97%A0igem%E5%9B%BE%E6%A0%87%EF%BC%89.jpg";
-
boxSize:250,
+
boxSize:250;
-
width:1330,
+
width:1330;
-
height:2128,
+
height:2128;
creatImg:function(id){//创建图片
creatImg:function(id){//创建图片
var width = $("#"+id).css("width");
var width = $("#"+id).css("width");
Line 46: Line 46:
var that = this;
var that = this;
$("#bigImg").css({
$("#bigImg").css({
-
width:that.boxSize,
+
width:that.boxSize;
-
height:that.boxSize,
+
height:that.boxSize;
-
border:"#FFF 5px solid",
+
border:"#FFF 5px solid";
-
position:"absolute",
+
position:"absolute";
-
top:that.bigBoxPost(x,y)[1],
+
top:that.bigBoxPost(x,y)[1];
-
left:that.bigBoxPost(x,y)[0],
+
left:that.bigBoxPost(x,y)[0];
-
background:"url("+that.href+") no-repeat",
+
background:"url("+that.href+") no-repeat";
backgroundPosition:that.bigLoadPost(x,y)[0]+"px "+that.bigLoadPost(x,y)[1]+"px"
backgroundPosition:that.bigLoadPost(x,y)[0]+"px "+that.bigLoadPost(x,y)[1]+"px"
})
})

Revision as of 05:11, 2 September 2013