Recent demand involves the compatibility of the browser. The first processing is IE10.
The homepage uses Frameset with two pages, and the left side is the menu bar, which can be contracted by changing the COLS of Frameset. Other browsers are normal, but IE10 has no reaction.
Copy code code as follows:
function hide_show () {
if (window.parent.outer_frame.cols == "0,10,*") {
frameshow.src = "<%= request.getContextPath ()%>/Common/Images/Left_handle.gif";
div_hide_show.tital = "Hidden"
Window.parent.outer_frame.cols = "210, 10,*";
} Else {
frameshow.src = "<%= request.getContextPath ()%>/Common/Images/Right_handle.gif";
div_hide_show.tital = "Display"
window.parent.outer_frame.cols = "0,10,*";
}
}
Set the COLS irreplaceable effect, set ROWS, this is due to the BUG problem of IE10, you need to adjust the page size to take effect:
Copy code code as follows:
function hide_show () {
if (window.parent.outer_frame.cols == "0,10,*") {
frameshow.src = "<%= request.getContextPath ()%>/Common/Images/Left_handle.gif";
div_hide_show.tital = "Hidden"
Window.parent.outer_frame.cols = "210, 10,*";
} Else {
frameshow.src = "<%= request.getContextPath ()%>/Common/Images/Right_handle.gif";
div_hide_show.tital = "Display"
window.parent.outer_frame.cols = "0,10,*";
}
/*Force IE10 Redraw*/
if (navigator.useragent.indexof ('msie 10.0')! = -1) {
var w = paint.document.body.clientWidth;
Parent.document.body.style.width = w + 1 + 'px';
settimeout (function () {
Parent.document.body.style.width = w -1 + 'px';
Parent.document.body.style.width = 'Auto';
}, 0);
}
}