製作 Yahoo! Widget Engine 的 Widget
我和我的好朋友、寶貝學生互動及學習使用Blogger的地方。
這裡有要自已建立Widget方法的完整介紹及範例說明。
http://gadget.blueshop.com.tw/2007contest/microsoft/spaces/gadgets/tuition.aspx
下面文章介紹如何嵌入您的網頁資料在另一個網頁中。
I used to wonder how Google AdSense worked. How did those ads from over at Google get on another site over here? This article ignores how Google did it and shows you how you can do it. That is, shows you how to embed JavaScript widgets on other people’s websites.
Demonstration
......
詳見:http://drnicwilliams.com/2006/11/21/diy-widgets/
之前提供的方法,在某些版本的瀏覽器上,有點問題,可試試這個更簡易方法,改寫
<BODY>
為
<BODY onSelectStart="event.returnValue=false">
即可
把這段程式碼貼在<head>與</head>之間,可以讓「選取」功能失效,當然就可以達成入門級的防複製功能。至於玩家...就算了吧!何況,有玩家要拷,表示內容有點價值,應該高興才對!
<script language="JavaScript1.2" >
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function (”return false”)
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
資料來源:http://www.cashquests.com/stop-people-stealing-your-content