-1
我有這個javascript代碼,我想將它轉換爲FBJS,但我不知道如何。Facebook FBJS - 5秒後顯示內容
<html>
<head>
<script type="text/javascript">
function timeMsg()
{
var t=setTimeout("alertMsg()",5000);
}
function alertMsg()
{
document.write("<p>some text</p>");
}
</script>
</head>
<body>
<a href="http://www.mywebsite.com" onclick="timeMsg()">Click</a>
</body>
</html>
有人能幫助我嗎?