![]() |
Вот у меня есть рисунок-ссылка...как сделать так, чтобы при наведении курсора картинка стала другой, но ссылка той же!:((
|
MelouN
да поможет тебе css + java script: <style> td.a {text-decoration: none; font-family: Verdana; font-size: 11pt; text-align: center; background-image: images/1.gif;} td.ahover {text-decoration: none; font-family: Verdana; font-size: 11pt; text-align: center; background-image: images/2.gif;} a {color: white;} a:hover {color: white;} </style> </head> <table width="100%"> <tr><td class="a" onmouseover="this.className='ahover'" onmouseout="this.className='a'"><a href="#">WEB-DESIGN</a></td></tr></table> [s]Исправлено: Ginger, 4:35 6-09-2003[/s] |
Вот что предлогает Dreamweaver 4 + некоторые элементарные изменения:
<html><head> <meta name="Robots" content="all"> <title>menu.htm</title> <meta http-equiv="Content text" content="text/html; charset=1251"> <script language="JavaScript"> </script> </head> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onLoad="MM_preloadImages('01re.gif','02re.gif','03re.gif')onClick="if ((event.srcElement) && (event.srcElement.tagName == "IMG" || event.srcElement.tagName == "A")) self.focus()""> <p style="margin-top: 0; margin-bottom: 0"><a href="../index.htm" onClick="MM_nbGroup('down','group1','_01_zdrav','01re.gif',1)" onMouseOver="MM_nbGroup('over','_01_zdrav','01re.gif','01re.gif',1)" onMouseOut="MM_nbGroup('out')" target="_top"><img name="_01_zdrav" src="01.gif" border="0" onLoad="" width="147" height="28" alt="ПЕРВАЯ ССЫЛКА"></a></p> <p style="margin-top: 0; margin-bottom: 0"><a href="../author.htm" onClick="MM_nbGroup('down','group1','_02_author','02re.gif',1)" onMouseOver="MM_nbGroup('over','_02_author','02re.gif','02re.gif',1)" onMouseOut="MM_nbGroup('out')" target="_top"><img name="_02_author" src="02.gif" border="0" onLoad="" width="147" height="28" alt="АВТОР"></a></p> <p style="margin-top: 5; margin-bottom: 0"><a href="../photo.htm" onClick="MM_nbGroup('down','group1','_03_photo','03re.gif',1)" onMouseOver="MM_nbGroup('over','_03_photo','03re.gif','03re.gif',1)" onMouseOut="MM_nbGroup('out')" target="_top"><img name="_03_photo" src="03.gif" border="0" onLoad="" width="147" height="28" alt="ФОТО"></a></p> </body> </html> [s]Исправлено: Georgiy, 15:55 6-10-2003[/s] |
Время: 04:56. |
Время: 04:56.
© OSzone.net 2001-