Thread: [Phphtmllib-devel] SF.net SVN: phphtmllib:[3373] trunk/open2300/htdocs/js/ticker.js
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-02-26 07:15:24
|
Revision: 3373 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3373&view=rev Author: hemna Date: 2010-02-26 07:15:15 +0000 (Fri, 26 Feb 2010) Log Message: ----------- update now and 60 seconds from now Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:12:30 UTC (rev 3372) +++ trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:15:15 UTC (rev 3373) @@ -9,16 +9,11 @@ function start_ticker() { - set_orig_time(new Date()); + get_data(); + var data = new PeriodicalExecuter(function() { - new Ajax.Request("http://192.168.1.118/?target=ticker", - { method:'get', - asynchronous:true, - onSuccess: function(req,json) { - ticker_data = eval('(' + req.responseText + ')'); - } - }); - },5); + get_data(); + },60); var ticker = new PeriodicalExecuter(function() { @@ -49,6 +44,16 @@ ci++; ri++; } - },3); - + },3); +} + +function get_data() { + new Ajax.Request("http://wx.hemna.com/?target=ticker", + { method:'get', + asynchronous:true, + onSuccess: function(req,json) { + ticker_data = eval('(' + req.responseText + ')'); + } + }); +} } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:22:49
|
Revision: 3376 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3376&view=rev Author: hemna Date: 2010-02-26 07:22:43 +0000 (Fri, 26 Feb 2010) Log Message: ----------- js Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:22:16 UTC (rev 3375) +++ trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:22:43 UTC (rev 3376) @@ -55,5 +55,4 @@ ticker_data = eval('(' + req.responseText + ')'); } }); -} } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-26 07:24:31
|
Revision: 3377 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3377&view=rev Author: hemna Date: 2010-02-26 07:24:25 +0000 (Fri, 26 Feb 2010) Log Message: ----------- fixed length access Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:22:43 UTC (rev 3376) +++ trunk/open2300/htdocs/js/ticker.js 2010-02-26 07:24:25 UTC (rev 3377) @@ -23,7 +23,7 @@ clength = ticker_data.middle.length; rlength = ticker_data.right.length; - if (ci >= clength) { + if (ci >= clength-1) { ci = 0; } @@ -32,7 +32,7 @@ Effect.Appear('headtopcenter', {duration: 0.5}); }}); - if (ri >= rlength) { + if (ri >= rlength-1) { ri = 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-03-03 23:06:13
|
Revision: 3426 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3426&view=rev Author: hemna Date: 2010-03-03 23:06:07 +0000 (Wed, 03 Mar 2010) Log Message: ----------- start event Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-03-03 23:04:50 UTC (rev 3425) +++ trunk/open2300/htdocs/js/ticker.js 2010-03-03 23:06:07 UTC (rev 3426) @@ -2,6 +2,7 @@ * This file manages updating and showing the ticker * above the banner image. */ +Event.observe(window, 'load', start_ticker); var ticker_data; var ci=0; @@ -48,7 +49,7 @@ } function get_data() { - new Ajax.Request("http://wx.hemna.com/?target=ticker", + new Ajax.Request("/?target=ticker", { method:'get', asynchronous:true, onSuccess: function(req,json) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-03-06 18:16:53
|
Revision: 3431 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3431&view=rev Author: hemna Date: 2010-03-06 18:16:47 +0000 (Sat, 06 Mar 2010) Log Message: ----------- 5 seconds Modified Paths: -------------- trunk/open2300/htdocs/js/ticker.js Modified: trunk/open2300/htdocs/js/ticker.js =================================================================== --- trunk/open2300/htdocs/js/ticker.js 2010-03-06 18:13:10 UTC (rev 3430) +++ trunk/open2300/htdocs/js/ticker.js 2010-03-06 18:16:47 UTC (rev 3431) @@ -45,7 +45,7 @@ ci++; ri++; } - },3); + },5); } function get_data() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |