|
html中插入php的方法
<?php
<tr><td>
<p align="center">
<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=755036542" type="text/javascript" charset="utf-8"></script>
<div id="wb_connect_btn"></div>
<script type="text/javascript">
WB2.anyWhere(function(W)
{
W.widget.connectButton(
{
id: "wb_connect_btn",
type:"3,2",
callback :
{
login:function(o)
{ //登录后的回调函数
alert(o.screen_name);
},
logout:function()
{ //退出后的回调函数
}
}
});
});
</script>
</td></tr>
?> |
|