hi,
ziel war das da :
function ChangeGlas(glas_id,glas_view)
{
var NewImgSrc = "/_gfx/glas_" + glas_id + "_" + glas_view + ".gif" ;
var Image_Target = "glas_" + glas_id ;
var Menu_Target = "menu_" + glas_id ;
var Menu_Color = "#000000"
document.getElementById(Image_Target).src = NewImgSrc;
switch(glas_id)
{
case "1": Menu_Color = "#1DE03A" ; break
case "2": Menu_Color = "#B56AFF" ; break
case "3": Menu_Color = "#C2C285" ; break
case "4": Menu_Color = "#00FF00" ; break
}
if (glas_view == "b")
{
document.getElementById(Menu_Target).style.color = Menu_Color ;
} else {
document.getElementById(Menu_Target).style.color = "";
}
}