🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jaki obiekt/metoda do zmiennej zawartosci

#50681
From: zlotowinfo
Date: Tue, 29 Mar 2011 08:14
28 lines
1754 bytes
już znalazłem sam do spana można pisać
http://programming.top54u.com/post/Javascript-Code-to-Change-Span-innerText.aspx

<html>
<head>
    <title>Javascript Change Span InnerText</title>

    <script language="javascript" type="text/javascript">

    function changeSpanText(p1)
    {
        document.getElementById('span1').innerText = p1;
    }

    </script>
</head>
<body>
    <span id="span1">innerText placed inside the span element of HTML.<br />
        Javascript will change the innerText of this HTML span element. 
</span>
        <br />
    <center>
        <input type="button" value="Change Span innerText" 
onclick="changeSpanText('dupa')" />
    </center>

</body>
</html> 
Technical Details
Message-ID: <ims4co$pq9$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <imobbc$i8o$1@inews.gazeta.pl> <4d90fbcf$0$2455$65785112@news.neostrada.pl> <imruil$84e$1@inews.gazeta.pl> <imrvv9$svi$1@news.onet.pl>

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: jaki obiekt/metoda do zmiennej zawartosci
Date: Tue, 29 Mar 2011 10:14:34 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 29
Message-ID: <ims4co$pq9$1@inews.gazeta.pl>
References: <imobbc$i8o$1@inews.gazeta.pl> <4d90fbcf$0$2455$65785112@news.neostrada.pl> <imruil$84e$1@inews.gazeta.pl> <imrvv9$svi$1@news.onet.pl>
NNTP-Posting-Host: 77-45-114-99.sta.asta-net.com.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1301386456 26441 77.45.114.99 (29 Mar 2011 08:14:16 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 29 Mar 2011 08:14:16 +0000 (UTC)
In-Reply-To: <imrvv9$svi$1@news.onet.pl>
X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16543
X-Priority: 3
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-User: zlotowinfo
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit