我有一段JavaScript調用社交發布窗口小部件覆蓋。當你加載頁面的疊加會彈出,這是調用它的腳本:我需要把某種方式創建一個JavaScript或PHP函數,將火的時候,這個PHP函數被調用創建從PHP調用的Javascript函數
<script type="text/javascript">
RPXNOW.loadAndRun(['Social'], function() {
var activity = new RPXNOW.Social.Activity(
"Share your comment",
"commented on 'Like My New Perfume?' on cuteoverload.com",
"http://cuteoverload.com/2009/10/26/like-my-new-perfume/");
RPXNOW.Social.publishActivity(activity);
});
</script>
:
function response($oAlert) {
// something to happen here;
}
剛剛命名的函數,然後'回聲「」'不漂亮,但它會完成工作。 – 2010-08-16 22:05:35