Get CSS style or set CSS style, compatible with IE, parameter one: element object, parameter two: attribute name, parameter three (optional): attribute value div>
function css() {
if (arguments.length == 2) {
//Get the style
if (getComputedStyle(arguments[0], false)) {
//Standard browser
var attr = arguments[1];
return getComputedStyle(arguments[0], false< span style="color: #000000;">)[attr];
} else {
//ie8-
var attr = arguments[1];
return arguments[0].currentStyle[attr];
}
} else if (arguments.length == 3 ) {
//Set the style box.style.display ='none'< /span>
var attr = arguments[1];
arguments[0].style[attr] = arguments[2];
}
}
Get CSS style or set CSS style, compatible with IE, parameter one: element object, parameter two: attribute name, parameter Number three (optional): attribute value
function css() {
if (arguments.length == 2) {
//Get the style
if (getComputedStyle(arguments[0], false)) {
//Standard browser
var attr = arguments[1];
return getComputedStyle(arguments[0], false< span style="color: #000000;">)[attr];
} else {
//ie8-
var attr = arguments[1];
return arguments[0].currentStyle[attr];
}
} else if (arguments.length == 3 ) {
//Set the style box.style.display ='none'< /span>
var attr = arguments[1];
arguments[0].style[attr] = arguments[2];
}
}
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5700 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC