🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.java
1 messages
1 total messages Started by nimir Mon, 25 Nov 1996 16:33
IE 3.0 i JavaScript
#117
Author: nimir
Date: Mon, 25 Nov 1996 16:33
38 lines
1424 bytes
Witam ;)

Napisalem sobie taki skrypcik:

------------------------------------------------------------------
<HTML>
<body bgcolor="#000000" text="#898989" link="#FFFFFF" vlink="#FFFFFF">
<center>
<title>tescik JavaScript</title>

<SCRIPT LANGUAGE="JavaScript">
function zapal () {
document.images [0].src=img_on.src;
}
function zgas () {
document.images [0].src=img_off.src;
}
img_off = new Image (500, 61);
img_off.src = "mailto.jpg";
img_on = new Image ();
img_on.src = "mailto_on.jpg"
</SCRIPT>
<A HREF="mailto:nimir@irc.pl" ONMOUSEOVER="zapal ()" ONMOUSEOUT="zgas 
()">
<IMG SRC="mailto.jpg" BORDER=0></A><BR>

</BODY>
</HTML>
------------------------------------------------------------------

W NN 3.0 dziala tak jak powinien, w IE3.0 jednak pojawia sie:
'Image' is undefined...

W czym problem? Jak napisac ten skrypt aby byl "niezalezny"
od przegladarki?

Pozdrawiam
Nimir
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads