Hilfe bei ,,Flodout Menü,, -grafik vor den links soll weg |
evelyn260590

Mitglied
 

Dabei seit: 24.01.2006
Beiträge: 2.462
 |
|
Hilfe bei ,,Flodout Menü,, -grafik vor den links soll weg |
 |
hey ihr,
ich mache mir grade ein ,,Foldout Menü,, ( beim klicken auf das oberthema z.b ,,allgemeines,, öffnen sich darunter die links ) bei der voreinstellung des menüs (so wie ich den code kopiert habe ) waren vor den oberthemen (-allgemeines) eine kleine grafik mit nem pfeil,so und die will ich weg haben,wenn ich den code <img>:bla bla lösche verschwindet aber mein oberthema
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
|
<body onload="init()">
<table border="0" cellpadding="4" cellspacing="3" width="100%">
<tr>
<td align="left" width="20%">
<style>
DIV.clTop {position:absolute; width:170}
DIV.clSub {position:absolute; left:15; width:170;}
#divCont {position:relative; left:100; height:100; width:170;}
A.clMain {font-family:Arial, Verdana, Helvetica, Helv; font-size:14px; text-decoration:none; font-weight:bold; color:black;}
A.clSubb {font-family:Arial, Verdana, Helvetica, Helv; font-size:14px; text-decoration:none; color:black;}
#divMain {position:absolute;}
</style>
<script language="JavaScript">
<!--
var stayFolded=false
var exImg=new Image(); exImg.src='dsmh.gif'
var unImg=new Image(); unImg.src='usm.gif'
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
var browser=((n || ie) && parseInt(navigator.appVersion)>=4)
function makeMenu(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.css=(n) ? eval(nest+'document.'+obj):eval('document.all.'+obj+'.style')
this.ref=(n) ? eval(nest+'document.'+obj+'.document'):eval('document');
this.height=n?this.ref.height:eval(obj+'.offsetHeight')
this.x=(n)? this.css.left:this.css.pixelLeft;this.y=(n)? this.css.top:this.css.pixelTop;
this.hideIt=b_hideIt; this.showIt=b_showIt; this.vis=b_vis; this.moveIt=b_moveIt
return this
}
function b_showIt(){this.css.visibility="visible"}
function b_hideIt(){this.css.visibility="hidden"}
function b_vis(){if(this.css.visibility=="hidden" || this.css.visibility=="hide") return true;}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y}
function init(){
oTop=new Array()
oTop[0]=new makeMenu('divTop1','divCont')
oTop[1]=new makeMenu('divTop2','divCont')
oTop[2]=new makeMenu('divTop3','divCont')
oTop[3]=new makeMenu('divTop4','divCont')
oTop[4]=new makeMenu('divTop5','divCont')
oTop[5]=new makeMenu('divTop6','divCont')
oSub=new Array()
oSub[0]=new makeMenu('divSub1','divCont.document.divTop1')
oSub[1]=new makeMenu('divSub2','divCont.document.divTop2')
oSub[2]=new makeMenu('divSub3','divCont.document.divTop3')
oSub[3]=new makeMenu('divSub4','divCont.document.divTop4')
oSub[4]=new makeMenu('divSub5','divCont.document.divTop5')
oSub[5]=new makeMenu('divSub6','divCont.document.divTop6')
for(i=0;i<oSub.length;i++){ oSub[i].hideIt() }
for(i=1;i<oTop.length;i++){ oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height) }
}
function menu(num){
if(browser){
if(!stayFolded){
for(i=0;i<oSub.length;i++){
if(i!=num){
oSub[i].hideIt()
oTop[i].ref["imgA"+i].src=unImg.src
}
}
for(i=1;i<oTop.length;i++){
oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height)
}
}
if(oSub[num].vis()){
oSub[num].showIt()
oTop[num].ref["imgA"+num].src=exImg.src
}else{
oSub[num].hideIt()
oTop[num].ref["imgA"+num].src=unImg.src
}
for(i=1;i<oTop.length;i++){
if(!oSub[i-1].vis()) oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height+oSub[i-1].height)
else oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height)
}
}
}
// -->
</script>
<div id="divCont">
<div id="divTop1" class="clTop"><a href="#" target="_self" onclick="menu(0); return false" class="clMain">
<img src="" name="imgA0" alt="" border="0"> Allgemeines</a><br>
<div id="divSub1" class="clSub">
<a href="http://gutfalkenberg.gu.funpic.de/Textseiten/twillkommen.htm" target="_self" class="clSubb">Home</a><br>
<a href="http://gutfalkenberg.gu.funpic.de/Textseiten/tFAQ.htm" target="_self" class="clSubb">FAQ</a><br>
<a href="http://gutfalkenberg.gu.funpic.de/Textseiten/timpressum.htm" target="_self" class="clSubb">Impressum</a><br>
<a href="http://gutfalkenberg.gu.funpic.de/Textseiten/tbildnachweise.htm" target="_self" class="clSubb">Bildnachweise</a><br>
<a href="http://gutfalkenberg.gu.funpic.de/Textseiten/tgrafiknachweise" target="_self" class="clSubb">Grafiknachweise</a><br>
<a href="http://gutfalkenberg.gu.funpic.de/Textseiten/tgaestebuecher" target="_self" class="clSubb">Gästebücher</a><br>
</div>
</div>
<div id="divTop2" class="clTop"><a href="#" target="_self" onclick="menu(1); return false" class="clMain">
<img src="usm.gif" name="imgA1" alt="" border="0"> Auswahl 2</a><br>
<div id="divSub2" class="clSub">
<a href="#" target="_self" class="clSubb">Punkt 2a</a><br>
<a href="#" target="_self" class="clSubb">Punkt 2b</a><br>
</div>
</div>
<div id="divTop3" class="clTop"><a href="#" target="_self" onclick="menu(2); return false" class="clMain">
<img src="usm.gif" name="imgA2" alt="" border="0"> Auswahl 3</a><br>
<div id="divSub3" class="clSub">
<a href="#" target="_self" class="clSubb">Punkt 3a</a><br>
<a href="#" target="_self" class="clSubb">Punkt 3b</a><br>
</div>
</div>
<div id="divTop4" class="clTop" style="position: absolute; left: 0px; top: 0px"><a href="" onclick="menu(3); return false" class="clMain">
<img src="usm.gif" name="imgA3" alt="" border="0"> Auswahl 4</a><br>
<div id="divSub4" class="clSub">
<a href="#" target="_self" class="clSubb">Punkt 4a</a><br>
<a href="#" target="_self" class="clSubb">Punkt 4b</a><br>
</div>
</div>
<div id="divTop5" class="clTop"><a href="" onclick="menu(4); return false" class="clMain">
<img src="usm.gif" name="imgA4" alt="" border="0"> Auswahl 5</a><br>
<div id="divSub5" class="clSub">
<a href="#" target="_self" class="clSubb">Punkt 5a</a><br>
<a href="#" target="_self" class="clSubb">Punkt 5b</a><br>
</div>
</div>
<div id="divTop6" class="clTop"><a href="" onclick="menu(5); return false" class="clMain">
<img src="usm.gif" name="imgA5" alt="" border="0"> Auswahl 6</a><br>
<div id="divSub6" class="clSub">
<a href="#" target="_self" class="clSubb">Punkt 6a</a><br>
<a href="#" target="_self" class="clSubb">Punkt 6b</a><br>
</div>
</div>
</div>
</td>
</tr>
</table>
|
|
lg Evelyn
__________________
|
|
18.02.2007 13:15 |
|
|
Melli

i will rest in pieces !!
 

Dabei seit: 28.01.2006
Beiträge: 4.692
Herkunft: DE
 |
|
Mhh... könntest du mal nen Screnn machn oder die Seite zeign?
lG
|
|
18.02.2007 13:22 |
|
|
evelyn260590

Mitglied
 

Dabei seit: 24.01.2006
Beiträge: 2.462
Themenstarter
 |
|
|
18.02.2007 15:03 |
|
|
evelyn260590

Mitglied
 

Dabei seit: 24.01.2006
Beiträge: 2.462
Themenstarter
 |
|
mhh,schade aber danke jeanny,dass andere was ich erst hatte war mir zu komplizierrt^^ aber nochmal danke für deine hilfe.
vielleicht weiß ja wer anders wie man mein problem lösen kann
lg
__________________
|
|
18.02.2007 20:10 |
|
|
|
Impressum
|