程式碼如下:
(>(> function(){
//將命名空間IC註冊到window
window['JSHide']={};
//隱藏側邊欄,並將圖片換成右箭頭圖片
function yc()
{
document.getElementById("cloone").style.display ="none";
document.getElementById("img").innerHTML ="";
}
window['JSHide']['yc']=yc;
//顯示側邊欄,並將圖片換成左箭頭
function xs()
{
document.getElementById("cloone").style.display ="";
document.getElementById("img").innerHTML ="
";