<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; JavaScript: видео плеер крутилка по точному времени]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=6883</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6883&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «JavaScript: видео плеер крутилка по точному времени».]]></description>
		<lastBuildDate>Wed, 29 Feb 2012 09:50:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[JavaScript: видео плеер крутилка по точному времени]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=57341#p57341</link>
			<description><![CDATA[<p>привет, есть следующий скрипт который отображает периодически изображение и ссылку, нужно добавить возможность и изменения:<br />1) отображать вместо изображение и ссылки код видео плеера (пример: код youtube видео плеера)<br />2) код плеера отображался по точной серверной времени в будущем или временни компьютера пользователя но с учетом разницей во времени между сервером и компьютером пользователя<br />3) по этому принципу скрипт отображал несколько по очередь индивидуальных видео плееров<br />в конечном итоге получается что меняем изображение и ссылка на видео плеер и периодичная отображение на точное отображение по времени, если можете консультировать какие изменения или добавления нужно делать в скрипте или посоветовать скрипт с указанами функциями, спасибо за консультацию</p><div class="codebox"><pre><code>&lt;!-- STEP ONE: Paste this code into the BODY of your HTML document  --&gt;
&lt;script language=&quot;JavaScript&quot;&gt;
&lt;!--
function adArray() {
 for (i=0; i*2&lt;adArray.arguments.length; i++) {
  this[i] = new Object();
  this[i].src = adArray.arguments[i*2];
  this[i].href = adArray.arguments[i*2+1];
 }
 this.length = i;
}
function getAdNum() {
 dat = new Date();
 dat = (dat.getTime()+&quot;&quot;).charAt(8);
 if (dat.length == 1)
  ad_num = dat%ads.length;
 else
  ad_num = 0;
 return ad_num;
}
/*this array follows this pattern -&gt; path to first image, first image link, path to second image, second image link....*/
var ads = new adArray(
&quot;http://site.com/image.gif&quot;,
&quot;http://site.com/page.htm&quot;
);
var ad_num = getAdNum(); // don&#039;t change this line
document.write(&#039;&lt;div align=&quot;center&quot;&gt;&lt;table cellpadding=0 cellspacing=1 border=0&gt;&lt;tr&gt;&lt;td&gt;&#039;
+&#039;&lt;noindex&gt;&lt;A rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;&#039;+ads[ad_num].href+&#039;&quot;&gt;&lt;IMG SRC=&quot;&#039;+ads[ad_num].src+&#039;&quot; &#039;
+&#039;border=&quot;0&quot; name=&quot;js_ad&quot;&gt;&lt;/a&gt;&lt;/noindex&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&#039;);
// ****** YOU NEED NOT MODIFY ANYTHING THAT IS NOT IN BETWEEN THESE TWO COMMENTS ****
link_num = document.links.length-1;
function rotateSponsor() {
 if (document.images) {
  ad_num = (ad_num+1)%ads.length;
  document.js_ad.src = ads[ad_num].src;
  document.links[link_num].href = ads[ad_num].href;
  setTimeout(&quot;rotateSponsor()&quot;,5000);
 }
}
setTimeout(&quot;rotateSponsor()&quot;,5000);
// --&gt;
&lt;/script&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (sky)]]></author>
			<pubDate>Wed, 29 Feb 2012 09:50:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=57341#p57341</guid>
		</item>
	</channel>
</rss>
