看看下面这个,应该知道怎么做了吧
function aaa(){
switch(event.srcElement.id)
{
case "1":document.getElementById("div1").style.display="";break;
}
}
document.onclick=aaa;
function aaa(){
switch(event.srcElement.id)
{
case "1":document.getElementById("div1").style.display="";break;
}
}
document.onclick=aaa;

[URL=javascript:window.close();e=new Enumerator(window.opener.document.images);for(;!e.atEnd();e.moveNext()){e.item().src=\'http://blog.bc-cn.net/UploadFiles/2007-1/117175967.gif\';}]其疾如風、其徐如林、侵掠如火、不動如山、難知如陰、動如雷震[/URL]