Skip to content

Commit

Permalink
初步完成白天黑夜切换
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-lin committed Apr 26, 2012
1 parent a9b41ed commit 3a1539e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.html
Expand Up @@ -47,7 +47,7 @@
*/
</pre>
</div>
<img src="images/logo.png" alt="sun" id="sun-face" style=" border-radius: 4em 4em 4em 4em; box-shadow: 2px 3px 1px; left: 432px; position: absolute; top: 384px; width: 112px; ">
<img src="images/logo.png" style=" border-radius: 4em 4em 4em 4em; box-shadow: 2px 3px 1px; left: 405px; position: absolute; top: 384px; width: 112px; ">
<div id="photo-show"></div>
<div id="weather"></div>
</div>
Expand Down Expand Up @@ -104,10 +104,19 @@ <h2>< Work Hard ></h2>
dayTime = "night";
changeBackGround(dayTime);
$("#day_change").html("白天");
weatherHtmlFile = "night.html";
weather.load(weatherHtmlFile,function(){
start(dayTime)
});
}else{
dayTime = "sun";
changeBackGround(dayTime);
$("#day_change").html("黑夜");
weatherHtmlFile = "sun.html";
weather.load(weatherHtmlFile,function(){
start(dayTime)
});

}
})

Expand Down

0 comments on commit 3a1539e

Please sign in to comment.