Copy codeThe Code is as follows: <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> ad code final loading </title>
</Head>
<Body>
<Div id = "open"> </div>
<Script>
// Ad ("open", 'alert ("ddd ")');
Var JSScript = {
Inject: function (htmlId, jsCode ){
Var script = document. createElement ("script ");
Script. text = jsCode;
Document. getElementById (htmlId). appendChild (script );
},
Loadeing: function (url, charset, callback ){
Var script = document. createElement ("script ");
Script. src = url;
Script. charset = charset;
Script. loaded = false;
Script. onload = function (){
Script. loaded = true;
Callback ();
};
Script. onreadystatechange = function (){
If (! Script. onloadDone & ("loaded" = script. readyState | "complete" = script. readyState )){
Script. onload ();
}
};
Document. getElementsByTagName ("head") [0]. appendChild (script );
}
}
JSScript. loadeing ("http://cbjs.baidu.com/js/s.js", "gb2312", initAd)
Function initAd (){
JSScript. inject ("open", 'Baidu _ CLB_singleFillSlot ("72893 ")');
}
</Script>
</Body>
</Html>