I would apprecaite if any JavaScript guru here correct me on the following , I have following code in my "index.html"
page:
<html>
<head>
<title>This is a test</title>
</head>
<body>
<h1> Testing whether it works or not</h1>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<SCRIPT SRC="mydomain/cgi-bin/banner.pl" LANGUAGE="JavaScript"></SCRIPT>
</td>
</tr>
</table>
</body>
</html>
Where the 'banner.pl' runs my random logic and generates code : (here is the part of code - only banner related)
$banner = "document.write('<A HREF="$bannerurl"><IMG SRC="$gifname" width=50 height=10></A>');
which eventually results as below:
<A HREF="xx.com"><IMG SRC="xx.gif" width=50 height=10></A>
My only concern or doubt is Is this OK if I put Javascript inside <TABLE> .... </TABLE> the way I did it in my html page. Is it valid to do so .... or I have to print the whole <TABLE> ....</TABLE> from perl program.
please help. appreciated.
page:
<html>
<head>
<title>This is a test</title>
</head>
<body>
<h1> Testing whether it works or not</h1>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<SCRIPT SRC="mydomain/cgi-bin/banner.pl" LANGUAGE="JavaScript"></SCRIPT>
</td>
</tr>
</table>
</body>
</html>
Where the 'banner.pl' runs my random logic and generates code : (here is the part of code - only banner related)
$banner = "document.write('<A HREF="$bannerurl"><IMG SRC="$gifname" width=50 height=10></A>');
which eventually results as below:
<A HREF="xx.com"><IMG SRC="xx.gif" width=50 height=10></A>
My only concern or doubt is Is this OK if I put Javascript inside <TABLE> .... </TABLE> the way I did it in my html page. Is it valid to do so .... or I have to print the whole <TABLE> ....</TABLE> from perl program.
please help. appreciated.