看板 Ajax 關於我們 聯絡資訊
※ 引述《yo0401 (羽無倫)》之銘言: : 我用 : <table border=1 OnClick=this.style.backgroundColor='#993366' : OnMouseOut=this.style.backgroundColor='white'> : 讓表格能夠在點選的時候變顏色 : 可是我想讓點第一下的時候變色,點第二下的時候變回原來的顏色 : 應該怎麼改呢 : 我上面的那個是點了以後,變色,離開之後變回來,但我想要的是「再點一次」的時候 : 變回來,拜託大家囉~~ 簡單的範例…IE6能動(這個小東西應該不會有瀏覽器不能動吧 囧>) <a style="display:inline" OnClick=" (this.style.backgroundColor=(this.style.backgroundColor=='#993366') ?'white' :'#993366')"> aaa</a> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.61.172.157