Drstein99 Posted June 22, 2005 Posted June 22, 2005 I am building an online catalog. For the product picture, I want a thumbnail on the screen, with a click-to-enlarge hyperlink on the bottom. But I want them to click the image too, by signalling they can do that by sorta making the image lighter or some way like that. How can I highlight an image (that can be resized by proportion to "PX" width or height) when user glides cursor across it on the screen, to appear as if it's clickable? Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
david7777 Posted June 30, 2005 Posted June 30, 2005 This would best be done with DHTML using JavaScript... There are Alpha channels you can use to change the look of the image when the user hovers over it, but that is browser specific... What I would suggest is have the image in a TABLE or DIV slightly bigger than the image, so it has a border around it, with the background color set to say, blue. Then you will need to add some javascript to the "OnMouseOver" event to change the background color to red or something... Go check out http://www.w3schools.com to learn about DHTML, JavaScript, the HTML DOM and CSS... Quote Bypass your proxy and get anonymous internet surfing FREE!
Drstein99 Posted June 30, 2005 Author Posted June 30, 2005 Are you saying I gotta make two pics and alternate them when the user hovers the pic? I was looking for a function that automatically took the pic, re/rendered it with a higher brightness or something automatically. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
david7777 Posted June 30, 2005 Posted June 30, 2005 Are you saying I gotta make two pics and alternate them when the user hovers the pic? I was looking for a function that automatically took the pic' date=' re/rendered it with a higher brightness or something automatically.[/quote'] No - not saying that at all. Using javascript alpha channels will dynamically change the ONE image you have on the client side, but this method will only work in certain browsers. The other option i mentioned was to use CSS and JavaScript to change the border color around the image when hovered over, so again, no aditional image will be needed... Quote Bypass your proxy and get anonymous internet surfing FREE!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.