function slidedo(scr,alt) { $('#one').attr({src:scr, alt: alt}).css("opacity","1"); } function navigo(word) { $('#a, #b, #c').css("background","url(flipper_dots2.png)"); $('#'+word).css("background","url(flipper_dots3.png)"); }