Hírdetési felület! Ez egy olyan bigy, hogy hogy ott látod, fenn a srokban, egy doboz. Nos oda rakhatod be a hírdetéseidet:) És, még mozgathatják is! De mást is berakhatsz oda... pl vmi figyelmeztető szöveget, vagy mittudémint XD Vigyázz! Amibe már beraktad a kódot, lehet nem tudsz bele mást rakni:S[saját tapasztalat] Én azért raktam egy másik menübe a demót!
[Demo]
Kód:
// Script Source: CodeLifter.com // Copyright 2003 // Do not remove this header
isIE=document.all; isNN=!document.all&&document.getElementById; isN4=document.layers; isHot=false;
function ddInit(e){ topDog=isIE ? "BODY" : "HTML"; whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer"); hotDog=isIE ? event.srcElement : e.target; while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){ hotDog=isIE ? hotDog.parentElement : hotDog.parentNode; } if (hotDog.id=="titleBar"){ offsetx=isIE ? event.clientX : e.clientX; offsety=isIE ? event.clientY : e.clientY; nowX=parseInt(whichDog.style.left); nowY=parseInt(whichDog.style.top); ddEnabled=true; document.onmousemove=dd; } }
function dd(e){ if (!ddEnabled) return; whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety; return false; }
function ddN4(whatDog){ if (!isN4) return; N4=eval(whatDog); N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP); N4.onmousedown=function(e){ N4.captureEvents(Event.MOUSEMOVE); N4x=e.x; N4y=e.y; } N4.onmousemove=function(e){ if (isHot){ N4.moveBy(e.x-N4x,e.y-N4y); return false; } } N4.onmouseup=function(){ N4.releaseEvents(Event.MOUSEMOVE); } }
function hideMe(){ if (isIE||isNN) whichDog.style.visibility="hidden"; else if (isN4) document.theLayer.visibility="hide"; }
function showMe(){ if (isIE||isNN) whichDog.style.visibility="visible"; else if (isN4) document.theLayer.visibility="show"; }
document.onmousedown=ddInit; document.onmouseup=Function("ddEnabled=false");
<SCRIPT language=JavaScript1.2> // Script Source: CodeLifter.com // Copyright 2003 // Do not remove this header isIE=document.all; isNN=!document.all&&document.getElementById; isN4=document.layers; isHot=false; function ddInit(e){ topDog=isIE ? "BODY" : "HTML"; whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer"); hotDog=isIE ? event.srcElement : e.target; while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){ hotDog=isIE ? hotDog.parentElement : hotDog.parentNode; } if (hotDog.id=="titleBar"){ offsetx=isIE ? event.clientX : e.clientX; offsety=isIE ? event.clientY : e.clientY; nowX=parseInt(whichDog.style.left); nowY=parseInt(whichDog.style.top); ddEnabled=true; document.onmousemove=dd; } } function dd(e){ if (!ddEnabled) return; whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety; return false; } function ddN4(whatDog){ if (!isN4) return; N4=eval(whatDog); N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP); N4.onmousedown=function(e){ N4.captureEvents(Event.MOUSEMOVE); N4x=e.x; N4y=e.y; } N4.onmousemove=function(e){ if (isHot){ N4.moveBy(e.x-N4x,e.y-N4y); return false; } } N4.onmouseup=function(){ N4.releaseEvents(Event.MOUSEMOVE); } } function hideMe(){ if (isIE||isNN) whichDog.style.visibility="hidden"; else if (isN4) document.theLayer.visibility="hide"; } function showMe(){ if (isIE||isNN) whichDog.style.visibility="visible"; else if (isN4) document.theLayer.visibility="show"; } document.onmousedown=ddInit; document.onmouseup=Function("ddEnabled=false"); </SCRIPT>
<DIV id=theLayer style="LEFT: 31px; VISIBILITY: visible; WIDTH: 250px; POSITION: absolute; TOP: 26px"> <TABLE style="BORDER-RIGHT: black 1pt solid; BORDER-TOP: black 1pt solid; BORDER-LEFT: black 1pt solid; BORDER-BOTTOM: black 1pt solid" cellSpacing=0 cellPadding=0 width=250 border=0> <TBODY> <TR> <TD width="100%"> <TABLE style="BACKGROUND: #ffcee7" height=36 cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD id=titleBar style="PADDING-RIGHT: 1pt; PADDING-LEFT: 1pt; PADDING-BOTTOM: 1pt; CURSOR: move; PADDING-TOP: 1pt; BORDER-BOTTOM: black 1pt solid" width="100%"><ILAYER onselectstart="return false" width="100%"><LAYER onmouseover="isHot=true;if (isN4) ddN4(theLayer)" onmouseout=isHot=false width="100%"><!-- Msedesign //-->Ide írj címet! </LAYER></ILAYER></TD> <TD style="PADDING-RIGHT: 1pt; PADDING-LEFT: 1pt; PADDING-BOTTOM: 1pt; CURSOR: hand; PADDING-TOP: 1pt; BORDER-BOTTOM: black 1pt solid" vAlign=top> <P align=right><A onclick="hideMe();return false" href="#">X</A> </P></TD></TR> <TR> <TD class=td style="PADDING-RIGHT: 1pt; PADDING-LEFT: 1pt; BACKGROUND: white; PADDING-BOTTOM: 1pt; PADDING-TOP: 1pt" width="100%" colSpan=2><!-- Msedesign //--> <DIV id=menustuff>Ide rakd a hírdetésed! Vagy amit akarsz írni:P </DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
|