🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: <td> i onMouseOver

#533
From: MarsJan
Date: Thu, 17 Jan 2002 08:11
45 lines
2155 bytes
"Skaner" <wwatto@poczta.onet.pl> wrote in message
news:a25n8r$hqa$1@news.onet.pl...
: Witam!
: Jak zmienic wyglad komorki tabeli przy onMouseOver w NN6? W Ie5 robie to
: tak:
:
: function funkcja() {
: document.all.nazwa.style.backgroundColor="red";
: document.all.nazwa.style.borderStyle="solid";
: document.all.nazwa.style.borderWidth="1";
: document.all.nazwa.style.borderColor="#008080";
: }
: (...)
: <td id="nazwa" onMouseOver="funkcja()">
:
: Jak to samo zrobic pod netscapem 6?
: Pozdrawiam


Sprobuj w ponizszy sposob:

function funkcja(obj) {
obj.style.backgroundColor="red";
obj.style.borderStyle="solid";
obj.style.borderWidth="1";
obj.style.borderColor="#008080";
}
(...)
<td id="nazwa" onMouseOver="funkcja(this)">

... albo i tak:

function funkcja(id) {
document.getElementById(id).style.backgroundColor="red";
document.getElementById(id).style.borderStyle="solid";
document.getElementById(id).style.borderWidth="1";
document.getElementById(id).style.borderColor="#008080";
}
(...)
<td id="nazwa" onMouseOver="funkcja('nazwa')">

================================
Mariusz Janczak (M.Janczak@adb.pl)
Web Page: http://www.adb.pl/
================================
Technical Details
Message-ID: <a260ue$4s6$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!news.man.lodz.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <a25n8r$hqa$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!news.man.lodz.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "MarsJan" <M.Janczak@adbglobal.com>
Newsgroups: pl.comp.lang.javascript
Subject: Re: <td> i onMouseOver
Date: Thu, 17 Jan 2002 09:11:07 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 48
Message-ID: <a260ue$4s6$1@news.tpi.pl>
References: <a25n8r$hqa$1@news.onet.pl>
NNTP-Posting-Host: bss73.adb.pl
X-Trace: news.tpi.pl 1011255054 4998 212.244.194.73 (17 Jan 2002 08:10:54 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 17 Jan 2002 08:10:54 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit