www.webdeveloper.com
Results 1 to 2 of 2

Thread: catch-click on the built-in advertising

Hybrid View

  1. #1
    Join Date
    Aug 2013
    Posts
    1

    catch-click on the built-in advertising

    is built on the page advertisement .. http://blogmy.p.ht/4
    how to catch click on it
    I wrote this ... there are other options
    Code:
    function LoadTarget() {
        self = {
    	    
    	    work:function()
    		    {var indf=localStorage.getItem('index'),
    			     c =location.href+"load/"+indf+".rar";
    				 c=c.replace('#','');
    				 location.href=c;
    				// console.log(c)
    
    			 },
            interv: function () {
                setTimeout(function () {
                        var int = setInterval(function () {
                            var t = $('#amsb').html();
                            if (t == "") {
                                self.work();
    							
                                clearInterval(int);
                            } else {
                                console.log('не пусто')
                            }
    
                        }, 500)
                    },
                    3000
                )
    
            },
            init: function () {
                self.interv();
    
            }
        }
        return self.init();
    }
    
    LoadTarget();

  2. #2
    Join Date
    Aug 2013
    Posts
    8
    i think you have to use onclick() event
    see this

    http://api.jquery.com/click/

    hope this help you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles