Questions Programmer kenek hari web developer help karannako

cr34zyb0t

Well-known member
  • Dec 25, 2017
    894
    143
    63
    danne ne oi
    Machan mage website eka monetize karanna add code ekak hambuna propeller ads eken

    <script async="async" data-cfasync="false" src="//upgulpinon.com/1?z=4278445"></script>

    eth mama host karapu script eke ad code eka embed karanna ahanne palleha widiyata

    <a href="javascript:alert('Add a real banner here.');"><img src="https://placehold.it/160x600"></a>

    me code 2ka combine karala kohomada bn mma banner/display ad eka website ekata daganna
     

    HAneo

    Well-known member
  • Jan 30, 2007
    12,970
    29,167
    113
    Homagama
    eth mama host karapu script eke ad code eka embed karanna ahanne palleha widiyata
    me code 2ka combine karala kohomada bn mma banner/display ad eka website ekata daganna

    Simple answer

    The first one is a simple image-based Banner. eka page eka load ekedi display wenawa. click kalama "Add a real banner here" kiyala display wenawa Hariyata implement karala na wage ekath

    Secod eka Async widihata load wena script ekak. so me deka completely different dekak. e deka combine karanna ba

    Code:
    <script async="async" data-cfasync="false" src="//upgulpinon.com/1?z=4278445"></script>

    meka script ekak nisa HTML eka athule dannama one. eka thama rule eka. but oyata HTML eka change karanna bari seen ekak ne thiyenne pena widihata. so we have to minipulae the dom

    Follow this it should work
    ================
    dan script part eka mekane oken Include wena

    Code:
    //upgulpinon.com/1?z=4278445


    So we can import it like this directly to DOM
    Add this script segment to your whatever script it should load the propeller ads script to your Page

    var imported = document.createElement('script');
    imported.src = '//upgulpinon.com/1?z=4278445';
    document.head.appendChild(imported);
     

    cr34zyb0t

    Well-known member
  • Dec 25, 2017
    894
    143
    63
    danne ne oi
    Simple answer

    The first one is a simple image-based Banner. eka page eka load ekedi display wenawa. click kalama "Add a real banner here" kiyala display wenawa Hariyata implement karala na wage ekath

    Secod eka Async widihata load wena script ekak. so me deka completely different dekak. e deka combine karanna ba

    Code:
    <script async="async" data-cfasync="false" src="//upgulpinon.com/1?z=4278445"></script>

    meka script ekak nisa HTML eka athule dannama one. eka thama rule eka. but oyata HTML eka change karanna bari seen ekak ne thiyenne pena widihata. so we have to minipulae the dom

    Follow this it should work
    ================
    dan script part eka mekane oken Include wena

    Code:
    //upgulpinon.com/1?z=4278445


    So we can import it like this directly to DOM
    Add this script segment to your whatever script it should load the propeller ads script to your Page
    b
    Simple answer

    The first one is a simple image-based Banner. eka page eka load ekedi display wenawa. click kalama "Add a real banner here" kiyala display wenawa Hariyata implement karala na wage ekath

    Secod eka Async widihata load wena script ekak. so me deka completely different dekak. e deka combine karanna ba

    Code:
    <script async="async" data-cfasync="false" src="//upgulpinon.com/1?z=4278445"></script>

    meka script ekak nisa HTML eka athule dannama one. eka thama rule eka. but oyata HTML eka change karanna bari seen ekak ne thiyenne pena widihata. so we have to minipulae the dom

    Follow this it should work
    ================
    dan script part eka mekane oken Include wena

    Code:
    //upgulpinon.com/1?z=4278445


    So we can import it like this directly to DOM
    Add this script segment to your whatever script it should load the propeller ads script to your Page
    thank you so much bro. still it doesn't though . any idea what need to be done
     

    HAneo

    Well-known member
  • Jan 30, 2007
    12,970
    29,167
    113
    Homagama
    b

    thank you so much bro. still it doesn't though . any idea what need to be done
    The answer to your problem is correct what I have given. but your script doesn't do anything. try loading it to sample HTML and run. it processes and then times out. Give me some additional info about what you are doing.

    This is the recreate. try it

    HTML
    ====
    Code:
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="page.js"></script>
        <title>Document</title>
    </head>
    <body>
        
        <h3> Add Load testing </h3>
    </body>
    </html>


    Page.JS
    ======
    Code:
    var imported = document.createElement('script');
    imported.src = 'test.js';
    document.head.appendChild(imported);
    
    
    
    var imported = document.createElement('script');
    imported.src = '//upgulpinon.com/1?z=4278445';
    imported.setAttribute("async", "async");
    imported.setAttribute("data-cfasync", "false");
    document.head.appendChild(imported);


    test.js
    ====
    Code:
    alert("Script Loaded");



    all our script loadings are done in page.js. I don't have any idea what happens after your given script loaded.
    so I simply create test.js with alert. so if out DOM manipulation success it should see "Script Loaded" alert
    this will prove that your Script also loaded to the memory with the page
    ------ Post added on Jun 1, 2021 at 1:17 PM
     
    • Love
    • Like
    Reactions: cr34zyb0t and THE-X

    cr34zyb0t

    Well-known member
  • Dec 25, 2017
    894
    143
    63
    danne ne oi
    The answer to your problem is correct what I have given. but your script doesn't do anything. try loading it to sample HTML and run. it processes and then times out. Give me some additional info about what you are doing.

    This is the recreate. try it

    HTML
    ====
    Code:
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="page.js"></script>
        <title>Document</title>
    </head>
    <body>
       
        <h3> Add Load testing </h3>
    </body>
    </html>


    Page.JS
    ======
    Code:
    var imported = document.createElement('script');
    imported.src = 'test.js';
    document.head.appendChild(imported);
    
    
    
    var imported = document.createElement('script');
    imported.src = '//upgulpinon.com/1?z=4278445';
    imported.setAttribute("async", "async");
    imported.setAttribute("data-cfasync", "false");
    document.head.appendChild(imported);


    test.js
    ====
    Code:
    alert("Script Loaded");



    all our script loadings are done in page.js. I don't have any idea what happens after your given script loaded.
    so I simply create test.js with alert. so if out DOM manipulation success it should see "Script Loaded" alert
    this will prove that your Script also loaded to the memory with the page
    ------ Post added on Jun 1, 2021 at 1:17 PM
    bro sorted thank you so much.

    @HAneo menna mekata help ekak denna
    thanks bro wede karagatta
    ------ Post added on Jun 2, 2021 at 1:11 AM
     
    • Love
    Reactions: HAneo