2009/10/04
传统做法:
a[rel~="friend"]{
}
a[rel="nofollow"]{
}
a[href^="http:"]{
}
a[href$=".pdf"]{
}
为了兼容 IE6 :
window.onload = function(){
var list = document.getElementById('list');
var listA = list.getElementsByTagName('a');
for(var i = 0; i < listA.length; i++){
var href = listA[i].href;
if(href.indexOf('pdf') != -1){
listA[i].className = 'haspdf';
}
}
}
a[rel~="friend"]{
}
a[rel="nofollow"]{
}
a[href^="http:"]{
}
a[href$=".pdf"]{
}
为了兼容 IE6 :
window.onload = function(){
var list = document.getElementById('list');
var listA = list.getElementsByTagName('a');
for(var i = 0; i < listA.length; i++){
var href = listA[i].href;
if(href.indexOf('pdf') != -1){
listA[i].className = 'haspdf';
}
}
}


2009/10/04 20:16,
用jQuery去除链接虚
FileUpload类中


