Script para anúncio

3 participantes

BRRangel BRRangel  • 10.12.17 16:16

Script para anúncio Empty Script para anúncio 10.12.17 16:16

Olá, eu estou precisando de um script de anúncio. de preferência algo como isso:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Obrigado!

pedxz pedxz  • 10.12.17 16:23

Super administradorMembro da Equipa

Script para anúncio Empty Re: Script para anúncio 10.12.17 16:23

Use isto

Código:

<script type="text/javascript">
var time = 30;
var timerun = true;
 
function closeTheBanner() {
    $(".roomenterad-habblet-container").animate({
                top: -$(".roomenterad-habblet-container").height()  "px"
        }, 1000);
        timerun = false
}
 
setInterval(function () {
    if (timerun) {
        $(".roomenterad-closing").text("Lukning efter "  time  " sekunder");
        time--;
        if (time < 0) {
                        closeTheBanner();
        }
    }
}, 1000);
 
setInterval(function () {
    var htmlz = $(".roomenterad-habblet-thead").html();
    $(".roomenterad-habblet-thead").text("");
    $(".roomenterad-habblet-container").animate({
                top: "0px"
        }, 1000);
    $(".roomenterad-habblet-thead").html(htmlz);
    time = 10;
    timerun = true
}, 3600000);
</script>
<div class="roomenterad-habblet-container" style="display: inline-block; left: 50%; margin-left: -370px; margin-top: -30px; position: fixed; height: 195px; width: 740px; background-image: url(http://sjovt.com/roomenterad_bg.png); background-repeat: no-repeat no-repeat; z-index: 99999;">
<div style="position: absolute; right: 22px; top: 76px; color: #ffffff; font-weight: bold; font-size: 10px; font-family: Verdana, sans-serif;">Reklame</div>
<div style="position: absolute; left: 6px; top: 76px; color: rgb(255, 255, 255); font-size: 10px; font-family: Verdana, sans-serif; visibility: visible;" class="roomenterad-closing">Lukning efter x sekunder</div>
<div style="position: absolute; right: 9px; top: 75px;"><img onclick="closeTheBanner();" src="http://sjovt.com/roomenterad_close.png"></div>
<div style="position: absolute; left: 6px; top: 91px" class="roomenterad-habblet-thead">
[Google Adsense Code]
</div>
</div>

BRRangel BRRangel  • 10.12.17 16:35

Script para anúncio Empty Re: Script para anúncio 10.12.17 16:35

pedxz escreveu:Use isto

Código:

<script type="text/javascript">
var time = 30;
var timerun = true;
 
function closeTheBanner() {
    $(".roomenterad-habblet-container").animate({
                top: -$(".roomenterad-habblet-container").height()   "px"
        }, 1000);
        timerun = false
}
 
setInterval(function () {
    if (timerun) {
        $(".roomenterad-closing").text("Lukning efter "   time  " sekunder");
        time--;
        if (time < 0) {
                        closeTheBanner();
        }
    }
}, 1000);
 
setInterval(function () {
    var htmlz = $(".roomenterad-habblet-thead").html();
    $(".roomenterad-habblet-thead").text("");
    $(".roomenterad-habblet-container").animate({
                top: "0px"
        }, 1000);
    $(".roomenterad-habblet-thead").html(htmlz);
    time = 10;
    timerun = true
}, 3600000);
</script>
<div class="roomenterad-habblet-container" style="display: inline-block; left: 50%; margin-left: -370px; margin-top: -30px; position: fixed; height: 195px; width: 740px; background-image: url(http://sjovt.com/roomenterad_bg.png); background-repeat: no-repeat no-repeat; z-index: 99999;">
<div style="position: absolute; right: 22px; top: 76px; color: #ffffff; font-weight: bold; font-size: 10px; font-family: Verdana, sans-serif;">Reklame</div>
<div style="position: absolute; left: 6px; top: 76px; color: rgb(255, 255, 255); font-size: 10px; font-family: Verdana, sans-serif; visibility: visible;" class="roomenterad-closing">Lukning efter x sekunder</div>
<div style="position: absolute; right: 9px; top: 75px;"><img onclick="closeTheBanner();" src="http://sjovt.com/roomenterad_close.png"></div>
<div style="position: absolute; left: 6px; top: 91px" class="roomenterad-habblet-thead">
[Google Adsense Code]
</div>
</div>
Ficou assim:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Lord_Mafia Lord_Mafia  • 10.12.17 17:17

Script para anúncio Empty Re: Script para anúncio 10.12.17 17:17

Usa esse !! eu que configurei.
Código:
<body>
<div id="client"></div>
<!-- ANUNCIO -->

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
    var time = 30;
    var timerun = true;

    function closeTheBanner1() {
        $(".roomenterad-habblet-container1").animate({
            top: -$(".roomenterad-habblet-container1").height() + "px"
        }, 2000);
        timerun = false
    }

    setInterval(function () {
        if (timerun) {
            $(".roomenterad-closing1").text("Fechando em " + time + " segundos");
            time--;
            if (time < 0) {
                closeTheBanner1();
            }
        }
    }, 2000);

    setInterval(function () {
        var htmlz = $(".roomenterad-habblet-thead1").html();
        $(".roomenterad-habblet-thead1").text("");
        $(".roomenterad-habblet-container1").animate({
            top: "0px"
        }, 2000);
        $(".roomenterad-habblet-thead1").html(htmlz);
        time = 30;
        timerun = true
    }, 300000);
</script>
<div class="roomenterad-habblet-container1" style="display: inline-block; left: 50%; margin-left: -370px; margin-top: -30px; position: fixed; height: 195px; width: 740px; background-image: url(http://i.imgur.com/H2CeyfP.png); background-repeat: no-repeat no-repeat; z-index: 99999;">
    <div
        style="position: absolute; right: 22px; top: 76px; color: #ffffff; font-weight: bold; font-size: 10px; font-family: Verdana, sans-serif;">
        Fechar agora
    </div>
    <div
        style="position: absolute; left: 6px; top: 76px; color: rgb(255, 255, 255); font-size: 10px; font-family: Verdana, sans-serif; visibility: visible;"
        class="roomenterad-closing1">Fechando em 30 segundos
    </div>
    <div style="position: absolute; right: 9px; top: 75px;"><img onclick="closeTheBanner1();"
                                                                 src="http://i.imgur.com/VuLhUw2.png"></div>
    <div style="position: absolute; left: 6px; top: 91px" class="roomenterad-habblet-thead1">

        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- Bananada -->
        <ins class="adsbygoogle"
             style="display:inline-block;width:728px;height:90px"
             data-ad-client="ca-pub-3716724879003548"
             data-ad-slot="6660938710"></ins>
        <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
        </script>

    </div>
</div>
<!-- ANUNCIO -->
</body>
</html>

BRRangel BRRangel  • 10.12.17 17:27

Script para anúncio Empty Re: Script para anúncio 10.12.17 17:27

Lord_Mafia escreveu:Usa esse !! eu que configurei.
Código:
<body>
<div id="client"></div>
<!-- ANUNCIO -->

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
    var time = 30;
    var timerun = true;

    function closeTheBanner1() {
        $(".roomenterad-habblet-container1").animate({
            top: -$(".roomenterad-habblet-container1").height()  "px"
        }, 2000);
        timerun = false
    }

    setInterval(function () {
        if (timerun) {
            $(".roomenterad-closing1").text("Fechando em "  time  " segundos");
            time--;
            if (time < 0) {
                closeTheBanner1();
            }
        }
    }, 2000);

    setInterval(function () {
        var htmlz = $(".roomenterad-habblet-thead1").html();
        $(".roomenterad-habblet-thead1").text("");
        $(".roomenterad-habblet-container1").animate({
            top: "0px"
        }, 2000);
        $(".roomenterad-habblet-thead1").html(htmlz);
        time = 30;
        timerun = true
    }, 300000);
</script>
<div class="roomenterad-habblet-container1" style="display: inline-block; left: 50%; margin-left: -370px; margin-top: -30px; position: fixed; height: 195px; width: 740px; background-image: url(http://i.imgur.com/H2CeyfP.png); background-repeat: no-repeat no-repeat; z-index: 99999;">
    <div
        style="position: absolute; right: 22px; top: 76px; color: #ffffff; font-weight: bold; font-size: 10px; font-family: Verdana, sans-serif;">
        Fechar agora
    </div>
    <div
        style="position: absolute; left: 6px; top: 76px; color: rgb(255, 255, 255); font-size: 10px; font-family: Verdana, sans-serif; visibility: visible;"
        class="roomenterad-closing1">Fechando em 30 segundos
    </div>
    <div style="position: absolute; right: 9px; top: 75px;"><img onclick="closeTheBanner1();"
                                                                 src="http://i.imgur.com/VuLhUw2.png"></div>
    <div style="position: absolute; left: 6px; top: 91px" class="roomenterad-habblet-thead1">

        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- Bananada -->
        <ins class="adsbygoogle"
             style="display:inline-block;width:728px;height:90px"
             data-ad-client="ca-pub-3716724879003548"
             data-ad-slot="6660938710"></ins>
        <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
        </script>

    </div>
</div>
<!-- ANUNCIO -->
</body>
</html>
Funcionou perfeitamente, muito obrigado! Podem fechar o tópico...

pedxz pedxz  • 10.12.17 17:39

Super administradorMembro da Equipa

Script para anúncio Empty Re: Script para anúncio 10.12.17 17:39

Fechado,
autor satisfeito.
Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.