kathrin: Fehlermeldung bei neuem Link einfügen

Beitrag lesen

sorry, ist aber sehr lang!? Danke für die Antwort.
{
    Normalsub=new Image();
    Normalsub.src="/images/leer.gif";
    Normal1 = new Image();
    Normal1.src = "/images/bibliothek_e.gif"; /* Hier Standard-Grafik angeben */
    Highlight1 = new Image();
    Highlight1.src = "/images/bibliothek_active_e.gif"; /* Hier Highlight-Grafik angeben */
    Highlight11 = new Image();
    Highlight11.src = "/images/bibliothek_sub_e.gif"; /* Hier Highlight-Grafik angeben */
    Normal2 = new Image();
    Normal2.src = "/images/aktuell_e.gif";
    Highlight2 = new Image();
    Highlight2.src = "/images/aktuell_active_e.gif";
    Highlight21 = new Image();
    Highlight21.src = "/images/aktuell_sub_e.gif";
    Normal3 = new Image();
    Normal3.src = "/images/service_e.gif";
    Highlight3 = new Image();
    Highlight3.src = "/images/service_active_e.gif";
    Highlight31 = new Image();
    Highlight31.src = "/images/service_sub_e.gif";
    Normal4 = new Image();
    Normal4.src = "/images/about_e.gif"; /* Hier Standard-Grafik angeben */
    Highlight4 = new Image();
    Highlight4.src = "/images/about_active_e.gif"; /* Hier Highlight-Grafik angeben */
    Highlight41 = new Image();
    Highlight41.src = "/images/about_sub_e.gif"; /* Hier Highlight-Grafik angeben */
      Normal5 = new Image();
    Normal5.src = "/images/myeth_e.gif"; /* Hier Standard-Grafik angeben */
    Highlight5 = new Image();
    Highlight5.src = "/images/myeth_active_e.gif"; /* Hier Highlight-Grafik angeben */
    Highlight51 = new Image();
    Highlight51.src = "/images/myeth_sub_e.gif"; /* Hier Highlight-Grafik angeben */
    Normal6 = new Image();
    Normal6.src = "/images/contacts_e.gif"; /* Hier Standard-Grafik angeben */
    Highlight6 = new Image();
    Highlight6.src = "/images/kontakte_active_e.gif"; /* Hier Highlight-Grafik angeben */
    Highlight61 = new Image();
    Highlight61.src = "/images/kontakte_sub_e.gif"; /* Hier Highlight-Grafik angeben */
}
else {Highlight11=0; Highlight21=0; Highlight31=0; Highlight41=0; Highlight51=0; Highlight61=0; Normal1=0; Normal2=0; Normal3=0; Normal4=0; Normal5=0; Normal6=0; Highlight1=0; Highlight2=0; Highlight3=0; Highlight4=0; Highlight5=0; Highlight6=0;}
function Bildwechsel(menuname,menuobj,subname,subobj)

{

if (benutzer)
{
// submenu handling
    if (subobj!=0)
    {
        count=1;
        while(count>6)
        {
            tempid="cover"+count;
            if (document.layers) document.layers[''+tempid+''].visibility = "show"
            else if (document.all) document.all[''+tempid+''].style.visibility = "visible"
            else if (document.getElementById) document.getElementById(''+tempid+'').style.visibility = "visible"
            count++;
        }

//viewing stuff... first hide all the gifs then show the right one
         window.document.images['sub1'].src = Normalsub.src;
         window.document.images['sub2'].src = Normalsub.src;
         window.document.images['sub3'].src = Normalsub.src;
         window.document.images['sub4'].src = Normalsub.src;
         window.document.images['sub5'].src = Normalsub.src;
         window.document.images['sub6'].src = Normalsub.src;
         window.document.images[subname].src = subobj.src;
    }
//main menu handling
     window.document.images[menuname].src = menuobj.src;
     coverid=subname.charAt(subname.length-1);
     tempid="cover"+coverid;
     if (document.layers) document.layers[''+tempid+''].visibility = "hide"
     else if (document.all) document.all[''+tempid+''].style.visibility = "hidden"
     else if (document.getElementById) document.getElementById(''+tempid+'').style.visibility = "hidden"
}
}

function CheckInput() {

if ( document.forms[0].elements[0].value == "" || document.forms[0].elements[0].length == 0 )
        {
      alert('Bitte geben Sie einen Suchbegriff ein ...');
          return false;
    }
        else {
           return true;
          }
}

// -->

</SCRIPT>