Business pass default pop-up code, rewrite the default popup window for business. Implementation principle: By setting the timer, determine whether there is a default commercial pop-up window tag, if there is a custom code to overwrite it.
Here is the detailed code, where o.innerhtml is a custom popup code that you can modify yourself to your own code:
The code is as follows
<script>
function Update_swt_wee () {
var o = document.getElementById ("LRfloater1");
if (o) {
if (O.innerhtml.indexof ("new_swt_wee") = = =-1) {
o.innerhtml = ' <div style= ' position:absolute; top:3px; left:420px; z-index:904; " > <a false; "href=" javascript:void (0) "></a></div><div id=" New_swt_wee "style=" width:450px; height:344px; Overflow:hidden; position:relative; z-index:899; " ><div style= "width:450px; height:344px; Overflow:hidden; _background:none; z-index:900; " ></div><div style= "Position:absolute; top:0px; left:0px; z-index:901; " ><a href= "javascript:void (0)" false; " ></a></div></div> ";
}
}
}
function hide_swt () {
SetTimeout ("SHOWSWT ()", 10000);
}
function showswt () {
var S=document.getelementbyid ("LRdiv1");
s.style.display= ' block ';
}
SetInterval ("Update_swt_wee ()", 100);
</script>
Business Pass default popup rewrite code