Re: Change cell colour with selection from a drop down menu

From: Date: Tue, 30 Sep 2003 14:41:12 +0000
Subject: Re: Change cell colour with selection from a drop down menu
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-164400@lists.php.net to get a copy of this message
If both images have the same size you don't even need javascript: <style> #mydiv { background-image : url(http://domain.org/image1.jpg); background-repeat : no-repeat; width : 200px; height : 120px; } #mydiv:hover { background-image : url(http://domain.org/image2.jpg); background-repeat : no-repeat; width : 200px; height : 120px; } </style> <div id="mydiv">&nbsp;</div> David T-G wrote:
Marek, et al -- Please excuse this off-topic post. I've tried to ask with a fresh message but it never seems to appear... ...and then Marek Kilimajer said... % ... % If you don't want your users to wait for server responce each time they % touch something, use javascript. % % <select onchange="changeColor(this.value);"> ... I am putting together a web site with graphics from the artist and I need to learn how to change the image when I hover over it. Can you recommend a good javascript list or resource, particularly for someone who doesn't want to learn a lot of javascript? Replies telling how to do this, either here or off-list, are also very much appreciated :-) TIA & HAND :-D


« previous php.general (#164400) next »