Hi
edit* ersten beitrag gelöscht weil es um eine andere seite geht und ich den falschen code gepostet hatte.... topic geht unten weiter
Zuletzt modifiziert von xCrystalx am 19.07.2009 - 13:11:55
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
| Geschlossen | ||





<script language="javascript">
var hauptmenuepunkt=new Array();
var submenue=new Array();
hauptmenuepunkt[0]="INFORMATION";
submenue[0]="subnavi1";
hauptmenuepunkt[1]="COMMUNITY";
submenue[1]="subnavi2";
hauptmenuepunkt[2]="TEAMS";
submenue[2]="subnavi3";
var vorher="subnavi1";
function show_submenue(menuepunkt,lnk)
{
for(i=0;i<hauptmenuepunkt.length;i++)
{
if(hauptmenuepunkt[i]==menuepunkt.childNodes[0].childNodes[0].nodeValue)
{
menue=submenue[i];
}
}
if(menue!="none")
{
if(vorher=="")
{
fade(0,menue,vorher);
vorher=menue;
}
else
{
if(vorher!=menue)
{
fade(0,menue,vorher);
vorher=menue;
}
}
}
else
{
if(vorher!="")
{
fade(0,'',vorher);
vorher="";
}
}
}
function fade(step, menue, vorher)
{
step = step || 0;
if(menue!="")
{
document.getElementById(menue).style.display="block";
document.getElementById(menue).style.opacity = step/100;
document.getElementById(menue).style.filter = "alpha(opacity=" + step + ")"; // IE
}
step = step + 2;
if(vorher!="")
{
document.getElementById(vorher).style.opacity=1-(step/100);
document.getElementById(vorher).style.filter = "alpha(opacity=" + (100-step) + ")"; // IE
//document.getElementById(menue).style.filter = "alpha(opacity=" + step + ")";
}
if (step <= 100)
{
if(vorher!="" && step==100)
{
document.getElementById(vorher).style.display="none";
}
window.setTimeout(function () { fade(step, menue, vorher); }, 1);
}
}
</script>
<div style="float:left; width:114px; height:27px; padding-top:20px; padding-left:10px"> <a style="color:#FFFFFF" href="#" onmouseover="show_submenue(this);"><span style="font-weight:bold; font-size:12px">INFORMATION</span></a> </div> <div style="float:left; width:114px; height:27px; padding-top:20px; padding-left:10px"> <a style="color:#FFFFFF" href="#" onmouseover="show_submenue(this);"><span style="font-weight:bold; font-size:12px">COMMUNITY</span></a> </div> <div style="float:left; width:114px; height:27px; padding-top:20px; padding-left:10px"> <a style="color:#FFFFFF" href="#" onmouseover="show_submenue(this);"><span style="font-weight:bold; font-size:12px">TEAMS</span></a> </div>
<div id="subnavi1" style="float:left">
<a class="subnavi" href="index.php?teams-show-2" onmouseover="show_submenue(this);">» Management</a>
<a class="subnavi" href="index.php?teams" onmouseover="show_submenue(this);">» Teams</a>
<a class="subnavi" href="index.php?wars-last" onmouseover="show_submenue(this);">» Wars</a>
<a class="subnavi" href="index.php?awards" onmouseover="show_submenue(this);">» Awards</a>
<a class="subnavi" href="index.php?server" onmouseover="show_submenue(this);">» Server</a>
</div>
<div id="subnavi2" style="float:left">
<a class="subnavi" href="index.php?forum" onmouseover="show_submenue(this);">» Forum</a>
<a class="subnavi" href="http://stbgaming.fliggo.com/" target="_blank" onmouseover="show_submenue(this);">» Videoportal</a>
<a class="subnavi" href="index.php?user" onmouseover="show_submenue(this);">» Mitglieder</a>
<a class="subnavi" href="index.php?rules" onmouseover="show_submenue(this);">» Regeln</a>
</div>
<div id="subnavi3" style="float:left">
<a class="subnavi" href="index.php?downloads" onmouseover="show_submenue(this);">» Downloads</a>
<a class="subnavi" href="index.php?linkus" onmouseover="show_submenue(this);">» Linkus</a>
</div>
echo "<b>punkte: $punkte</b>";



<div id="subnavi2" style="float:left; display:none">


<div id="subnavi2" style="float:left; display:none; position:absolute">


hauptmenuepunkt[0]="INFORMATION"; submenue[0]="subnavi1";

hauptmenuepunkt[0]="<img src=\"PFADZUMBILD\" />"; submenue[0]="subnavi1";

hauptmenuepunkt[0]="<img src=\"gfx/menu_01.gif\"/>"; submenue[0]="sub1"; hauptmenuepunkt[1]="<img src=\"gfx/menu_02.gif\"/>"; submenue[1]="sub2"; hauptmenuepunkt[2]="<img src=\"gfx/menu_03.gif\"/>"; submenue[2]="sub3";
<td width="84"><a href="#" onmouseover="show_submenue(this);"><span><img src="gfx/menu_01.gif" border="0"></span></a></td>

<script language="javascript">
var hauptmenuepunkt=new Array();
var submenue=new Array();
hauptmenuepunkt[0]="<img src=\"include/designs/teeworlds_wald/gfx/menu_01.gif\"/>";
submenue[0]="sub1";
hauptmenuepunkt[1]="<img src=\"include/designs/teeworlds_wald/gfx/menu_02.gif\"/>";
submenue[1]="sub2";
hauptmenuepunkt[2]="<img src=\"include/designs/teeworlds_wald/gfx/menu_03.gif\"/>";
submenue[2]="sub3";
var vorher="sub1";
function show_submenue(menuepunkt,lnk)
{
for(i=0;i<hauptmenuepunkt.length;i++)
{
if(hauptmenuepunkt[i]==menuepunkt.childNodes[0].childNodes[0].nodeValue)
{
menue=submenue[i];
}
}
if(menue!="none")
{
if(vorher=="")
{
fade(0,menue,vorher);
vorher=menue;
}
else
{
if(vorher!=menue)
{
fade(0,menue,vorher);
vorher=menue;
}
}
}
else
{
if(vorher!="")
{
fade(0,'',vorher);
vorher="";
}
}
}
function fade(step, menue, vorher)
{
step = step || 0;
if(menue!="")
{
document.getElementById(menue).style.display="block";
document.getElementById(menue).style.opacity = step/100;
document.getElementById(menue).style.filter = "alpha(opacity=" + step + ")"; // IE
}
step = step + 2;
if(vorher!="")
{
document.getElementById(vorher).style.opacity=1-(step/100);
document.getElementById(vorher).style.filter = "alpha(opacity=" + (100-step) + ")"; // IE
//document.getElementById(menue).style.filter = "alpha(opacity=" + step + ")";
}
if (step <= 100)
{
if(vorher!="" && step==100)
{
document.getElementById(vorher).style.display="none";
}
window.setTimeout(function () { fade(step, menue, vorher); }, 1);
}
}
</script>
<td width="84"><a href="index.php?news" onmouseover="show_submenue(sub1);"><span><img src="include/designs/teeworlds_wald/gfx/menu_01.gif" border="0"></span></a></td> <td width="84"><a href="index.php?teams" onmouseover="show_submenue(sub2);"><span><img src="include/designs/teeworlds_wald/gfx/menu_02.gif" border="0"></span></a></td> <td width="147"><a href="index.php?forum" onmouseover="show_submenue(sub3);"><span><img src="include/designs/teeworlds_wald/gfx/menu_03.gif" border="0"></span></a></td>

hauptmenuepunkt[0]="Menü1"; submenue[0]="sub1"; hauptmenuepunkt[1]="Menü2"; submenue[1]="sub2"; hauptmenuepunkt[2]="Menü3"; submenue[2]="sub3";

<script language="javascript">
var hauptmenuepunkt=new Array();
var submenue=new Array();
hauptmenuepunkt[0]="Menu1";
submenue[0]="sub1";
hauptmenuepunkt[1]="Menu2";
submenue[1]="sub2";
var vorher="sub1";
function show_submenue(menuepunkt,lnk) {
for(i=0;i<hauptmenuepunkt.length;i++) {
if(hauptmenuepunkt[i]==menuepunkt.getAttribute('id')) {
menue=submenue[i];
}
}
if(menue!="none") {
if(vorher=="") {
fade(0,menue,vorher);
vorher=menue;
}
else {
if(vorher!=menue) {
fade(0,menue,vorher);
vorher=menue;
}
}
}
else {
if(vorher!="") {
fade(0,'',vorher);
vorher="";
}
}
}
function fade(step, menue, vorher) {
step = step || 0;
if(menue!="") {
document.getElementById(menue).style.display="block";
document.getElementById(menue).style.opacity = step/100;
document.getElementById(menue).style.filter = "alpha(opacity=" + step + ")"; // IE
}
step = step + 2;
if(vorher!="") {
document.getElementById(vorher).style.opacity=1-(step/100);
document.getElementById(vorher).style.filter = "alpha(opacity=" + (100-step) + ")"; // IE
//document.getElementById(menue).style.filter = "alpha(opacity=" + step + ")";
}
if (step <= 100) {
if(vorher!="" && step==100) {
document.getElementById(vorher).style.display="none";
}
window.setTimeout(function () { fade(step, menue, vorher); }, 1);
}
}
</script>
<a onmouseover="show_submenue(this);" href="#" id="Menu1">Info</a> <a onmouseover="show_submenue(this);" href="#" id="Menu2">Test</a>
hauptmenuepunkt[0]="Menu1"; submenue[0]="sub1"; hauptmenuepunkt[1]="Menu2"; submenue[1]="sub2";
<a onmouseover="show_submenue(this);" href="index.php?teams" class="subnavi">» Teams</a> // in <a href="index.php?teams" class="subnavi">» Teams</a>

| Geschlossen | ||
![]() |
Zurück zu HTML, PHP, SQL,... | |