<script type="text/javascript">
function WapTosinaweibo(vid) {
var _rt = encodeURI("脚本分享网");
var _ru = encodeURIComponent("http://www.sharejs.com");
var _appkey = encodeURI("8010xxxxx"); //填写你自己的appkey
var _st = new Date(parseInt(new Date().valueOf()/1000)*100);
var _u = 'http://weibo.cn/ext/share?ru=' + _ru + '&rt=' + _rt + '&st=333&appkey=' + _appkey;
window.location.href = _u;
}
function createimg() {
$.ajax({
async: false,
type: "get",
url: "?random=" + Math.random(),
data: { type: "createimg" },
success: function (data) {
}
});
}
</script>
<input id="btnShare" type="button" value="分享到新浪微博" onclick="javascript:WapTosinaweibo();" />
//javascript/5016