Gossamer Forum
Home : General : Perl Programming :

cgi/html

Quote Reply
cgi/html
A problem....How do I include this javascript www.a4.no/java.txt (view source!) into the perlscript below. The javasript has to sub, one sub displayadhead and one sub displayad, where the first one must be before the </head>-statement. I tried just to put the javascript code inside, but that didnīt work.
----------
# Your pages' header tags. Includes all tags from after </title> thru the banner.gif code.

$header ="<link rel=STYLESHEET type=\"text/css\" href=\"$main_url/html/style.css\"></head><BODY BGCOLOR=\"#F2DAB2\" TEXT=\"#003366\" LINK=\"#0000FF\" VLINK=\"#660066\" ALINK=\"#FFFF00\"><center><IMG SRC=\"$main_url/html/banner.gif\" WIDTH=\"402\" HEIGHT=\"42\" BORDER=\"0\" ALT=\"banner\"></center>\n";
---------
Anyone?

Thanks.
Quote Reply
Re: cgi/html In reply to
You would do it in the following manner (as I just suggested in a redundant post that you posted):

Code:
|;
print &displayadhead;
print qq|
$header

Then where you want to display the second sub-routine, use the following:

Code:
|;
print &displayad;
print qq|

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------