Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function twt_share(name,link){
- var w = 626,
- h = 436,
- left = (screen.width/2)-(w/2),
- top = (screen.height/2)-(h/2),
- href = $(this).attr('href'),
- title = $(this).data('title');
- href = "https://twitter.com/intent/tweet?text="+ name +" "+ link;
- window.open(href, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement