Can we use more than 2 images for single navigation. That means when we hover on that image it will shows 6 different images. Is it possible to make for a single navigation image? If possible means how?
I think you are all understand this
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can (at the moment – cross browser) only set one bg image on an element. If you want to change it on hover or whatever, just add an
a-tag withhrefset on#:And then in the css:
a.img { width: 100px; height: 100px; } a#thatoneimg { backround-image: url(staticimg.jpg); } a#thatoneimg:hover { backround-image: url(movingimg.gif); }That should work cross browser. You need the
a-tag for it to work in IE.Edit:
As Starx said, just make the second image a .gif with an animation. It will not use sprites but it will work.