|
Mit mivel?
|
| jhSweet85 |
2008.08.13 21:51
|
Haladó fórumozó

Hozzászólások: 39
Regisztrált: 2008.08.11.
|
Hy, az lenne az egyik, hogy mivel hogyan csináltad a lenyíló menüt a fejléc alatt? (mivel nekem is olyan kéne)
odáig elhjutottunk, hogy te magad írtad, tehát leírnád, hogy meik kód, mihez? hogyan? miért?
a másik, hogy mi enneka themenek a neve, és egy harmadik, hogy a chat ?×? pixelre van állitva (már az irame:?)?
Szerkesztette: jhSweet85 - 2008.08.13 21:56 |
| |
|
|
| asdexed |
2008.08.13 22:08
|

Főadminisztrátor

Hozzászólások: 145
Regisztrált: 2007.07.23.
|
DHTML menü for v7 (manuális):
themeben keresel egy ilyet:
Kód".showsublinks(" ".THEME_BULLET." ", "white")."
ez a gillette ben ilyen
lecseréled erre:
Kód<style type='text/css'>
#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal 8pt Tahoma;
line-height:18px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: default;
}
#dropmenudiv a:hover{ /*hover background color*/
text-decoration:none;
background-color: #6A6A6A; /*menü szine*/
}</style>
<script language='JavaScript' src='".BASEDIR."includes/dhtml_menu/felsomenu.js'></script>
<table align='center' cellpadding='0' cellspacing='0' width='400' height='20' bgcolor='#565656' background='".BASEDIR."includes/dhtml_menu/bg.gif'>
<tr>
<td width='90' height='15' style='border-width:1px; border-color:black; border-style:solid;'>
<p align='center'><a href='#' onClick='return clickreturnvalue()' onMouseover=\"dropdownmenu(this, event, menu1, '150px')\" onMouseout='delayhidemenu()'>Főmenü</a></td>
<td width='90' height='15' style='border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:0; border-color:black; border-style:solid;'>
<p align='center'><a href='#' onClick='return clickreturnvalue()' onMouseover=\"dropdownmenu(this, event, menu2, '150px')\" onMouseout='delayhidemenu()'>Beküldés</a></td>
<td width='90' height='15' style='border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:0px; border-color:black; border-style:solid;'>
<p align='center'><a href='#' onClick='return clickreturnvalue()' onMouseover=\"dropdownmenu(this, event, menu3, '150px')\" onMouseout='delayhidemenu()'>Letöltések</a> </td>
<td width='90' height='15' style='border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:0px; border-color:black; border-style:solid;'>
<p align='center'><a href='#' onClick='return clickreturnvalue()' onMouseover=\"dropdownmenu(this, event, menu4, '150px')\" onMouseout='delayhidemenu()'>Közösség</a></td>
<td width='90' height='15' style='border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:0px; border-color:black; border-style:solid;'>
<p align='center'><a href='#' onClick='return clickreturnvalue()' onMouseover=\"dropdownmenu(this, event, menu5, '150px')\" onMouseout='delayhidemenu()'>Segítség</a> </td>
<td width='90' height='15' style='border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:0px; border-color:black; border-style:solid;'>
<p align='center'><a href='#' onClick='return clickreturnvalue()' onMouseover=\"dropdownmenu(this, event, menu6, '150px')\" onMouseout='delayhidemenu()'>Impresszum</a> </td>
</tr>
</table>
a fönti kódban hatszor szerepel ez:
Kóddelayhidemenu()'>VALAMI</a></td
felülről kezdve befelé haladva változnak a nevei. hat darab lenyitható menüt lehet beilleszteni.
----------------------JS----------------------
hozz létre az includes mappában egy dhtml_menu mappát
csinálj egy bg.gif et (ez lesz a menü háttere)
csinálj egy felsomenu.js fájlt aminek a következő a tartalma:
Kód
//Első menü
var menu1=new Array()
menu1[0]='<a href="oldal.html">Első menü-1</a>'
menu1[1]='<a href="oldal.html">Első menü-2</a>'
menu1[2]='<a href="oldal.html">Első menü-3</a>'
menu1[3]='<a href="oldal.html">Első menü-4</a>'
//Második menü
var menu2=new Array()
menu2[0]='<a href="oldal.html">Második menü-1</a>'
menu2[1]='<a href="oldal.html">Második menü-2</a>'
menu2[2]='<a href="oldal.html">Második menü-3</a>'
//Harmadik menü
var menu3=new Array()
menu3[0]='<a href="oldal.html">Harmadik menü-1</a>'
menu3[1]='<a href="oldal.html">Harmadik menü-2</a>'
menu3[2]='<a href="oldal.html">Harmadik menü-3</a>'
menu3[3]='<a href="oldal.html">Harmadik menü-4</a>'
//Negyedik menü
var menu4=new Array()
menu4[0]='<a href="oldal.html">Negyedik menü-1</a>'
menu4[1]='<a href="oldal.html">Negyedik menü-2</a>'
menu4[2]='<a href="oldal.html">Negyedik menü-3</a>'
menu4[3]='<a href="oldal.html">Negyedik menü-4</a>'
menu4[4]='<a href="oldal.html">Negyedik menü-5</a>'
menu4[5]='<a href="oldal.html">Negyedik menü-6</a>'
menu4[6]='<a href="oldal.html">Negyedik menü-7</a>'
//Ötödik menü
var menu5=new Array()
menu5[0]='<a href="oldal.html">Ötödik menü-1</a>'
menu5[1]='<a href="oldal.html">Ötödik menü-2</a>'
menu5[2]='<a href="oldal.html">Ötödik menü-3</a>'
menu5[3]='<a href="oldal.html">Ötödik menü-4</a>'
//Hatodik menü
var menu6=new Array()
menu6[0]='<a href="oldal.html">Hatodik menü-1</a>'
menu6[1]='<a href="oldal.html">Hatodik menü-2</a>'
menu5[2]='<a href="oldal.html">Hatodik menü-3</a>'
menu6[3]='<a href="oldal.html">Hatodik menü-4</a>'
var menuwidth='165px' //Menü szélesség
var menubgcolor='#504F4F' //menü háttérszín
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////NE MÓDOSÍTSD INNENTŐL!!!!!
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
a fönti részt kell átírnod hogy a saját menüpontjaid legyenek benne
admin menüt ne csinálj mert nem fog működni!
ha a felhasználó a fóruban van egyik menüpont sem működik! (v7 hátránya) |
| |
|
|
| asdexed |
2008.08.13 22:09
|

Főadminisztrátor

Hozzászólások: 145
Regisztrált: 2007.07.23.
|
a chat az iframe ban van megjelenítva, a theme nek nincs neve  |
| |
|
|
| asdexed |
2008.08.13 22:18
|

Főadminisztrátor

Hozzászólások: 145
Regisztrált: 2007.07.23.
|
lenyílt menük bővítése!:
//Harmadik menü
menu3[4]='<a href="oldal.html">Harmadik menü-5</a>'
//Negyedig menü
menu4[4]='<a href="oldal.html">Harmadik menü-5</a>'
ahanyadik menü annak a számnak kell elől lennie. a második azám a lenyíló menünél a sorszámot jelöli.
a második menüt így egészíteném ki:
//Második menü
var menu2=new Array()
menu2[0]='<a href="oldal.html">Második menü-1</a>'
menu2[1]='<a href="oldal.html">Második menü-2</a>'
menu2[2]='<a href="oldal.html">Második menü-3</a>'
menu2[3]='<a href="oldal.html">Második menü-4</a>'
Szerkesztette: asdexed - 2008.08.13 22:19 |
| |
|
|
| grandno |
2008.09.04 20:29
|
Haladó fórumozó

Hozzászólások: 27
Regisztrált: 2008.09.03.
|
Nekem za bajaom vele hogy nagyon magas (http://grandno.sz...com/files/) |
| |
|
|
| jhSweet85 |
2008.09.04 20:38
|
Haladó fórumozó

Hozzászólások: 39
Regisztrált: 2008.08.11.
|
srác, ezekneka felhasználására engedélytkell kérni, amig nincs nem segithetek... |
| |
|
|
| jhSweet85 |
2008.09.04 20:39
|
Haladó fórumozó

Hozzászólások: 39
Regisztrált: 2008.08.11.
|
amgy tudom mi a hiba... |
| |
|
|
| grandno |
2008.09.04 20:54
|
Haladó fórumozó

Hozzászólások: 27
Regisztrált: 2008.09.03.
|
Nekem a főadmin irt a php-fusion oldalon privi üzentebe hogy itt le van írva és innen csináljam... |
| |
|
|
| asdexed |
2008.09.04 21:09
|

Főadminisztrátor

Hozzászólások: 145
Regisztrált: 2007.07.23.
|
ha kiteszel egy reklámot engedélyezve lesz |
| |
|
|
| grandno |
2008.09.04 21:10
|
Haladó fórumozó

Hozzászólások: 27
Regisztrált: 2008.09.03.
|
na jó!! kiteszek!! |
| |
|
|
| grandno |
2008.09.04 21:14
|
Haladó fórumozó

Hozzászólások: 27
Regisztrált: 2008.09.03.
|
kiraktam |
| |
|
|
| grandno |
2008.09.04 21:28
|
Haladó fórumozó

Hozzászólások: 27
Regisztrált: 2008.09.03.
|
asdexed írta:
ha kiteszel egy reklámot engedélyezve lesz
Na mia z??? kiraktam!!!! SŰRGŐS lennne!!! |
| |
|
|
| jhSweet85 |
2008.09.04 21:33
|
Haladó fórumozó

Hozzászólások: 39
Regisztrált: 2008.08.11.
|
msnen elmondom... |
| |
|
|
| grandno |
2008.09.04 21:34
|
Haladó fórumozó

Hozzászólások: 27
Regisztrált: 2008.09.03.
|
ok, benito-netkori@hotmail.com |
| |
|
|
| asdexed |
2008.09.04 21:36
|

Főadminisztrátor

Hozzászólások: 145
Regisztrált: 2007.07.23.
|
a kódban amit a theme.php ba illesztettél be bannak ilyenek Kódborder='1' vagy border=1
ezeket módosítsd 0 értékre mindenhol (de csak az újonnan beillesztett kódban)
a magasságot a height='valami' illetve a height=valami értékek módosításával változtathatod! |
| |
|
|
| grandno |
2008.09.10 12:06
|
Haladó fórumozó

Hozzászólások: 27
Regisztrált: 2008.09.03.
|
kössszz, nem lehetne ezt megoldani v6 ban?? mert a v6 os dhtml infusionon nem tok eligazodni.... |
| |
|