a wiec ... chcialem zrobic cos takiego zeby moje przyciski... po wcisnieciu zostaly.... a jak przelacze na inny to zeby sie odcisnelo... a przeszlo na tamto... (IMG:
http://forum.php.pl/style_emoticons/default/smile.gif) i nie wiem jak to zrobic ...
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 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");
}
//-->
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"> <td width="12%" height="35" align="center" valign="middle"> <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"> <IMG SRC="home1a.jpg" NAME="img1" BORDER="0" width="91" height="30" align="right"></a></td> <td width="12%" height="35" align="center" nowrap> <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"> <IMG SRC="ubrania1a.jpg" NAME="img2" BORDER="0" width="88" height="30"></A></td> <td width="12%" height="35" align="center" nowrap valign="middle"> <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"> <IMG SRC="akcesoria1a.jpg" NAME="img3" BORDER="0" width="87" height="30"></a></td> <td width="12%" height="35" align="center" nowrap valign="middle"> <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"> <IMG SRC="podroz1a.jpg" NAME="img4" BORDER="0" width="87" height="30"></A></td> <td width="12%" height="35" align="center" nowrap valign="middle"> <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"> <IMG SRC="biuro1a.jpg" NAME="img5" BORDER="0" width="87" height="30"></A></td> <td width="12%" height="35" align="center" nowrap valign="middle"> <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"> <IMG SRC="eventy1a.jpg" NAME="img6" BORDER="0" width="87" height="30"></A></td> <td width="13%" height="35" align="center" nowrap valign="middle"> <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"> <IMG SRC="kontakt1a.jpg" NAME="img7" BORDER="0" width="93" height="30"></A></td> <td width="13%" height="35" align="center" nowrap valign="middle">