Business Pass default popup rewrite code

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.