Vyskakující okno s obrázkem
Napsal: 09 kvě 2010 21:18
Dobrý den,potřeboval bych poradit.Mám stránky a chtěl bych aby při načtení stránek vyskočilo okno s obrázkem v rolišení např. 640x480.Už se snažím,ale jaksi ne dost.
Nástroj pro tvorbu webových stránek bez znalosti HTML
http://www.wysiwygwebbuilder.eu/
Kód: Vybrat vše
<meta name="robots" content="all,follow" />
<script language="JavaScript1.2">
isMouseover = false;
isDragging = false;
function MouseDownLayer(e)
{
isIE = document.all;
documentTag = isIE ? "BODY" : "HTML";
srcElement = isIE ? event.srcElement : e.target;
layerElement = isIE ? document.all.akce01 : document.getElementById("akce01");
while (srcElement.id != "akce01TitleBar" && srcElement.tagName != documentTag)
{
srcElement = isIE ? srcElement.parentElement : srcElement.parentNode;
}
if (srcElement.id == "akce01TitleBar")
{
offsetX = isIE ? event.clientX : e.clientX;
offsetY = isIE ? event.clientY : e.clientY;
currentX = parseInt(layerElement.style.left);
currentY = parseInt(layerElement.style.top);
isDragging = true;
document.onmousemove = MouseMoveLayer;
}
}
function MouseMoveLayer(e)
{
if (!isDragging) return;
// Internet Explorer ?
if (document.all)
{
layerElement.style.left = currentX+event.clientX-offsetX;
layerElement.style.top = currentY+event.clientY-offsetY;
}
else
{
layerElement.style.left = currentX+e.clientX-offsetX;
layerElement.style.top = currentY+e.clientY-offsetY;
}
return false;
}
document.onmousedown = MouseDownLayer;
document.onmouseup = Function("isDragging=false");
</script>Kód: Vybrat vše
<table border="0" bgcolor="#FDF21C" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td id="akce01TitleBar" style="cursor:move" width="100%">
<ilayer width="100%" onSelectStart="return false">
<layer width="100%" onMouseover="isMouseover=true" onMouseout="isMouseover=false">
<font face="Arial" color="#000000" style="font-size:15px;text-decoration:none"><b></b></font>
</layer>
</ilayer>
</td>
<td style="cursor:hand" valign="top">
<a href="#" onClick="layerElement.style.visibility='hidden';return false">
<font color="#000000" face="Arial" style="font-size:15px;text-decoration:none"><b><u>zavřít<u></b></font>
</a>
</td>
</tr>
</table>