所谓加亮不过是改变它的颜色,你可以用css来搞定,在DW中制作很简单!
给你一个例子:
A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
A:hover { COLOR: blue; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active { font: 9pt "宋体"; cursor: hand; color:yellow }这个例子是超链接的时候获得焦点后改变字体的颜色!仿效一下!
给你一个例子:
A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
A:hover { COLOR: blue; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active { font: 9pt "宋体"; cursor: hand; color:yellow }这个例子是超链接的时候获得焦点后改变字体的颜色!仿效一下!
<tr><td>123</td><td>123</td></tr>
<tr><td>134</td><td>134</td></tr>
<tr><td>144</td><td>144</td></tr>
</table>
<script>
var curr
function change(){
if(curr!=null){
document.all.a1.rows[curr].style.background=document.bgColor
document.all.a1.rows[curr].style.color=document.fgColor
}
document.all.a1.rows[event.srcElement.parentElement.rowIndex].style.background=document.fgColor
document.all.a1.rows[event.srcElement.parentElement.rowIndex].style.color=document.bgColor
curr=event.srcElement.parentElement.rowIndex
}
</script>
<tr background="bg_1.gif" onMouseOver="this.style.backgroundColor = '#99FF66'" onMouseOut="this.style.background = 'bg_1.gif'">
<td width=100>asfsdsdff</td>
</tr>
</table>
<tr bgcolor=efefe0 align="center" id="<%="id"+i%>" onclick="a(this,<%=0%>,m)";>
m 为你的本页的行数。function a(p,m,n) {
for (i=m;i<n;i++) {
var eid="id"+i;
if (p.id=="id"+i){
p.bgColor="#33CCFF";
}else{
eval("window."+eid).bgColor="efefe0";
}
}
}
<tr><td>123</td><td>123</td></tr>
<tr><td>134</td><td>134</td></tr>
<tr><td>144</td><td>144</td></tr>
</table>
<script>
var curr
function change(){
if(curr!=null){
with(document.all.a1.rows[curr].runtimeStyle){
background="";color="";}
}
curr=event.srcElement.parentElement.rowIndex
with(document.all.a1.rows[curr].runtimeStyle){
background="gray";color="red";}
}
</script>
body{background:#000000}
body,td{font-size:9pt;color:#ffffff}
</style>
<table style="width:200;filter:alpha(opacity=80);cursor:hand;border:1 solid #cccccc" id="TempTable">
<script>
for(i=0;i<10;i++)document.write("<tr><td style=\"border-left:5 solid #cccccc\" onclick=\"go("+i+")\"> "+i+"</div></td></tr>");
</script>
</table>
<script>
function AddEvent(obj){
for(i=0;i<obj.document.all.tags("TD").length;i++){
var AdObj=obj.document.all.tags("TD")[i];
AdObj.onmouseover=new Function("if(this.string==null){this.style.background='fefefe';this.style.borderLeft='5 solid #ff9900';this.style.color='#000000'}");
AdObj.onmouseout=new Function("if(this.string==null){setTimeout(\""+AdObj.uniqueID+".style.background='';"+AdObj.uniqueID+".style.borderLeft='5 solid #cccccc';"+AdObj.uniqueID+".style.color='#ffffff'\",100)}");
}
}
AddEvent(TempTable);
function go(obj){
var AdObj=TempTable.all.tags("TD");
for(i=0;i<AdObj.length;i++){
AdObj[i].style.background=''
AdObj[i].style.borderLeft='5 solid #cccccc'
AdObj[i].style.color='#ffffff'
AdObj[i].string=null
}
AdObj[obj].style.background='fefefe'
AdObj[obj].style.borderLeft='5 solid #ff9900'
AdObj[obj].style.color='#000000'
AdObj[obj].string=true
}
</script>