Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsI'd like to do a simple toggle for mouseovers. I've 4 thumbnail images, wrapped inside of links, and then one big DIV where a larger image can appear. The large image should depend on the last thumbnail that is mousedover. Of the 4 links, each is to have a border, when it has been chosen (that is mousedover). We are using text-decoration for the border. I'm trying this code:
jQuery(document).ready(fun
$(".view-thumb img").mouseover(function()
// get rid of the text decoration on all 4 thumbnails
$(".view-thumb").css("text
// now reapply the text-decoration to this particular link
this.parentNode.style.text
alert(this.parentNode.id);
});
});
The alert() gets the id of the link, and when I look at in the browser, I can see that the code is correctly finding the link. Therefore, it seems to be I should be able to set its text decoration. I know I've got the right node because I've seen the id in that alert().
This doesn't seem to work at all. This seems to have no effect on the textdecoration of the element. The CSS style sheet is causing the link to have text-decoration on hover, but we want more than hover - if you mouseout of one thumbnail, but you don't mouse over another thumbnail, you'r last thumbnail should contiue to have text decoration.
What am I doing wrong?
These are some additional notes:
// this bit of CSS:
//
// a:hover{
// text-decoration:underline;
// }
//
// which is on line 16 of styles.css, causes a border to
// appear around the 4 small thumbnails that are underneath
// the main product image on the page. We need to make this
// border permanent, rather than merely onhover.
//
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: hb69Posted on 2009-04-23 at 11:15:31ID: 24218089
Comments are available to members only. Sign up or Log in to view these comments.