
<img src="fotka.gif " usemap="#mapa1">
<map name ="mapa1">
<area shape="rect" coords="1, 1, 50, 50" href="kumpel1.html" alt="kumpel1">
<area shape="rect" coords="51, 1, 100, 50" href="kumpel2.html" alt="kumpel2">
<area shape="rect" coords="1, 51, 51, 100" href="kumpel3.html" alt="kumpel3">
<area shape="rect" coords="51, 51, 100, 100" href="kumpel4.html" alt="kumpel4">
</map>
dj_disc napisał(a):oczywiście zamiast linków można dać akcję onmouseover
<script language="JavaScript">
<!--
//espey softs
function ShowHide(name)
{
var Obj = (document.getElementById) ? document.getElementById(name) : document.all[name];
if(Obj != null) Obj.style.display = (Obj.style.display == "none") ? "" : "none";
}
-->
</script>
<body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" text="#FFFFFF" bgcolor="#000000">
<img alt="http://www.gangczulychserc.pl/foto.JPG" src="foto.JPG" usemap="#mapa1" width="720" height="483">
<map name ="mapa1">
<area shape="rect" coords="100, 20, 170, 100" href="#" alt="kumpel1" onmouseover="ShowHide('opis1')" onmouseout="ShowHide('opis1')">
<area shape="rect" coords="213, 45, 290, 132" href="#" alt="kumpel2" onmouseover="ShowHide('opis2')" onmouseout="ShowHide('opis2')">
<area shape="rect" coords="349, 116, 415, 195" href="#" alt="kumpel3" onmouseover="ShowHide('opis3')" onmouseout="ShowHide('opis3')">
<area shape="rect" coords="414, 63, 478, 149" href="#" alt="kumpel4" onmouseover="ShowHide('opis4')" onmouseout="ShowHide('opis4')">
<area shape="rect" coords="564, 44, 628, 130" href="#" alt="kumpel5" onmouseover="ShowHide('opis5')" onmouseout="ShowHide('opis5')">
</map>
<div id="opis1" style="display: none;">Ten to 1</div>
<div id="opis2" style="display: none;">Ten to 2</div>
<div id="opis3" style="display: none;">Ten to 3</div>
<div id="opis4" style="display: none;">Ten to 4</div>
<div id="opis5" style="display: none;">Ten to 5</div>
dj_disc napisał(a):Chodziło mnie o onmouseover w JS onmouseover czemu skojażyło się Tobie z ActionScript?! przecież mapę obrazka robi się w html
Powróć do Grafika & Webmastering
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 0 gości