点击链接改变背景 <a href="" onClick="changeColor()">菜单名</a>Wirte a JavaScript Code While the link is clicked, and in the Js Code you can change what any you want to change 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <a href="#" onclick="document.all.tt.style.backgroundColor='red'">red</a> <a href="#" onclick="document.all.tt.style.backgroundColor='green'">green</a> <a href="#" onclick="document.all.tt.style.backgroundColor='yellow'">yellow</a> <div id="tt">show color</div> ajax上传问题,求教各位大神! 寻一段js读取xml信息的例子来学习 javascript 里 window.showDialog()的问题 如何用层来做这个效果 求JS去空格函数(须用到递归) 在线等...马上要搞定的问题. 如何定义一个window JavaScript怎么得到 下拉列表框的值? 有没有什么方法一下清楚select中所有的option项? 急:用js动态的向表格添加新行..... 请问有无代码可以清除用户的cookies? 怎么编写一个下拉列表,当用户点击同一个option选项的时候,都能执行alert("ok")?
<a href="#" onclick="document.all.tt.style.backgroundColor='green'">green</a>
<a href="#" onclick="document.all.tt.style.backgroundColor='yellow'">yellow</a>
<div id="tt">show color</div>