Thread: share popup
View Single Post
Old 10-01-2012, 10:27 PM   PM User | #6
Chris-2k
Regular Coder

 
Join Date: May 2011
Posts: 303
Thanks: 29
Thanked 0 Times in 0 Posts
Chris-2k is an unknown quantity at this point
no no sorry u mis-read, the fb dev section is 1 sharing place, hence i have 9 or 10 sharing button........

sorry i meant u mustbe signed i too shareThis to sharre..

i've come up with:
Code:
    /*** popups ***/
    $("a[rel='pop-up']").click(function () {
    	if($(this).attr("target")!=="_blank") {
        	var pop_w = '650';
            var pop_h = (typeof $(this).attr("data-height") !== "undefined") ? $(this).attr("data-height") : '350';
            var pop_left = (screen.width/2)-(pop_w/2);
            var pop_top = (screen.height/2)-(pop_h/2);
            var settings = "height="+pop_h+", width="+pop_w+", scrollTo, resizable=0, scrollbars=0, location=0, top="+pop_top+", left="+pop_left;  
            window.open(this.href, 'Popup', settings);  
            return false; 	
       	}
    });
That's not workingg, why?
Chris-2k is offline   Reply With Quote