Recently, calendar5 has been widely used in projects.JS calendar control, which works normally in IE6, IE7, chrome, and ff. However, in IE8, a script error prompt will pop up when you click the scroll bar on the right:"The object does not support this attribute or method",OnlineThe solution is fruitless.
In the end, I am not familiar with JS programming and rewrite the calendar5.js through debugging.The459 rows(Slightly different source files).
OriginalCode:
// Drag the calendar to start function dragstart (EVT) {EVT = EVT | window. event; VaR _ target = evt.tar GET | EVT. srcelement; If (_ target. getattribute ("author") = "alin_bar") {dragobj = getobjbyid ("calendar"); mouseoffset = getmouseoffset (dragobj, EVT );}}
Improved code:
Function dragstart (EVT) {EVT = EVT | window. event; VaR _ target = evt.tar GET | EVT. srcelement; If (_ target. nodename! = Undefined) & _ target. getattribute ("author") = "alin_bar") {dragobj = getobjbyid ("calendar"); mouseoffset = getmouseoffset (dragobj, EVT );}}
This article provides reference to colleagues who are not familiar with JS programming but are troubled by this problem.