Ir para conteúdo
Fórum Script Brasil
  • 0

Pop Up Transparente


Ceh

Pergunta

17 respostass a esta questão

Posts Recomendados

  • 0

Tenta isto ai Ceh.. Minha resposta do dia.. só porque é para voce smile.gif

<div id="layer_promocao" style="background-image:url('figura.gif'); width:274px; height:331px; position:absolute; left:248px; top:129px; z-index:1; visibility:visible;">

<table cellpadding="0" cellspacing="0" border="0" width="201" align="center">

<tr>

<td height="30"></td>

</tr>

<tr bgcolor="#FFCC00">

<td bgcolor="#6699FF"><img src="figura1.gif" width="201" height="81" alt="" border="0"></td>

</tr>

<tr bgcolor="#FFCC00">

<td background="figura2.gif" width="201" height="82" bgcolor="#0066FF">

<table cellpadding="4" cellspacing="2" align="center" height="62">

<tr>

<td align="center">

<br><font face="Verdana" style="font-size:11px" color="#FF6600" size="2"><b><br>Texto Aqui....</b><font></p>

</td>

</tr>

</table>

</td>

</tr>

<tr>

<td height="40" align="center"><input type="submit" value="Fechar" onclick="document.all['layer_promocao'].style.visibility='hidden'" class="botao" class="botao" style="color:white; background-color:blue;"></td>

</tr>

</table>

</div>

Link para o comentário
Compartilhar em outros sites

  • 0

Ceh.... mais um código (agora com transparência)..............

<html>

<head>

<title> Janela Transparente </title>

</head>

<style type="text/css">

.transparent {

filter:alpha(opacity=90);

background-color:yellow;

display:none;

width:170;

height:100;

position:absolute;

color: blue;

border: 1px solid green;

}

</style>

<body>

<div id='janela' class='transparent'>

Coloque seu conteúdo aqui.....<br><br><br>

</div>

</body>

</html>

ps.: poxa.... e como virou importante... pro jissa vir postar aki... vixi...hehehehe =p

Link para o comentário
Compartilhar em outros sites

  • 0

pronto, arrumei... =p

<html>

<head>

<title>Janela Transparente</title>

<style type="text/css">

.transparente {

filter:alpha(opacity=20);

visibility:visible;

width:180;

height:261;

color: #FFFFFF;

border: 0px;

text-align : center;

}

</style>

</head>

<body bgcolor="#cccccc" text="#000000">

<div id="Popup" class="transparente">

<div style="background-color: green"><b>O TITULO Vai Aqui</b><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>

</div>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

  • 0

É só você acrescentar no popup uma posição (top, left) e um position: absolute, exemplo:

<html>
<head>
<title>Janela Transparente</title>
<style type="text/css">
.transparente {
position: absolute;
top: 200;
left: 200;
filter:alpha(opacity=20);
visibility:visible;
width:180;
height:261;
color: #FFFFFF;
border: 0px;
text-align : center;
}
</style>
</head>

<body bgcolor="#cccccc" text="#000000">
<div id="Popup" class="transparente">
<div style="background-color: green"><b>O TITULO Vai Aqui</b><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>
</div>
</body>
</html> 

Tenta isso wink.gif

Link para o comentário
Compartilhar em outros sites

  • 0

pronto, agora sim.......... isso tava virando questão de honra já...hehehe smile.gif

<html>

<head>

<script>

var checkZIndex = true;

var dragobject = null;

var tx;

var ty;

var ie5 = document.all != null && document.getElementsByTagName != null;

function getReal(el) {

temp = el;

while ((temp != null) && (temp.tagName != "BODY")) {

if ((temp.className == "moveme") || (temp.className == "handle")){

el = temp;

return el;

}

temp = temp.parentElement;

}

return el;

}

function moveme_onmousedown() {

el = getReal(window.event.srcElement)

if (el.className == "moveme" || el.className == "handle") {

if (el.className == "handle") {

tmp = el.getAttribute("handlefor");

if (tmp == null) {

dragobject = null;

return;

}

else

dragobject = eval(tmp);

}

else

dragobject = el;

if (checkZIndex) makeOnTop(dragobject);

ty = window.event.clientY - getTopPos(dragobject);

tx = window.event.clientX - getLeftPos(dragobject);

window.event.returnValue = false;

window.event.cancelBubble = true;

}

else {

dragobject = null;

}

}

function moveme_onmouseup() {

if(dragobject) {

dragobject = null;

}

}

function moveme_onmousemove() {

if (dragobject) {

if (window.event.clientX >= 0 && window.event.clientY >= 0) {

dragobject.style.left = window.event.clientX - tx;

dragobject.style.top = window.event.clientY - ty;

}

window.event.returnValue = false;

window.event.cancelBubble = true;

}

}

function getLeftPos(el) {

if (ie5) {

if (el.currentStyle.left == "auto")

return 0;

else

return parseInt(el.currentStyle.left);

}

else {

return el.style.pixelLeft;

}

}

function getTopPos(el) {

if (ie5) {

if (el.currentStyle.top == "auto")

return 0;

else

return parseInt(el.currentStyle.top);

}

else {

return el.style.pixelTop;

}

}

function makeOnTop(el) {

var daiz;

var max = 0;

var da = document.all;

for (var i=0; i<da.length; i++) {

daiz = da.style.zIndex;

if (daiz != "" && daiz > max)

max = daiz;

}

el.style.zIndex = max + 1;

}

if (document.all) { //This only works in IE4 or better

document.onmousedown = moveme_onmousedown;

document.onmouseup = moveme_onmouseup;

document.onmousemove = moveme_onmousemove;

}

document.write("<style>");

document.write(".moveme {cursor: move;}");

document.write(".handle {cursor: move;}");

document.write("</style>");

</script>

<style>

<!--

#testDiv {position:relative; height:50px; width:250px; background:#daa520;border-style:solid; border-width:1px; margin:10px;

filter:alpha(opacity=50);visibility:visible;width:180;height:261;color: #FFFFFF;border: 0px;text-align : center;}

#title {background:#ff6347; font:caption; width:100%; color:#000000; padding:5px; margin:0px; text-align:center;

filter:alpha(opacity=50);visibility:visible;width:180;height:261;color: #FFFFFF;border: 0px;text-align : center;}

#inner {margin:0px; padding:3px; height:100%;

filter:alpha(opacity=50);visibility:visible;width:180;height:261;color: #FFFFFF;border: 0px;text-align : center;}

-->

</style>

</head>

<body>

<div id="testDiv">

<div class="handle" handlefor="testDiv" id="title">QUEM GOSTOU DO PRIMEIRO EXEMPLO</div>

</div>

Repare que as últimas linhas do script estão com fonte marrom.

Na verdade este trecho não faz parte do script e consiste em propriedades de configuração

CSS da janela. Através dela podemos definir cor de fundo (background:#daa520), formato das

bordas (border-style:solid), texto centralizado (text-align:center), tamanho da janela

(height:50px; width:250px), etc

</body>

</html>

Link para o comentário
Compartilhar em outros sites

  • 0

hehehe........

uma hora agente acerta.... wink.gif....hehehe

só uma coisa...... eu misturei 2 códigos do Mestre Jissa pra chegar nesse ai...hehehe

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...