🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #49880

Re: button i zmiana tla po najechaniu

#49880
From: zlotowinfo
Date: Wed, 17 Mar 2010 23:49
19 lines
1495 bytes
Użytkownik "fuzjusz" <buckokamil@gmail.com> napisał w wiadomości 
news:f255227b-4a18-422f-b64c-18176abfc79c@k17g2000yqb.googlegroups.com...

tylko to button
<button> </button>
a nie
<input type=button>



na razie znalazłem coś takiego:

function change2(image){
if (event.srcElement.tagName=="BUTTON")
event.srcElement.style.backgroundImage="url"+"('"+image+".png')"
}

<button onMouseover="change2(\'3\')" onMouseout="change2(\'\')"></button> 
Technical Details
Message-ID: <hnrpqk$k1r$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <hnjgat$q9t$1@inews.gazeta.pl> <f255227b-4a18-422f-b64c-18176abfc79c@k17g2000yqb.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "zlotowinfo" <usuntousun@go2.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: button i zmiana tla po najechaniu
Date: Thu, 18 Mar 2010 00:49:44 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 20
Message-ID: <hnrpqk$k1r$1@inews.gazeta.pl>
References: <hnjgat$q9t$1@inews.gazeta.pl> <f255227b-4a18-422f-b64c-18176abfc79c@k17g2000yqb.googlegroups.com>
NNTP-Posting-Host: 77-45-90-55.sta.asta-net.com.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1268869780 20539 77.45.90.55 (17 Mar 2010 23:49:40 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Wed, 17 Mar 2010 23:49:40 +0000 (UTC)
In-Reply-To: <f255227b-4a18-422f-b64c-18176abfc79c@k17g2000yqb.googlegroups.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005
X-Priority: 3
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-User: zlotowinfo
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit