自定义qq空间分享按钮

版权声明:本文为博主原创文章,欢迎转载! https://blog.csdn.net/qq_14880455/article/details/49999409
</pre><pre name="code" class="html"><!DOCTYPE html > 
<html > 
<head> 
<meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" /> 
<title>QQ空间分享</title> 


<script type= "text/javascript" > 
    function qqShare(){
            var title="呵呵呵呵" ;
            url="www.baidu.com"
            picurl="www.baidu.com"
            var shareqqzonestring='http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?summary='+title+'&url='+url+'&pics='+picurl;  
            window.open(shareqqzonestring,'newwindow','height=400,width=400,top=100,left=100');  
    }
</script> 
</head> 
<body  > 
<input value="分享到空间" type="button" οnclick="qqShare()">


</body> 
</html>
展开阅读全文

没有更多推荐了,返回首页