Moin!
if(ie4){
document.all.menuImage.background=$img.src;
menuImage ist hier wohl falsch und heißt menuImageLayer, oder?
}
else if(ns4){
document.menuImageLayer.background.src=$img.src;
}
else if(v6){
document.getElementByID("menuImageLayer").background.src=$img.src;
Hier muß vor background noch ein style rein. Schließlich willst du die Stylesheetformatierung ändern.
Außerdem dürfte es dann .....style.background="url("+img.src+")" heißen müssen, nämlich genauso, wie im CSS auch.
}
}
- Sven Rautenberg