Jump to content
Stef's Coding Community
williamrouse

Image rollover

Recommended Posts

You are using this in your CSS:

 

a:rollover

a.rollover:hover

 

I'm guessing the ":" the first line was supposed to be a "." If so, fix that, and then you'll need to add a "rollover" class to your link element, like this:

 


 

I also believe you need some sort of text inside the element, like this:

 

link text

 

You can then hide the text by using CSS:

 

text-indent:-999px;

Share this post


Link to post
Share on other sites

Thanks for the syntax correction. I have made some progress but realize I don?t understand the display problem at all.

First with the comments I just received, I can bring the image on the screen. What I don?t understand is how to access the various parts of the image.

In my case my image is 176px wide and 80px high. What this means is that in one state I would like to bring the first 40 pixels to the screen 176 pixels wide, and then in another state pixel 41 through 80.

My other option which I will work on now is to lay the bitmap 352 wide and 40 high and see if my code works.

Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...