Baidu advertisement, how to insert the news list in the middle?

clipboard.png

js ,,

append(),,.

clipboard.png

:

function test1()
{
var s = "_" + Math.random().toString(36).slice(2);


}

:

$("-sharpdataList").append("

<script src="../html/a/ad1.js"></script>
")

ad1.jsjs

, html,:

clipboard.png

insert
< div class= "adfour11" style= "margin-top: 10px" > directly into html

<script type="text/javascript">
    var s = "_" + Math.random().toString(36).slice(2);
    document.write("<div style="" id="" + s + ""></div>");
    (window.slotbydup = window.slotbydup || []).push({
        id: "u3509265",
        container:  s
    });                
                
</script>

< / div >

because of the function of pulling up and loading the list, the advertisement also needs the dynamic insertion of append ()., append () is a method that will not be executed until the document has been loaded, but after the document has been loaded, if the ad code is loaded, there will be a problem that the white screen only shows the advertisement.

is there any solution? ask for guidance.

May.28,2021

Don't document.write , you add the node append . If document.write is executed in the advertisement, then there is no way

well, you can set up an iframe dedicated to advertising. Then you use this iframe

here.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45baa-44b36.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45baa-44b36.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?