分享到新浪微博的代码
2015-12-31 13:26:24 访问(2092) 赞(0) 踩(0)
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>分享到新浪微博的代码</title>
<script language="javascript" type="text/javascript">
function tsina_a() {
var n = screen,
t = document,
i = encodeURIComponent,
r = "http://v.t.sina.com.cn/share/share.php?",
u = t.location.href,
f = ["url=", i(u), "&title=", i(t.title)].join("");
window.open([r, f].join(""), "mb", ["toolbar=0,status=0,resizable=1,width=620,height=450,left=", (n.width - 620) / 2, ",top=", (n.height - 450) / 2].join("")) || (u.href = [r, f].join(""))
}
function ShareToTsina() {
/ Firefox /.test(navigator.userAgent) ? setTimeout(tsina_a, 0) : tsina_a()
}
</script>
</head>
<body>
<div style="padding-left: 10px;">
<div onclick="ShareToTsina();">
(分享到新浪微博)
</div>
</body>
</html>
标签:
分享到新浪微博的代码 


上一条:
下一条:
相关评论
发表评论