web前端|js教程
javascript,table,鼠标滑动
web前端-js教程
android解锁源码,vscode中缩进,用u盘作为ubuntu启动盘,tomcat 启动隐藏,sqlite优化的目的,discuz影视点评插件,做移动页面的前端框架,爬虫程序的分类方法,php 开源博客,seo监测数据,网站模板 金融,js 网页音乐播放器,彩票html模板lzw
手机棋牌游戏源码,vscode java环境失效,ubuntu的,怎么看tomcat,sqlite uwp,网页设计 三原色,数据库服务器或登录密码无效无法连接数据库请重新设定,网站需要多少服务器,jquery搜索插件,大屏展示前端框架,爬虫部落,php 类型判断,阿是seo,springboot优势,a标签 间距,公司产品展示网站源码,静态网页图片代码,产品分享模板,html 后台模板下载,html5 页面宽度自适应屏幕大小,毕业设计信息管理系统,小程序源代码怎么使用lzw
.cssguycomments {background:#eee;border:#ddd;padding:8px;margin-bottom:40px;} .cssguycomments p {font:normal 12px/18px verdana;}
教育app源码,vscode-sql,ubuntu必要的分区,tomcat外置,mysql转成sqlite,国内做服务器的公司,ecshop 抽奖插件,hui前端框架手机,php怎么写爬虫,php 字符,上海seo排名公司,html5 国外网站,免费网页模板psd下载,网页弹窗模板,手机页面简单的手机,大型超市管理系统免费下载,马克斯视频分享程序lzw
table {border-collapse:collapse;} thead th {font:bold 13px/18px georgia;text-align:left;background:#fff4c6;color:#333;padding:8px 16px 8px 8px;border-right:1px solid #fff;border-bottom:1px solid #fff; } thead th.null {background:#fff;} tbody th {font:bold 12px/15px georgia;text-align:left;background:#fff9e1;color:#333;padding:8px;border-bottom:1px solid #f3f0e4;border-right:1px solid #fff; } tbody td {font:normal 12px/15px georgia;color:#333;padding:8px;border-right:1px solid #f3f0e4;border-bottom:1px solid #f3f0e4; } /* 这3个是关键 – */ tbody td.on {background:green;} thead th.on {background:red;} tbody th.on {background:red;}
/*
For functions getElementsByClassName, addClassName, and removeClassName
Copyright Robert Nyman,
Free to use if this text is included
*/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != ‘function’) {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
function getElementsByClassName(className, tag, elm){
var testClass = new RegExp(“(^|\\s)” + className + “(\\s|$)”);
var tag = tag || “*”;
var elm = elm || document;
var elements = (tag == “*” && elm.all)? elm.all : elm.getElementsByTagName(tag);
var returnElements = [];
var current;
var length = elements.length;
for(var i=0; i 0)? ” ” : “”) + className;
}
return elm.className;
}
function removeClassName(elm, className){
var classToRemove = new RegExp((“(^|\\s)” + className + “(\\s|$)”), “i”);
elm.className = elm.className.replace(classToRemove, “”).replace(/^\s+|\s+$/g, “”);
return elm.className;
}
function makeTheTableHeadsHighlight() {
// get all the td’s in the heart of the table…
var table = document.getElementById(‘rockartists’);
var tbody = table.getElementsByTagName(‘tbody’);
var tbodytds = table.getElementsByTagName(‘td’);
// and loop through them…
for (var i=0; i
Final example with JavaScript applied. Hover over a table cell to see effects. “View Source” and copy if you’d like to use.
本篇文章来源于 原文链接:/article.asp?id=20
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]