diff options
author | Jonas Kohl | 2024-09-04 20:10:41 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-04 20:10:41 +0200 |
commit | 5d4652e6bc0009b32bfe1b1a4fc9b7431cd8fe88 (patch) | |
tree | a4d6256bbf8f746a3a88ebb7596ae035a9a5d6ff /cgi/imagemap.cgi |
Initial commit
Diffstat (limited to 'cgi/imagemap.cgi')
-rwxr-xr-x | cgi/imagemap.cgi | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/cgi/imagemap.cgi b/cgi/imagemap.cgi new file mode 100755 index 0000000..156836f --- /dev/null +++ b/cgi/imagemap.cgi @@ -0,0 +1,55 @@ +#!/usr/bin/perl + +$x_start = 7; +$y_start = 6; +$y_space = 6; +$width = 106; +$height = 34; + +@images = ( + { + label => "Startseite", + link => "pages/start.html" + }, + { + label => "Trivia", + link => "pages/trivia.html" + }, + { + label => "Exklusiv", + link => "pages/exklusiv.html" + }, + { + label => "Dekomp", + link => "pages/dekomp.html" + }, + { + label => "Lösung", + link => "pages/loesung.html" + }, + { + label => "Über", + link => "pages/about.html" + } +); + +print "content-type: text/plain\n\n"; + +foreach $im (@images) { + print '<area shape="rect" target="main" coords="'; + print $x_start; + print ','; + print $y_start; + print ','; + print $x_start + $width; + print ','; + print $y_start + $height; + print '" href="'; + print $im->{link}; + print '" alt="'; + print $im->{label}; + print '">'; + print "\n"; + + $y_start += $height + $y_space; +} |