wordpress, joomla, hazır scriptler, temalar, photoshop, javascript, CSS, SEO, hit, SMF, blog, google, alexa, para kazanma, meta,keywords, DMOZ, Pagerank
23 Tem
Yine javascript kodları ile uzun ve açılır bir menü yapmanıza olanak sağlayan kodlara burada yer vermek istiyorum.Bu sitenizde üst tarafa menü koymanıza yarayabilir.Yada buna benzer şeylerde. Kodları görmek için devamını oku yazan yerden buyrun.
Ayrıca önce test etmek isterseniz buradan. Testi internet explorer ile yaparsanız sorun yaşamassınız.
Â
HEAD..HEAD arasına eklenecek kod
<font color="#ff6600"><style> BODY { font-family:verdana, arial, helvetica; font-size:70%; } H1 { font-size:120%; font-style:italic; } DIV#divMenuBar { background-color:#6699CC; } TABLE#tblMenuBar TD { font-size:60%; color:white; padding:0px 5px 0px 5px; cursor:default; } TABLE#tblMenuBar TD.MenuMadde { font-weight:bold; cursor:hand; } DIV.clsMenu { font-size:90%; background-color:#6699CC; position:absolute; visibility:hidden; width:130px; padding:5px 5px 5px 8px; border-top:1 white solid; } DIV.clsMenu A { text-decoration:none; color:white; font-weight:bold; } DIV.clsMenu A:hover { color:moccasin; } BUTTON { font-family:tahoma; font-size:100%; } </style> <SCRIPT LANGUAGE="Javascript"> var eOpenMenu = null; function OpenMenu(eSrc,eMenu) { eMenu.style.left = eSrc.offsetLeft + divMenuBar.offsetLeft; eMenu.style.top = divMenuBar.offsetHeight + divMenuBar.offsetTop; eMenu.style.visibility = "visible"; eOpenMenu = eMenu; } function CloseMenu(eMenu) { eMenu.style.visibility = "hidden"; eOpenMenu = null; } function document.onmouseover() { var eSrc = window.event.srcElement; if ("MenuMadde" == eSrc.className) { eSrc.style.color = "moccasin"; var eMenu = document.all[eSrc.id.replace("tdMenuBarItem","divMenu")]; if (eOpenMenu && eOpenMenu != eMenu) { CloseMenu(eOpenMenu); } if (eMenu) { OpenMenu(eSrc,eMenu); } } else if (eOpenMenu && !eOpenMenu.contains(eSrc) && !divMenuBar.contains(eSrc)) { CloseMenu(eOpenMenu); } } function document.onmouseout() { var eSrc = window.event.srcElement; if ("MenuMadde" == eSrc.className) { eSrc.style.color = ""; } } </SCRIPT></font>
BODY..BODY arasına eklenecek kod
<font color="#ff6600"><DIV ID="divMenuBar"> <TABLE ID="tblMenuBar" BORDER="0"> <TR> <TD CLASS="MenuMadde" ID="tdMenuBarItem01">MENÜ MADDE 01</TD> <TD>|</TD> <TD CLASS="MenuMadde" ID="tdMenuBarItem02">MENÜ MADDE 02</TD> <TD>|</TD> <TD CLASS="MenuMadde" ID="tdMenuBarItem03">MENÜ MADDE 03</TD> </TR> </TABLE> </DIV> <DIV CLASS="clsMenu" ID="divMenu01"> <DIV CLASS="clsMenuAra"></DIV> <DIV><A TARGET="_new" href="01.asp">Madde 01</A></DIV> <DIV><A TARGET="_new" href="02.asp">Madde 02</A></DIV> <DIV><A TARGET="_new" href="03.asp">Madde 03</A></DIV> <DIV><A TARGET="_new" href="04.asp">Madde 04</A></DIV> <DIV><A TARGET="_new" href="05.asp">Madde 05</A></DIV> </DIV> <DIV CLASS="clsMenu" ID="divMenu02"> <DIV CLASS="clsMenuAra"></DIV> <DIV><A TARGET="_new" href="11.asp">Madde 01</A></DIV> <DIV><A TARGET="_new" href="12.asp">Madde 02</A></DIV> <DIV><A TARGET="_new" href="13.asp">Madde 03</A></DIV> <DIV><A TARGET="_new" href="14.asp">Madde 04</A></DIV> <DIV><A TARGET="_new" href="15.asp">Madde 05</A></DIV> </DIV> <DIV CLASS="clsMenu" ID="divMenu03"> <DIV CLASS="clsMenuAra"></DIV> <DIV><A TARGET="_new" href="21.asp">Madde 01</A></DIV> <DIV><A TARGET="_new" href="22.asp">Madde 02</A></DIV> <DIV><A TARGET="_new" href="23.asp">Madde 03</A></DIV> <DIV><A TARGET="_new" href="24.asp">Madde 04</A></DIV> <DIV><A TARGET="_new" href="25.asp">Madde 05</A></DIV> </DIV></font>
-Bu yazı toplam 2105 kez okunmuş. -Şu an okuyanlar 1 kişi. -Bu yazı bugün 4 kez okunmuş. -En son 2008-11-19 16:33:39 tarihinde okunmuş. 'Javascript kodları ile uzun ve açılır menü yapımı' isimli yazı 23 Tem 2007 tarihinde, saat: 20:30 'de ByM tarafından gönderilmiş |
"Javascript kodları ile uzun ve açılır menü yapımı" yazısı için Yorum var
PAYLAŞIM İÇİN TŞKLER AMA BU ALT MENÜLERE NASIL KÖPRÜ KURACAĞIM?
Bu yazı ile ilgili yorumunuzu buraya yazın