harunaksoy Posted November 29, 2005 Share Posted November 29, 2005 Can someone tell me how to do that? Do you need Javascript for this or can it be done with HTML/CSSThanks... Link to comment Share on other sites More sharing options...
RayOK Posted November 30, 2005 Share Posted November 30, 2005 If the item will be a link, <a>, then you could use :hover in CSS like so:<style>a { background: blue;}a:hover { background: white;}</style>You could use :hover with other tags, but it won't work in IE, it only recognizes a:hover..The more compatible method would be javascript + CSS (DHTML I think its called), like so:<style>span { background: blue;}.whitespan { background: white;}</style></head><body><span onmouseover="this.className='whitespan'" onmouseout="this.className=''">Text..</span>Hope this makes sense and helps.. Link to comment Share on other sites More sharing options...
harunaksoy Posted November 30, 2005 Author Share Posted November 30, 2005 Thanks for your help, i'll try it tonight Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now