Foundas
10-21-2005, 01:53 PM
Hi all
kindly request your help on this. I want to change the image i have in from of the text in a drop down sub/menu. There is a small empty box and when hovered, i want to replace it with a filled box without loosing the text that follows.
----------------------------------------------------------
my CSS is like this:
.ddm1 .item2,
.ddm1 .item2:hover {
padding: 1em 26px 1em 26px;
text-decoration: none;
display: block;
white-space: nowrap;
}
.ddm1 .item2 {
background-color: #FEF5F8;
color: #000000;
}
.ddm1 .item2:hover {
color: #FF0000;
}
---------------------------------------------------------
and the HTML:
<table cellspacing="0" cellpadding="0" id="menu1" class="ddm1" width="100%">
<tr>
<td width="13%"><a class="item1 left" href="javascript:void(0)"><img src="images/corner_arrow.gif" border=0 width="13px" height="10px"> My Account</a>
<div class="section">
<a class="item2" href="settings.asp"><img src="images/unselected.gif" border=0 width="13px" height="8px Settings</a>
<a class="item2" href="changepassword.asp"><img src="images/unselected.gif" border=0 width="13px" height="8px"> Change Password</a>
<a class="item2" href="editprofile.asp"><img src="images/unselected.gif" border=0 width="13px" height="8px"> Edit Profile</a>
</div>
</td>
<table>
---------------------------------------------------------------
is there a way to check in HTML, and when "Change Password" is hovered, to change the "unselected.gif" image with the "selected.gif" ???
Thanks in advance
kindly request your help on this. I want to change the image i have in from of the text in a drop down sub/menu. There is a small empty box and when hovered, i want to replace it with a filled box without loosing the text that follows.
----------------------------------------------------------
my CSS is like this:
.ddm1 .item2,
.ddm1 .item2:hover {
padding: 1em 26px 1em 26px;
text-decoration: none;
display: block;
white-space: nowrap;
}
.ddm1 .item2 {
background-color: #FEF5F8;
color: #000000;
}
.ddm1 .item2:hover {
color: #FF0000;
}
---------------------------------------------------------
and the HTML:
<table cellspacing="0" cellpadding="0" id="menu1" class="ddm1" width="100%">
<tr>
<td width="13%"><a class="item1 left" href="javascript:void(0)"><img src="images/corner_arrow.gif" border=0 width="13px" height="10px"> My Account</a>
<div class="section">
<a class="item2" href="settings.asp"><img src="images/unselected.gif" border=0 width="13px" height="8px Settings</a>
<a class="item2" href="changepassword.asp"><img src="images/unselected.gif" border=0 width="13px" height="8px"> Change Password</a>
<a class="item2" href="editprofile.asp"><img src="images/unselected.gif" border=0 width="13px" height="8px"> Edit Profile</a>
</div>
</td>
<table>
---------------------------------------------------------------
is there a way to check in HTML, and when "Change Password" is hovered, to change the "unselected.gif" image with the "selected.gif" ???
Thanks in advance