<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JS:отловить клик по встроенной рекламе]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8641&amp;type=atom" />
	<updated>2013-09-01T21:27:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8641</id>
		<entry>
			<title type="html"><![CDATA[Re: JS:отловить клик по встроенной рекламе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75162#p75162" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>aleks_lv пишет:</cite><blockquote><p>Смысл то понятен</p></blockquote></div><p>Непонятен именно смысл: ни что, ни зачем.</p>]]></content>
			<author>
				<name><![CDATA[shiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26249</uri>
			</author>
			<updated>2013-09-01T21:27:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75162#p75162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JS:отловить клик по встроенной рекламе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75160#p75160" />
			<content type="html"><![CDATA[<p><span class="bbu">предложения начинаются с заглавной буквы и заканчиваются точкой</span><br /> Смысл то понятен...Вы же не преподаватель русского языка.<br />Мне б по существу</p>]]></content>
			<author>
				<name><![CDATA[aleks_lv]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30638</uri>
			</author>
			<updated>2013-09-01T19:30:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75160#p75160</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JS:отловить клик по встроенной рекламе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75159#p75159" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>aleks_lv</strong>, оформите тему грамотно:</span><br /></p><ul><li><p>заголовок темы должен содержать префикс скриптового языка</p></li><li><p>ссылки оформляются тегом URL</p></li><li><p>предложения начинаются с заглавной буквы и заканчиваются точкой</p></li></ul>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-09-01T19:11:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75159#p75159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JS:отловить клик по встроенной рекламе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75158#p75158" />
			<content type="html"><![CDATA[<p>есть на странице встроенная реклама ..типа этого<a href="http://%20http://blogmy.p.ht/4"> http://blogmy.p.ht/4</a><br /> как отловить клик по ней ,что бы делать на своей странице что свое,если кликнули..что то пока не получается..в каком направлении мыслить<br />сделал типа такого ..при закрытии срабатывает 100 процентов ...при клике не всегда<br /></p><div class="codebox"><pre><code>
function LoadTarget() {
    self = {
        
        work:function()
            {var indf=localStorage.getItem(&#039;index&#039;),
                 c =location.href+&quot;load/&quot;+indf+&quot;.rar&quot;;
                 c=c.replace(&#039;#&#039;,&#039;&#039;);
                 location.href=c;
                // console.log(c)

             },
        interv: function () {
            setTimeout(function () {
                    var int = setInterval(function () {
                        var t = $(&#039;#amsb&#039;).html();
                        if (t == &quot;&quot;) {
                            self.work();
                            
                            clearInterval(int);
                        } else {
                            console.log(&#039;не пусто&#039;)
                        }

                    }, 500)
                },
                3000
            )

        },
        init: function () {
            self.interv();

        }
    }
    return self.init();
}

LoadTarget();

</code></pre></div><p>суть в том что проверяю $(&#039;#amsb&#039;).html(); какой там текст(это блок который заполняет скрипт рекламы) ..если пусто то делаю что надо<br />но это точно клик не определяет&nbsp; &nbsp;иногда не срабатывает</p>]]></content>
			<author>
				<name><![CDATA[aleks_lv]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30638</uri>
			</author>
			<updated>2013-09-01T18:34:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75158#p75158</id>
		</entry>
</feed>
