Compatible with IE, Firefox, and chrome
// Load JS
Function loadjs (){
If (! Getobj ('script _ pldata ')){
VaR scriptobj = Document. createelement ("script ");
// Scriptobj. ID = 'script _ 1 ';
Scriptobj. type = "text/JavaScript ";
Scriptobj. src = '/JS/M. js ';
Document. Body. appendchild (scriptobj );
}
}
// Load CSS,
Function loadcss (){
VaR cssobj = NULL;
Cssobj = Document. createelement ("style ");
VaR cssary = new array ();
Cssobj. setattribute ("type", "text/CSS ");
Cssary. Push ('img {border: none ;}');
Cssary. Push ('. Div {width: 350px; Height: auto; Border: 1px solid #000000 ;}');
Cssary. Push ('. div_data {width: 300px; Height: 70px; Border: 1px solid # cccccc ;}');
Cssary. Push ('body {font-size: 12px;} '); // alert ('stop ')
If (cssobj. stylesheet ){
Cssobj.stylesheet.css text = cssary. Join ('');
} Else {
Cssobj. appendchild (document. createtextnode (cssary. Join ('')));
}
VaR headobj = Document. getelementsbytagname ('head') [0];
Headobj. appendchild (cssobj );
}
Function loadcss2 (){
VaR cssobj = Document. createelement ('link ');
Cssobj. setattribute ('id', 'css _ id ');
Cssobj. setattribute ('rel ', 'stylesheet ');
Cssobj. setattribute ('type', 'text/CSS ');
Cssobj.setattribute('href', 'xxx.css ');
Document. Body. appendchild (cssobj );
}