Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wstawianie getElementById
tomek0077
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 6.01.2004

Ostrzeżenie: (0%)
-----


Mam skrypt który nie działa pod Mozilla - wiem że tu chodzi o getElementById zamiast all i layers. Jednak po zamianie nadal nie działą... Jak to powinno wyglądać prawidłowo ?

Kod
<script LANGUAGE="JavaScript">
function zmien() {
if (!document.layers && !document.all) return;
tytul = document.linki.q1.value;
line1 = document.linki.q2.value;
line2 = document.linki.q3.value;
link1 = document.linki.q4.value;
if (document.layers) {
document.layers.tytul2.document.write(tytul);
document.layers.tytul2.document.close();
document.layers.line11.document.write(line1);
document.layers.line11.document.close();
document.layers.line12.document.write(line2);
document.layers.line12.document.close();
document.layers.link12.document.write(link1);
document.layers.link12.document.close();
}
else
if (document.all)
tytul2.innerHTML = tytul;
line11.innerHTML = line1;
line12.innerHTML = line2;
link12.innerHTML = link1;
}
</script>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.12.2025 - 00:37