1
function importJS(source, id, onload) {
2
if (!document.getElementById(id)) {
3
var JS = document.createElement("SCRIPT");
4
JS.type = "text/javascript";
5
JS.src = source;
6
JS.id = id;
7
if (undefined != onload)
8
JS.onload = onload;
9
document.getElementsByTagName("head")[0].appendChild(JS);
10
}
11
}
12
13
/*
14
function addUTF8Encoding() {
15
var metaTag=document.createElement('meta');
16
metaTag.setAttribute('http-equiv', "Content-Type");
17
metaTag.content = "text/html; charset=utf-8";
18
document.getElementsByTagName('head')[0].appendChild(metaTag);
19
}
20
*/
21
//addUTF8Encoding();
22
23
if(!window.jQuery) {
24
importJS('https://i.bngdyn.com/im_html/jquery-1.4.4.min.js', 'bcimtooljquery', function() {importJS('https://i.bngdyn.com/im_html/jquery.cookie.min.js', 'bcimtoolcookie');});
25
} else {
26
importJS('https://i.bngdyn.com/im_html/jquery.cookie.min.js', 'bcimtoolcookie');
27
}
28
29
function imTool() {
30
if(window.jQuery && window.jQuery.cookie) {
31
var bcimtool = jQuery.cookie('bcimtool');
32
if (!bcimtool){
33
jQuery('body').append(['<link id="im_link_common" rel="stylesheet" type="text/css" media="screen" href="https://i.bngdyn.com/im_html/im_style.css" />',
34
'<div id="im_tool">',
35
'<div class="im_tool_header"><a id="im_close" class="im_close" onclick="imSlideOut()"></a></div>',
36
'<iframe scrolling="no" frameborder="0" src="https://bngdyn.com/promo.php?c=762142&type=dynamic_banner&new_banner=0&db%5Bwidth%5D=300&db%5Bheight%5D=250&db%5Btype%5D=live&db%5Bmodel_zone%5D=free&db%5Bheader%5D=0&db%5Bfooter%5D=footer_text_1&db%5Bmlang%5D=0&db%5Bfullscreen%5D=on&db%5Bmname%5D=1&db%5Bmlink%5D=1&db%5Bmstatus%5D=1&db%5Bmsize%5D=custom&db%5Bmpad%5D=0&db%5Bmwidth%5D=300&db%5Bcolor_scheme%5D=default&db%5Bmborder%5D=none&db%5Bmborder_color%5D=%23ffffff&db%5Bmborder_over_color%5D=%23a02239&db%5Bmshadow%5D=0&db%5Bmodels_by_geo%5D=0&db%5Bautoupdate%5D=1&db%5Btopmodels%5D=1&db%5Blanding%5D=chat&db%5Blogo_color%5D=default&db%5Blogo_align%5D=left&db%5Bbg_color%5D=%23d40b94&db%5Bfont_family%5D=Arial&db%5Btext_align%5D=center&db%5Btext_color%5D=%23A5FF49&db%5Blink_color%5D=%23FFFFFF&db%5Beffect%5D=auto&db%5Beffect_speed%5D=optimal&db%5Bmode%5D=mode2&db%5Badaptive%5D=0&db%5Bslider%5D=0&db%5Bchat%5D=0" width="300" height="250" onLoad="imSlideIn()"></iframe>',
37
'</div>'].join(''));
38
}
39
} else {
40
setTimeout(imTool, 500);
...
</html>