http://laska-samp.biz/articles/html/scripts/menkartinka
°•°•° Проект SAMP - Romashka [0.3e] ™18+™ °•°•° :: Теория :: HTML, css, script, MySQL :: script

Меняющаяся картинка при наведении мыши

<script language="JavaScript"> item1 = new Image(323,293); item1.src = "/images/igra1.jpg"
item1alt = new Image(323,293); item1alt.src = "/images/igra2.jpg"
function rollover(theImage){document.images[theImage].src = eval(theImage+'alt.src')} function rollout(theImage){document.images[theImage].src = eval(theImage+'.src')} </script>
<center>
<table width=99% height=99%>
<tr>
<td align=center>
<table width=323 height=293 cellspacing=0 cellpadding=0 border=0>
<tr>
<td>
<a href="http://laska-samp.biz/" onmouseover=rollover('item1') onmouseout=rollout('item1')>
<img src="/images/igra1.jpg" name=item1 width=323 height=293 border=0>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>


Опубликовано 19 February 2016