Sponsor-Board.de
Probleme mit DIV Tag

+- Sponsor-Board.de (https://www.sponsor-board.de)
+-- Forum: Community (/forumdisplay.php?fid=56)
+--- Forum: Hilfe (/forumdisplay.php?fid=102)
+---- Forum: Scripting (/forumdisplay.php?fid=108)
+---- Thema: Probleme mit DIV Tag (/showthread.php?tid=5213)


Probleme mit DIV Tag - Bene17 - 28.05.2010 16:00

hallo,

ích versuche im moment in unserem Clandesign eine Subnavigation eizubauen die ja per DIV gecoded wird und komme damit nich klar. Hab alles so gemacht wie es im TUT beschrieben wurde.
Über schnelle Hilfe würde ich mich freuen.

Folgendes Problem hab ich: die Buttonfunktion funktioniert nicht und die Inhalte werden untereinander angezeigt.

MfG: Bene17


RE: Probleme mit DIV Tag - taplix - 28.05.2010 16:02

einmal den code posten :-)

und das tut _D


RE: Probleme mit DIV Tag - Bene17 - 28.05.2010 16:08

Zitat:
Code im Head:
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible'Madv=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>

<style type="text/css">
<!--
#reports {
position: absolute;
margin-top: 0px;
margin-left: 0px;
visibility: hidden;
}
#memo {
position: absolute;
margin-top: 0px;
margin-left: 0px;
visibility: hidden;
}
#media {
position: absolute;
margin-top: 0px;
margin-left: 0px;
visibility: hidden;
}
#community {
position: absolute;
margin-top: 0px;
margin-left: 0px;
visibility: hidden;
}
</style>


Zitat:
Code bei den Buttons:
<td colspan="3"><img src="Bilder/index_09.jpg" width="69" height="23" onClick="MM_showHideLayers('reports','','show','memo','','hide','media','','hide','commun ity','','hide')"></td>
<td>
<img src="Bilder/index_10.jpg" width="96" height="23" onClick="MM_showHideLayers('reports','','hide','memo','','show','media','','hide','commun ity','','hide')"></td>
<td>
<img src="Bilder/index_11.jpg" width="52" height="23" onClick="MM_showHideLayers('reports','','hide','memo','','hide','media','','show','commun ity','','hide')"></td>
<td colspan="4"><img src="Bilder/index_12.jpg" width="59" height="23" alt="" /></td>
<td>
<img src="Bilder/index_13.jpg" width="79" height="23" onClick="MM_showHideLayers('reports','','hide','memo','','hide','media','','hide','commun ity','','show')"></td>


Zitat:
Code in der Subnavileiste:
<td><div id"reports">News - Articles - Archive</div>
<div id"memo">Teams - Staff - Matches - Awards - History - Sponsors</div>
<div id"media">Files - Demos - Gallery</div>
<div id"community">Member - Suche</div></td>


und noch das TUT: [Link: Registrierung erforderlich]


RE: Probleme mit DIV Tag - Bene17 - 28.05.2010 17:09

brauche immer noch Hilfe


RE: Probleme mit DIV Tag - BounTyOnline - 28.05.2010 22:03

mh, das ist keine subnavi die du hast, sondern eine switchbox xD
deswegen werden die untereinander angezeigt Biggrin

versuch es mal mit dem code
[Link: Registrierung erforderlich]

Wer dazu die tage aber noch ein tutorial verfassen.

MfG


RE: Probleme mit DIV Tag - Bene17 - 30.05.2010 14:40

mit dem Code von Dennis gehts. Dankeschön