Wie wärs per javascript mit jquery? Code(ungetestet): Code: $(function() { $('#navi li').eq(0).hover( function() { $(this).css('backgroundImage','path/to/img1'); }, function() { $(this).css('backgroundImage',''); }); $('#navi li').eq(1).hover( function() { $(this).css('backgroundImage','path/to/img2'); }, function() { $(this).css('backgroundImage',''); }); $('#navi li').eq(2).hover( function() { $(this).css('backgroundImage','path/to/img3'); }, function() { $(this).css('backgroundImage',''); }); });
$(function() { $('#navi li').eq(0).hover( function() { $(this).css('backgroundImage','path/to/img1'); }, function() { $(this).css('backgroundImage',''); }); $('#navi li').eq(1).hover( function() { $(this).css('backgroundImage','path/to/img2'); }, function() { $(this).css('backgroundImage',''); }); $('#navi li').eq(2).hover( function() { $(this).css('backgroundImage','path/to/img3'); }, function() { $(this).css('backgroundImage',''); }); });
-- Digital Monsters | Taichis Story | Yamatos Story | Final Storys | Julien-K The Game | RPG-Stars Homepage
Foren-Regeln