K
Krystian =?iso-8859-2?Q?Pie=E6ko?=
Hello
First of all I wanted to say that I have never written any web page.
Now I have no choise. I've witten everything in plain HTML. It's very
simple. I have realised that this wsite is different in diff..screen
resolutions. So I tried to do something like this:
#v+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-2">
<META NAME="author" CONTENT="CO.IN.">
<META HTTP-EQUIV="Content-Language" CONTENT="pl">
<TITLE>main.html</TITLE>
</HEAD>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
if (screen.width == 640)
document.write('<BODY BACKGROUND="../images/layout640x400.jpg">');
if (screen.width == 800)
document.write('<BODY BACKGROUND="../images/layout800x600.jpg">');
if (screen.width == 1024)
document.write('<BODY BACKGROUND="../images/layout1024x768.jpg">');
if (screen.width == 1280)
document.write('<BODY BACKGROUND="../images/layout1280x1024.jpg">');
else
document.write('<BODY BACKGROUND="../images/layout800x600.jpg">');
if (self == parent)
document.write('
<DIV ALIGN="center">
<B>UWAGA!</B> To jest tylko ramka - wróæ do
<A HREF="index.html"><B>STRONY G£ÓWNEJ</B></A>
</DIV>
<HR><BR><BR>'
);
//-->
</SCRIPT>
</BODY>
</HTML>
#v-
There is no background in this page.
I am C/C++ and shell, Perl programer I have no time to learn about css.
I wanted to do this as simple as possible, but it dosn't work. Maybe
I didn't understand the write function. How to change my code ??
Krystian
First of all I wanted to say that I have never written any web page.
Now I have no choise. I've witten everything in plain HTML. It's very
simple. I have realised that this wsite is different in diff..screen
resolutions. So I tried to do something like this:
#v+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-2">
<META NAME="author" CONTENT="CO.IN.">
<META HTTP-EQUIV="Content-Language" CONTENT="pl">
<TITLE>main.html</TITLE>
</HEAD>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
if (screen.width == 640)
document.write('<BODY BACKGROUND="../images/layout640x400.jpg">');
if (screen.width == 800)
document.write('<BODY BACKGROUND="../images/layout800x600.jpg">');
if (screen.width == 1024)
document.write('<BODY BACKGROUND="../images/layout1024x768.jpg">');
if (screen.width == 1280)
document.write('<BODY BACKGROUND="../images/layout1280x1024.jpg">');
else
document.write('<BODY BACKGROUND="../images/layout800x600.jpg">');
if (self == parent)
document.write('
<DIV ALIGN="center">
<B>UWAGA!</B> To jest tylko ramka - wróæ do
<A HREF="index.html"><B>STRONY G£ÓWNEJ</B></A>
</DIV>
<HR><BR><BR>'
);
//-->
</SCRIPT>
</BODY>
</HTML>
#v-
There is no background in this page.
I am C/C++ and shell, Perl programer I have no time to learn about css.
I wanted to do this as simple as possible, but it dosn't work. Maybe
I didn't understand the write function. How to change my code ??
Krystian