1
2
3
4
5
6
7
print <<"END";
Content-type: text/html\n\n
<html><head>
<title>Daten an Steuerung senden</title>
<meta HTTP-EQUIV="Content-Type" content="text/html ; charset=iso-8859-1">
<script type="text/javascript" src="../keyboard.js"></script>
1
2
print <<"END";
<img src="../gif/tastatur.jpeg" alt="Tastatur" width="26" height="18"/>
<script type="text/javascript" src="keyboard.js"></script>
<img src="gif/tastatur.jpeg" alt="Tastatur" width="26" height="18"/>
Quotemein Grafikpfad= /srv/www/htdocs/gif/meinegrafik
meine Javascript lib= /srv/www/htdocs/javascrip.js
1 2 3 4 5 6 7 8 9
my $docroot = $ENV{DOCUMENT_ROOT}; my $grafik_pfad = '/srv/www/htdocs/gif/meinegrafik'; my $javascript_pfad = '/srv/www/htdocs/javascrip.js'; my $grafik_url = $grafik_pfad; $grafik_url =~ s/$docroot//; my $javascript_url = $javascript_pfad; $javascript_url =~ s/$docroot//;
1 2 3 4 5 6 7 8 9 10 11 12 13 14
print <<"END"; Content-type: text/html\n\n <html><head> <title>Daten an Steuerung senden</title> <meta HTTP-EQUIV="Content-Type" content="text/html ; charset=iso-8859-1"> <script type="text/javascript" src="/js/keyboard.js"></script> .... END print <<"END"; <img src="/gif/tastatur.jpeg" alt="Tastatur" width="26" height="18"/> ..... END