[Phphtmllib-devel] SF.net SVN: phphtmllib:[3229] trunk/open2300
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-03-01 20:09:35
|
Revision: 3229 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3229&view=rev Author: hemna Date: 2009-03-01 20:09:25 +0000 (Sun, 01 Mar 2009) Log Message: ----------- update the radar image along with the other images Modified Paths: -------------- trunk/open2300/htdocs/js/main.js trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2009-03-01 17:35:12 UTC (rev 3228) +++ trunk/open2300/htdocs/js/main.js 2009-03-01 20:09:25 UTC (rev 3229) @@ -69,6 +69,15 @@ $('idWindSpeedLineGraphdiv').appendChild(img); Effect.Appear('idWindSpeedLineGraph', {duration: 0.7}); }}); + + Effect.Fade('idRadarImg', {duration: 0.3, afterFinish: function() { + img = new Image(); + img.src = "http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0"; + img.id='idRadarImg'; + $('idRadardiv').update(); + $('idRadardiv').appendChild(img); + Effect.Appear('idRadarImg', {duration: 0.7}); + }}); }, 65); Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 17:35:12 UTC (rev 3228) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 20:09:25 UTC (rev 3229) @@ -72,7 +72,10 @@ $rain_img->set_id('idRainLineGraph'); $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$rain_img)); - $right_div->add(IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0")); + $radar_img = IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0"); + $radar_img->set_id('idRadarImg'); + + $right_div->add(new DIVtag(array('id' => 'idRadardiv'),$radar_img)); return $right_div; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |