Repository navigation
Expand file tree
/
Copy pathtest.php
More file actions
83 lines (78 loc) · 4.33 KB
/
Copy pathtest.php
File metadata and controls
83 lines (78 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
var d = new Date('2012-07-09');
var count = 0;
function imgChange(){
//var srcVal=$("#myImage").attr("src");
//var len = srcVal.search("icon_doc.gif");
try{
d.setDate(d.getDate() + 1);
if(count>10){
count =0;
d = new Date('2012-07-09');
}else{
count=count+1;
}
$("#i_0_0").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/0/0.jpg");
$("#i_0_1").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/0/1.jpg");
$("#i_0_2").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/0/2.jpg");
$("#i_1_0").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/1/0.jpg");
$("#i_1_1").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/1/1.jpg");
$("#i_1_2").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/1/2.jpg");
$("#i_2_0").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/2/0.jpg");
$("#i_2_1").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/2/1.jpg");
$("#i_2_2").attr("src", "http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/"+d.getFullYear()+"-"+addzero(d.getMonth()+1)+"-"+addzero(d.getDate()+1)+"/EPSG4326_250m/3/2/2.jpg");
}catch(err)
{
alert("Error description: " + err.message);
}
}
function addzero(number){
if(number<10){
return '0' + number;
}else{
return number;
}
}
setInterval( "imgChange()", 2000);
</script>
</head>
<body>
<table>
<tr>
<td>
<img id="i_0_0" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/0/0.jpg" width="150" />
</td>
<td>
<img id="i_0_1" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/0/1.jpg" width="150" />
</td>
<td>
<img id="i_0_2" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/0/2.jpg" width="150" />
</td>
</tr>
<tr>
<td>
<img id="i_1_0" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/1/0.jpg" width="150" />
</td>
<td>
<img id="i_1_1" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/1/1.jpg" width="150" />
</td>
<td>
<img id="i_1_2" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/1/2.jpg" width="150" />
</td>
</tr>
<tr>
<td>
<img id="i_2_0" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/2/0.jpg" width="150" />
</td>
<td>
<img id="i_2_1" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/2/1.jpg" width="150" />
</td>
<td>
<img id="i_2_2" src="http://map1.vis.earthdata.nasa.gov/wmts-geo/MODIS_Terra_CorrectedReflectance_TrueColor/default/2012-07-09/EPSG4326_250m/3/2/2.jpg" width="150" />
</td>
</tr>
</table>
</body> </html>