You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
396 B
16 lines
396 B
var CDrag = Class.create();
|
|
|
|
CDrag.IE = /MSIE/.test(window.navigator.userAgent);
|
|
|
|
CDrag.load = function (obj_string, func, time) {
|
|
//加载对象
|
|
var index = 0, timer = window.setInterval(function () {
|
|
try {
|
|
if (eval(obj_string + ".loaded")) {
|
|
window.clearInterval(timer);
|
|
func(eval("new " + obj_string));
|
|
}
|
|
} catch (exp) {}
|
|
|
|
if (++ index == 20) window.clearInterval(timer);
|