
chcialbym zeby ktos mi edytowal... skrypt ...
w HEAD umiescilem :
<script TYPE="text/javascript" LANGUAGE="JavaScript"> <!-- function przycisk(podstawowy, wskazany, klikniety, tekst) { if (document.images) { this.name = "img" + przyciski.length; if (podstawowy) { this.normal = new Image(); this.normal.src = podstawowy } if (wskazany) { this.over = new Image(); this.over.src = wskazany } if (klikniety) { this.down = new Image(); this.down.src = klikniety } } if (tekst) this.opis = tekst; this.normalizuj = normalizuj; this.podswietl = podswietl; this.kliknij = kliknij; return this; function normalizuj() { if (document.images) document.images[this.name].src = this.normal.src; window.status = "" } function podswietl() { if (document.images && this.over) document.images[this.name].src = this.over.src; if (this.opis) window.status = this.opis } function kliknij() { if (document.images) document.images[this.name].src = this.down.src } } //--> </SCRIPT> <script TYPE="text/javascript" LANGUAGE="JavaScript"> <!-- przyciski = new Array(""); if (document.images) { // Dodawanie kolejnych przycisków: przyciski[1] = new przycisk("home1a.jpg", "home1b.jpg", "home1c.jpg"); przyciski[2] = new przycisk("ubrania1a.jpg", "ubrania1b.jpg", "ubrania1c.jpg"); przyciski[3] = new przycisk("akcesoria1a.jpg", "akcesoria1b.jpg", "akcesoria1c.jpg"); przyciski[4] = new przycisk("podroz1a.jpg", "podroz1b.jpg", "podroz1c.jpg"); przyciski[5] = new przycisk("biuro1a.jpg", "biuro1b.jpg", "biuro1c.jpg"); przyciski[6] = new przycisk("eventy1a.jpg", "eventy1b.jpg", "eventy1c.jpg"); przyciski[7] = new przycisk("kontakt1a.jpg", "kontakt1b.jpg", "kontakt1c.jpg"); } //--> </SCRIPT>
a pozniej w BODY :
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber4" height="35" bgcolor="#000000"> <tr> <td width="12%" height="35" align="center" valign="middle"> <p align="center"> <a onfocus="blur()" target="_top" onMouseOver="przyciski[1].podswietl(); return true" onMouseDown="przyciski[1].kliknij()" onMouseUp="przyciski[1].podswietl(); return true" onMouseOut="przyciski[1].normalizuj(); return true" href="index.html"> </td> <td width="12%" height="35" align="center" nowrap> <p align="center"> <A HREF="ubrania.html" onfocus="blur()" target="bok" onMouseOver="przyciski[2].podswietl(); return true" onMouseDown="przyciski[2].kliknij()" onMouseUp="przyciski[2].podswietl(); return true" onMouseOut="przyciski[2].normalizuj(); return true"> </td> <td width="12%" height="35" align="center" nowrap valign="middle"> <p align="center"> <a onfocus="blur()" target="bok" onMouseOver="przyciski[3].podswietl(); return true" onMouseDown="przyciski[3].kliknij()" onMouseUp="przyciski[3].podswietl(); return true" onMouseOut="przyciski[3].normalizuj(); return true" href="akcesoria.html"> </td> <td width="12%" height="35" align="center" nowrap valign="middle"> <p align="center"> <A HREF="podroz.html" onfocus="blur()" target="ramka" onMouseOver="przyciski[4].podswietl(); return true" onMouseDown="przyciski[4].kliknij()" onMouseUp="przyciski[4].podswietl(); return true" onMouseOut="przyciski[4].normalizuj(); return true"> </td> <td width="12%" height="35" align="center" nowrap valign="middle"> <p align="center"> <A HREF="biuro.html" onfocus="blur()" target="ramka" onMouseOver="przyciski[5].podswietl(); return true" onMouseDown="przyciski[5].kliknij()" onMouseUp="przyciski[5].podswietl(); return true" onMouseOut="przyciski[5].normalizuj(); return true"> </td> <td width="12%" height="35" align="center" nowrap valign="middle"> <p align="center"> <A HREF="eventy.html" onfocus="blur()" target="ramka" onMouseOver="przyciski[6].podswietl(); return true" onMouseDown="przyciski[6].kliknij()" onMouseUp="przyciski[6].podswietl(); return true" onMouseOut="przyciski[6].normalizuj(); return true"> </td> <td width="13%" height="35" align="center" nowrap valign="middle"> <p align="center"> <A HREF="kontakt.html" onfocus="blur()" target="ramka" onMouseOver="przyciski[7].podswietl(); return true" onMouseDown="przyciski[7].kliknij()" onMouseUp="przyciski[7].podswietl(); return true" onMouseOut="przyciski[7].normalizuj(); return true"> </td> <td width="13%" height="35" align="center" nowrap valign="middle"> </tr> </table>