Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 08:57 pm EST
Geeklog Forums
Creating a staticpage on Geeklog 1.3.10
Status: offline
ola_one
Forum User
Full Member
Registered: 06/28/03
Posts: 186
Hello all,
I am trying to incorporate a page that I found on the web into my site. I was able to get the source code for the page. In looking at the page, I figured it can be created and wrapped around Geeklog using the StaticPage Plugin. Here is the link to the page:
http://www.highwaysngr.org/My_Homepage_Files/Distance%20Map.htm
The source code I am sory to do this is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Nigeria Driving Distance Map: Map of Distances in Nigeria</title>
<meta http-equiv="KEYWORDS" content="nigeria driving distance map,Nigeria mileage map,driving map of nigeria,nigeria tourism advicetravel advice">
<meta http-equiv="DESCRIPTION" content="Map of Driving Distance in nigeria; Travel Information for nigeria.">
<SCRIPT language="JavaScript"><!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
// --></SCRIPT>
<link rel="stylesheet" href="maps.css" type="text/css">
<meta name="generator" content="Microsoft FrontPage 5.0">
<SCRIPT language="JavaScript"><!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
// --></SCRIPT>
</head>
<p>
<p>
<p><table width="782" bgcolor="#A7D389" cellspacing="0" cellpadding="0" border="0" height="956" style="border-collapse: collapse" bordercolor="#111111">
<!-- place content here -->
<tr bgcolor="#FFFFFF">
<td colspan="2" width="388" height="99" bgcolor="#A7D389" rowspan="2">
<h1>
</h1>
</td>
<td width="1" height="99" bgcolor="#A7D389" rowspan="2" valign="top">
<embed width="750" height="121" src="Fermalogoflash.swf"></td>
<td width="434" height="69" bgcolor="#A7D389" colspan="4">
<img border="0" src="images/GoodroadsNgr.gif" width="151" height="68"></td></tr>
<tr bgcolor="#FFFFFF">
<td width="109" height="30" bgcolor="#A7D389">
<a href="default.htm">
<img border="0" src="images/Ferma%20Home.jpg" width="154" height="41"></a></td>
<td width="109" height="30" bgcolor="#A7D389">
</td>
<td width="108" height="30" bgcolor="#A7D389">
</td>
<td width="108" height="30" bgcolor="#A7D389">
</td></tr>
<tr bgcolor="#FFFFFF"><td colspan="7" width="750" height="18" bgcolor="#A7D389">
<p align="center"><b>
<font color="#FFFFFF">Nigeria Driving Distance Map</font></b></td></tr>
</td></tr>
<tr>
<td valign="top" width="8" height="767">
</td>
<td bgcolor="#FFFFFF" width="33" height="767">
<img src="indent.gif" height="100%" width="1"></td>
<td valign="top" colspan="5" width="741" bgcolor="#A7D389" height="767">
<script language=JavaScript><!-- begin
var first="", second="",str,fullstr;
var start="";
function calc(city1, elem) {
if (first.length==0) first=city1;
if (start==1)
{
if (first=="Abeokuta") str=abk[elem+1]+" Km.";
if (first=="Abuja") str=abj[elem+1]+" Km.";
if (first=="Bauchi") str=bau[elem+1]+" Km.";
if (first=="Benin City") ben=cti[elem+1]+" Km.";
if (first=="Calabar") str=cal[elem+1]+" Km.";
if (first=="Enugu") str=enu[elem+1]+" Km.";
if (first=="Gombe") str=gom[elem+1]+" Km.";
if (first=="Ibadan") str=iba[elem+1]+" Km.";
if (first=="Ilorin") str=ilo[elem+1]+" Km.";
if (first=="Jos") str=jos[elem+1]+" Km.";
if (first=="Kaduna") str=kad[elem+1]+" Km.";
if (first=="Kano") str=kan[elem+1]+" Km.";
if (first=="Katsina") str=kat[elem+1]+" Km.";
if (first=="Lagos") str=lag[elem+1]+" Km.";
if (first=="Lokoja") str=lok[elem+1]+" Km.";
if (first=="Maiduguri") str=mai[elem+1]+" Km.";
if (first=="Makurdi") str=mak[elem+1]+" Km.";
if (first=="Minna") str=min[elem+1]+" Km.";
if (first=="Onitsha") str=oni[elem+1]+" Km.";
if (first=="Owerri") str=owe[elem+1]+" Km.";
if (first=="Port Harcourt") str=phc[elem+1]+" Km.";
if (first=="Sokoto") str=sok[elem+1]+" Km.";
if (first=="Umuahia") str=umu[elem+1]+" Km.";
if (first=="Yola") str=yol[elem+1]+" Km.";
if (first=="Zaria") str=zar[elem+1]+" Km.";
if (elem==0) second="Abeokuta";
if (elem==1) second="Abuja";
if (elem==2) second="Bauchi";
if (elem==3) second="Benin City";
if (elem==4) second="Calabar";
if (elem==5) second="Enugu";
if (elem==6) second="Gombe";
if (elem==7) second="Ibadan";
if (elem==8) second="Ilorin";
if (elem==9) second="Jos";
if (elem==10) second="Kaduna";
if (elem==11) second="Kano";
if (elem==12) second="Katsina";
if (elem==13) second="Lagos";
if (elem==14) second="Lokoja";
if (elem==15) second="Maiduguri";
if (elem==16) second="Makurdi";
if (elem==17) second="Minna";
if (elem==18) second="Onitsha";
if (elem==19) second="Owerri";
if (elem==20) second="Port Harcourt";
if (elem==21) second="Sokoto";
if (elem==22) second="Umuahia";
if (elem==23) second="Uyo";
if (elem==24) second="Yola";
if (elem==25) second="Zaria";
fullstr1=" "+first+" ";
document.form1.city1.value=fullstr1;
fullstr2=" "+second+"";
document.form2.city2.value=fullstr2;
fullstr3=" "+str;
document.form3.distance.value=fullstr3;
if (elem==0) first="Abeokuta";
if (elem==1) first="Abuja";
if (elem==2) first="Bauchi";
if (elem==3) first="Benin City";
if (elem==4) first="Calabar";
if (elem==5) first="Enugu";
if (elem==6) first="Gombe";
if (elem==7) first="Ibadan";
if (elem==8) first="Ilorin";
if (elem==9) first="Jos";
if (elem==10) first="Kaduna";
if (elem==11) first="Kano";
if (elem==12) first="Katsina";
if (elem==13) first="Lagos";
if (elem==14) first="Lokoja";
if (elem==15) first="Maiduguri";
if (elem==16) first="Makurdi";
if (elem==17) first="Minna";
if (elem==18) first="Onitsha";
if (elem==19) first="Owerri";
if (elem==20) first="Port Harcourt";
if (elem==21) first="Sokoto";
if (elem==22) first="Umuahia";
if (elem==23) first="Uyo";
if (elem==24) first="Yola";
if (elem==25) first="Zaria";
}
start=1;
}
function initArray(){
for (var i=0; i<26; i++)
this[i+1] = initArray.arguments[i];
}
var abk=new initArray(0,722,1148,314,764,572,1304,77,238,1015,835,1086,1181,101,520,1596,991,663,466,559,671,970,595,691,1560,920);
var abj=new initArray(722,0,419,493,729,393,606,645,482,297,186,396,570,780,193,875,280,156,500,533,616,748,513,593,704,300);
var bau=new initArray(1148,419,0,880,1002,740,155,1070,909,130,410,301,518,1211,601,462,469,590,827,879,970,777,860,943,416,370);
var ben=new initArray(314,493,880,0,490,254,1044,300,399,758,786,1049,1252,320,287,1353,506,608,139,240,295,1020,279,375,1107,870);
var cal=new initArray(764,729,1002,490,0,276,1152,518,849,870,1034,1296,1464,782,579,1465,532,860,300,200,205,1535,151,67,1132,1118);
var enu=new initArray(572,393,740,254,276,0,890,558,653,608,772,1083,1202,516,392,1201,266,598,86,146,221,1272,118,189,870,856);
var gom=new initArray(1304,606,155,1044,1152,890,0,1223,1064,309,566,457,675,1367,756,318,623,745,977,1030,1122,931,1010,1094,262,528);
var iba=new initArray(77,645,1070,300,518,558,1223,0,162,928,756,1005,1065,141,584,1532,920,592,450,555,656,890,582,676,1545,827);
var ilo=new initArray(238,482,909,399,849,653,1064,162,0,776,597,846,907,301,319,1372,863,432,638,667,843,730,770,865,1319,667);
var jos=new initArray(1015,297,130,758,870,608,309,928,776,0,278,418,592,1081,469,627,336,457,695,745,840,644,727,811,540,240);
var kad=new initArray(835,186,410,786,1034,772,566,756,597,278,0,220,428,900,502,874,500,297,860,910,1003,480,890,975,820,70);
var kan=new initArray(1086,396,301,1049,1296,1083,457,1005,846,418,220,0,172,1149,766,600,756,503,1120,1173,1270,546,1153,1237,711,150);
var kat=new initArray(1181,570,518,1252,1464,1202,675,1065,907,592,428,172,0,1211,918,773,860,606,1290,1142,1438,380,1322,1406,875,273);
var lag=new initArray(101,780,1211,320,782,516,1367,141,301,1081,900,1149,1211,0,540,1675,885,735,480,574,630,1033,611,709,440,970);
var lok=new initArray(520,193,601,287,579,392,756,584,319,469,502,766,918,540,0,1063,311,309,156,424,521,985,405,490,942,502);
var mai=new initArray(1596,875,462,1353,1465,1201,318,1532,1372,627,874,600,773,1675,1063,0,930,1052,1291,1142,1419,1123,1323,406,436,834);
var mak=new initArray(991,280,469,506,532,266,623,920,863,336,500,756,860,885,311,930,0,440,356,408,505,1116,374,473,674,584);
var min=new initArray(663,156,590,608,860,598,745,592,432,457,297,503,606,735,309,1052,440,0,682,735,830,674,716,800,1124,368);
var oni=new initArray(466,500,827,139,300,86,977,450,638,695,860,1120,1290,480,156,1291,356,682,0,92,203,1360,128,224,956,942);
var owe=new initArray(559,533,879,240,200,146,1030,555,667,745,910,1173,1142,574,424,1142,408,735,92,0,112,1411,165,250,1008,993);
var phc=new initArray(671,616,970,295,205,221,1122,656,843,840,1003,1270,1438,630,521,1419,505,830,203,112,0,1203,114,120,1105,1090);
var sok=new initArray(970,748,777,1020,1535,1272,931,890,730,644,480,546,380,1033,985,1123,1116,674,1360,1411,1203,0,1376,1475,1187,404);
var umu=new initArray(595,513,860,279,151,118,1010,582,770,727,890,1153,1322,611,405,1323,374,716,128,165,114,1376,0,88,917,960);
var uyo=new initArray(691,593,943,375,67,189,1094,676,865,811,975,1237,1406,709,490,406,473,800,224,250,120,1475,88,0,1073,1058);
var yol=new initArray(1560,704,416,1107,1132,870,262,1545,1319,540,820,711,875,440,942,436,674,1124,956,1008,1105,1187,917,1073,0,781);
var zar=new initArray(920,300,370,870,1118,856,528,827,667,240,70,150,273,970,502,834,584,368,942,993,1090,404,960,1058,781,0);
// end -->
</script>
<script language=JavaScript><!-- */
//-->
</script>
<h2 align="center"> Driving Distance Between Some Cities in Nigeria</h2>
<h2 align="center"><em><font color="#0099CC" size="-1"><strong> </strong></font><strong>
<font color="#FFFFFF" size="-1"> Requires javascript: Click on two points on the map</font></strong></em></h2>
<div align="center">
<center>
<table bgcolor="#FFFFFF" width="1116"><tr>
<td align="center" width="172" bgcolor="#A7D389">
<br>
<br>
<font color="#FFFFFF">The driving distance
<br>
From: </font>
<form name=form1><input name=city1 size=22> </form>
<font color="#FFFFFF">To: </font>
<form name=form2><input name=city2 size=22> </form>
<font color="#FFFFFF">is: </font>
<form name=form3><input name=distance size=10> </form>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
<td align="center" width="6" bgcolor="#FFFFFF" rowspan="5">
</td>
<td align="center" width="884" bgcolor="#FFFFFF" rowspan="5">
<map name="FPMap0">
<area alt="Abeokuta" href="javascript:calc('Abeokuta',0)" shape="rect" coords="24, 497, 72, 519">
<area alt="Abuja" href="javascript:calc('Abuja',1)" shape="rect" coords="326, 359, 366, 380">
<area alt="Bauchi" href="javascript:calc('Bauchi',2)" shape="rect" coords="492, 261, 537, 282">
<area alt="Benin City" href="javascript:calc('Benin City',3)" shape="rect" coords="202, 558, 231, 579">
<area alt="Calabar" href="javascript:calc('Calabar',4)" shape="rect" coords="405, 666, 436, 682">
<area alt="Enugu" href="javascript:calc('Enugu',5)" shape="rect" coords="330, 550, 369, 569">
<area alt="Gombe" href="javascript:calc('Gombe',6)" shape="rect" coords="596, 261, 635, 283">
<area alt="Ibadan" href="javascript:calc('Ibadan',7)" shape="rect" coords="78, 479, 113, 498">
<area alt="Ilorin" href="javascript:calc('Ilorin',8)" shape="rect" coords="123, 399, 163, 419">
<area alt="Jos" href="javascript:calc('Jos',9)" shape="rect" coords="432, 310, 470, 331">
<area alt="Kaduna" href="javascript:calc('Kaduna',10)" shape="rect" coords="330, 245, 370, 264">
<area alt="Kano" href="javascript:calc('Kano',11)" shape="rect" coords="411, 135, 445, 153">
<area alt="Katsina" href="javascript:calc('Katsina',12)" shape="rect" coords="339, 68, 383, 83">
<area alt="Lagos" href="javascript:calc('Lagos',13)" shape="rect" coords="32, 550, 72, 567">
<area alt="Lokoja" href="javascript:calc('Lokoja',14)" shape="rect" coords="276, 451, 311, 475">
<area alt="Maiduguri" href="javascript:calc('Maiduguri',15)" shape="rect" coords="738, 147, 769, 168">
<area alt="Makurdi" href="javascript:calc('Makurdi',16)" shape="rect" coords="411, 458, 447, 476">
<area alt="Minna" href="javascript:calc('Minna',17)" shape="rect" coords="241, 303, 279, 325">
<area alt="Onitsha" href="javascript:calc('Onitsha',18)" shape="rect" coords="287, 572, 318, 595">
<area alt="Owerri" href="javascript:calc('Owerri',19)" shape="rect" coords="301, 624, 330, 645">
<area alt="Port Harcourt" href="javascript:calc('Port Harcourt',20)" shape="rect" coords="295, 676, 339, 697">
<area alt="Sokoto" href="javascript:calc('Sokoto',21)" shape="rect" coords="174, 56, 221, 80">
<area alt="Umuahia" href="javascript:calc('Umuahia',22)" shape="rect" coords="339, 616, 378, 636">
<area alt="Uyo" href="javascript:calc('Uyo',23)" shape="rect" coords="366, 659, 395, 679">
<area alt="Yola" href="javascript:calc('Yola',24)" shape="rect" coords="689, 339, 728, 358">
<area alt="Zaria" href="javascript:calc('Zaria',25)" shape="rect" coords="340, 200, 387, 222">
</map>
<img border="0" src="NigerianRoadMapDistance2.jpg" usemap="#FPMap0" width="884" height="729"></td>
<td align="center" width="6" bgcolor="#A7D389" rowspan="5">
</td>
<td align="center" width="6" bgcolor="#A7D389" rowspan="5">
</td>
<td align="center" width="6" bgcolor="#A7D389" rowspan="5">
</td>
<td width="6" bgcolor="#A7D389" rowspan="5">
</td></tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr></table>
<p></td>
</tr>
<tr bgcolor="#FFFFcc">
<td align="center" colspan="4" width="750" bgcolor="#A7D389" height="18">
</td></tr>
<tr bgcolor="#FFFFcc">
<td width="8" bgcolor="#A7D389" height="18"> </td>
<td width="20" bgcolor="#A7D389" height="18"> </td>
<td width="428" bgcolor="#A7D389" height="18"> </td>
<td width="313" bgcolor="#A7D389" height="18"> </td>
</tr>
</table>
</center>
</body>
</html>
The question is how do I get this to work on staticpage plugin?
I tried creating a staticpage and put all the code in it, but it did not work.
Should the head section have been put in my header.thtml file? Or am I doing it all wrong?
Thanks in advance
I am trying to incorporate a page that I found on the web into my site. I was able to get the source code for the page. In looking at the page, I figured it can be created and wrapped around Geeklog using the StaticPage Plugin. Here is the link to the page:
http://www.highwaysngr.org/My_Homepage_Files/Distance%20Map.htm
The source code I am sory to do this is:
Text Formatted Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Nigeria Driving Distance Map: Map of Distances in Nigeria</title>
<meta http-equiv="KEYWORDS" content="nigeria driving distance map,Nigeria mileage map,driving map of nigeria,nigeria tourism advicetravel advice">
<meta http-equiv="DESCRIPTION" content="Map of Driving Distance in nigeria; Travel Information for nigeria.">
<SCRIPT language="JavaScript"><!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
// --></SCRIPT>
<link rel="stylesheet" href="maps.css" type="text/css">
<meta name="generator" content="Microsoft FrontPage 5.0">
<SCRIPT language="JavaScript"><!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
// --></SCRIPT>
</head>
<p>
<p>
<p><table width="782" bgcolor="#A7D389" cellspacing="0" cellpadding="0" border="0" height="956" style="border-collapse: collapse" bordercolor="#111111">
<!-- place content here -->
<tr bgcolor="#FFFFFF">
<td colspan="2" width="388" height="99" bgcolor="#A7D389" rowspan="2">
<h1>
</h1>
</td>
<td width="1" height="99" bgcolor="#A7D389" rowspan="2" valign="top">
<embed width="750" height="121" src="Fermalogoflash.swf"></td>
<td width="434" height="69" bgcolor="#A7D389" colspan="4">
<img border="0" src="images/GoodroadsNgr.gif" width="151" height="68"></td></tr>
<tr bgcolor="#FFFFFF">
<td width="109" height="30" bgcolor="#A7D389">
<a href="default.htm">
<img border="0" src="images/Ferma%20Home.jpg" width="154" height="41"></a></td>
<td width="109" height="30" bgcolor="#A7D389">
</td>
<td width="108" height="30" bgcolor="#A7D389">
</td>
<td width="108" height="30" bgcolor="#A7D389">
</td></tr>
<tr bgcolor="#FFFFFF"><td colspan="7" width="750" height="18" bgcolor="#A7D389">
<p align="center"><b>
<font color="#FFFFFF">Nigeria Driving Distance Map</font></b></td></tr>
</td></tr>
<tr>
<td valign="top" width="8" height="767">
</td>
<td bgcolor="#FFFFFF" width="33" height="767">
<img src="indent.gif" height="100%" width="1"></td>
<td valign="top" colspan="5" width="741" bgcolor="#A7D389" height="767">
<script language=JavaScript><!-- begin
var first="", second="",str,fullstr;
var start="";
function calc(city1, elem) {
if (first.length==0) first=city1;
if (start==1)
{
if (first=="Abeokuta") str=abk[elem+1]+" Km.";
if (first=="Abuja") str=abj[elem+1]+" Km.";
if (first=="Bauchi") str=bau[elem+1]+" Km.";
if (first=="Benin City") ben=cti[elem+1]+" Km.";
if (first=="Calabar") str=cal[elem+1]+" Km.";
if (first=="Enugu") str=enu[elem+1]+" Km.";
if (first=="Gombe") str=gom[elem+1]+" Km.";
if (first=="Ibadan") str=iba[elem+1]+" Km.";
if (first=="Ilorin") str=ilo[elem+1]+" Km.";
if (first=="Jos") str=jos[elem+1]+" Km.";
if (first=="Kaduna") str=kad[elem+1]+" Km.";
if (first=="Kano") str=kan[elem+1]+" Km.";
if (first=="Katsina") str=kat[elem+1]+" Km.";
if (first=="Lagos") str=lag[elem+1]+" Km.";
if (first=="Lokoja") str=lok[elem+1]+" Km.";
if (first=="Maiduguri") str=mai[elem+1]+" Km.";
if (first=="Makurdi") str=mak[elem+1]+" Km.";
if (first=="Minna") str=min[elem+1]+" Km.";
if (first=="Onitsha") str=oni[elem+1]+" Km.";
if (first=="Owerri") str=owe[elem+1]+" Km.";
if (first=="Port Harcourt") str=phc[elem+1]+" Km.";
if (first=="Sokoto") str=sok[elem+1]+" Km.";
if (first=="Umuahia") str=umu[elem+1]+" Km.";
if (first=="Yola") str=yol[elem+1]+" Km.";
if (first=="Zaria") str=zar[elem+1]+" Km.";
if (elem==0) second="Abeokuta";
if (elem==1) second="Abuja";
if (elem==2) second="Bauchi";
if (elem==3) second="Benin City";
if (elem==4) second="Calabar";
if (elem==5) second="Enugu";
if (elem==6) second="Gombe";
if (elem==7) second="Ibadan";
if (elem==8) second="Ilorin";
if (elem==9) second="Jos";
if (elem==10) second="Kaduna";
if (elem==11) second="Kano";
if (elem==12) second="Katsina";
if (elem==13) second="Lagos";
if (elem==14) second="Lokoja";
if (elem==15) second="Maiduguri";
if (elem==16) second="Makurdi";
if (elem==17) second="Minna";
if (elem==18) second="Onitsha";
if (elem==19) second="Owerri";
if (elem==20) second="Port Harcourt";
if (elem==21) second="Sokoto";
if (elem==22) second="Umuahia";
if (elem==23) second="Uyo";
if (elem==24) second="Yola";
if (elem==25) second="Zaria";
fullstr1=" "+first+" ";
document.form1.city1.value=fullstr1;
fullstr2=" "+second+"";
document.form2.city2.value=fullstr2;
fullstr3=" "+str;
document.form3.distance.value=fullstr3;
if (elem==0) first="Abeokuta";
if (elem==1) first="Abuja";
if (elem==2) first="Bauchi";
if (elem==3) first="Benin City";
if (elem==4) first="Calabar";
if (elem==5) first="Enugu";
if (elem==6) first="Gombe";
if (elem==7) first="Ibadan";
if (elem==8) first="Ilorin";
if (elem==9) first="Jos";
if (elem==10) first="Kaduna";
if (elem==11) first="Kano";
if (elem==12) first="Katsina";
if (elem==13) first="Lagos";
if (elem==14) first="Lokoja";
if (elem==15) first="Maiduguri";
if (elem==16) first="Makurdi";
if (elem==17) first="Minna";
if (elem==18) first="Onitsha";
if (elem==19) first="Owerri";
if (elem==20) first="Port Harcourt";
if (elem==21) first="Sokoto";
if (elem==22) first="Umuahia";
if (elem==23) first="Uyo";
if (elem==24) first="Yola";
if (elem==25) first="Zaria";
}
start=1;
}
function initArray(){
for (var i=0; i<26; i++)
this[i+1] = initArray.arguments[i];
}
var abk=new initArray(0,722,1148,314,764,572,1304,77,238,1015,835,1086,1181,101,520,1596,991,663,466,559,671,970,595,691,1560,920);
var abj=new initArray(722,0,419,493,729,393,606,645,482,297,186,396,570,780,193,875,280,156,500,533,616,748,513,593,704,300);
var bau=new initArray(1148,419,0,880,1002,740,155,1070,909,130,410,301,518,1211,601,462,469,590,827,879,970,777,860,943,416,370);
var ben=new initArray(314,493,880,0,490,254,1044,300,399,758,786,1049,1252,320,287,1353,506,608,139,240,295,1020,279,375,1107,870);
var cal=new initArray(764,729,1002,490,0,276,1152,518,849,870,1034,1296,1464,782,579,1465,532,860,300,200,205,1535,151,67,1132,1118);
var enu=new initArray(572,393,740,254,276,0,890,558,653,608,772,1083,1202,516,392,1201,266,598,86,146,221,1272,118,189,870,856);
var gom=new initArray(1304,606,155,1044,1152,890,0,1223,1064,309,566,457,675,1367,756,318,623,745,977,1030,1122,931,1010,1094,262,528);
var iba=new initArray(77,645,1070,300,518,558,1223,0,162,928,756,1005,1065,141,584,1532,920,592,450,555,656,890,582,676,1545,827);
var ilo=new initArray(238,482,909,399,849,653,1064,162,0,776,597,846,907,301,319,1372,863,432,638,667,843,730,770,865,1319,667);
var jos=new initArray(1015,297,130,758,870,608,309,928,776,0,278,418,592,1081,469,627,336,457,695,745,840,644,727,811,540,240);
var kad=new initArray(835,186,410,786,1034,772,566,756,597,278,0,220,428,900,502,874,500,297,860,910,1003,480,890,975,820,70);
var kan=new initArray(1086,396,301,1049,1296,1083,457,1005,846,418,220,0,172,1149,766,600,756,503,1120,1173,1270,546,1153,1237,711,150);
var kat=new initArray(1181,570,518,1252,1464,1202,675,1065,907,592,428,172,0,1211,918,773,860,606,1290,1142,1438,380,1322,1406,875,273);
var lag=new initArray(101,780,1211,320,782,516,1367,141,301,1081,900,1149,1211,0,540,1675,885,735,480,574,630,1033,611,709,440,970);
var lok=new initArray(520,193,601,287,579,392,756,584,319,469,502,766,918,540,0,1063,311,309,156,424,521,985,405,490,942,502);
var mai=new initArray(1596,875,462,1353,1465,1201,318,1532,1372,627,874,600,773,1675,1063,0,930,1052,1291,1142,1419,1123,1323,406,436,834);
var mak=new initArray(991,280,469,506,532,266,623,920,863,336,500,756,860,885,311,930,0,440,356,408,505,1116,374,473,674,584);
var min=new initArray(663,156,590,608,860,598,745,592,432,457,297,503,606,735,309,1052,440,0,682,735,830,674,716,800,1124,368);
var oni=new initArray(466,500,827,139,300,86,977,450,638,695,860,1120,1290,480,156,1291,356,682,0,92,203,1360,128,224,956,942);
var owe=new initArray(559,533,879,240,200,146,1030,555,667,745,910,1173,1142,574,424,1142,408,735,92,0,112,1411,165,250,1008,993);
var phc=new initArray(671,616,970,295,205,221,1122,656,843,840,1003,1270,1438,630,521,1419,505,830,203,112,0,1203,114,120,1105,1090);
var sok=new initArray(970,748,777,1020,1535,1272,931,890,730,644,480,546,380,1033,985,1123,1116,674,1360,1411,1203,0,1376,1475,1187,404);
var umu=new initArray(595,513,860,279,151,118,1010,582,770,727,890,1153,1322,611,405,1323,374,716,128,165,114,1376,0,88,917,960);
var uyo=new initArray(691,593,943,375,67,189,1094,676,865,811,975,1237,1406,709,490,406,473,800,224,250,120,1475,88,0,1073,1058);
var yol=new initArray(1560,704,416,1107,1132,870,262,1545,1319,540,820,711,875,440,942,436,674,1124,956,1008,1105,1187,917,1073,0,781);
var zar=new initArray(920,300,370,870,1118,856,528,827,667,240,70,150,273,970,502,834,584,368,942,993,1090,404,960,1058,781,0);
// end -->
</script>
<script language=JavaScript><!-- */
//-->
</script>
<h2 align="center"> Driving Distance Between Some Cities in Nigeria</h2>
<h2 align="center"><em><font color="#0099CC" size="-1"><strong> </strong></font><strong>
<font color="#FFFFFF" size="-1"> Requires javascript: Click on two points on the map</font></strong></em></h2>
<div align="center">
<center>
<table bgcolor="#FFFFFF" width="1116"><tr>
<td align="center" width="172" bgcolor="#A7D389">
<br>
<br>
<font color="#FFFFFF">The driving distance
<br>
From: </font>
<form name=form1><input name=city1 size=22> </form>
<font color="#FFFFFF">To: </font>
<form name=form2><input name=city2 size=22> </form>
<font color="#FFFFFF">is: </font>
<form name=form3><input name=distance size=10> </form>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
<td align="center" width="6" bgcolor="#FFFFFF" rowspan="5">
</td>
<td align="center" width="884" bgcolor="#FFFFFF" rowspan="5">
<map name="FPMap0">
<area alt="Abeokuta" href="javascript:calc('Abeokuta',0)" shape="rect" coords="24, 497, 72, 519">
<area alt="Abuja" href="javascript:calc('Abuja',1)" shape="rect" coords="326, 359, 366, 380">
<area alt="Bauchi" href="javascript:calc('Bauchi',2)" shape="rect" coords="492, 261, 537, 282">
<area alt="Benin City" href="javascript:calc('Benin City',3)" shape="rect" coords="202, 558, 231, 579">
<area alt="Calabar" href="javascript:calc('Calabar',4)" shape="rect" coords="405, 666, 436, 682">
<area alt="Enugu" href="javascript:calc('Enugu',5)" shape="rect" coords="330, 550, 369, 569">
<area alt="Gombe" href="javascript:calc('Gombe',6)" shape="rect" coords="596, 261, 635, 283">
<area alt="Ibadan" href="javascript:calc('Ibadan',7)" shape="rect" coords="78, 479, 113, 498">
<area alt="Ilorin" href="javascript:calc('Ilorin',8)" shape="rect" coords="123, 399, 163, 419">
<area alt="Jos" href="javascript:calc('Jos',9)" shape="rect" coords="432, 310, 470, 331">
<area alt="Kaduna" href="javascript:calc('Kaduna',10)" shape="rect" coords="330, 245, 370, 264">
<area alt="Kano" href="javascript:calc('Kano',11)" shape="rect" coords="411, 135, 445, 153">
<area alt="Katsina" href="javascript:calc('Katsina',12)" shape="rect" coords="339, 68, 383, 83">
<area alt="Lagos" href="javascript:calc('Lagos',13)" shape="rect" coords="32, 550, 72, 567">
<area alt="Lokoja" href="javascript:calc('Lokoja',14)" shape="rect" coords="276, 451, 311, 475">
<area alt="Maiduguri" href="javascript:calc('Maiduguri',15)" shape="rect" coords="738, 147, 769, 168">
<area alt="Makurdi" href="javascript:calc('Makurdi',16)" shape="rect" coords="411, 458, 447, 476">
<area alt="Minna" href="javascript:calc('Minna',17)" shape="rect" coords="241, 303, 279, 325">
<area alt="Onitsha" href="javascript:calc('Onitsha',18)" shape="rect" coords="287, 572, 318, 595">
<area alt="Owerri" href="javascript:calc('Owerri',19)" shape="rect" coords="301, 624, 330, 645">
<area alt="Port Harcourt" href="javascript:calc('Port Harcourt',20)" shape="rect" coords="295, 676, 339, 697">
<area alt="Sokoto" href="javascript:calc('Sokoto',21)" shape="rect" coords="174, 56, 221, 80">
<area alt="Umuahia" href="javascript:calc('Umuahia',22)" shape="rect" coords="339, 616, 378, 636">
<area alt="Uyo" href="javascript:calc('Uyo',23)" shape="rect" coords="366, 659, 395, 679">
<area alt="Yola" href="javascript:calc('Yola',24)" shape="rect" coords="689, 339, 728, 358">
<area alt="Zaria" href="javascript:calc('Zaria',25)" shape="rect" coords="340, 200, 387, 222">
</map>
<img border="0" src="NigerianRoadMapDistance2.jpg" usemap="#FPMap0" width="884" height="729"></td>
<td align="center" width="6" bgcolor="#A7D389" rowspan="5">
</td>
<td align="center" width="6" bgcolor="#A7D389" rowspan="5">
</td>
<td align="center" width="6" bgcolor="#A7D389" rowspan="5">
</td>
<td width="6" bgcolor="#A7D389" rowspan="5">
</td></tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr><tr>
<td align="center" width="172" bgcolor="#A7D389">
</td>
</tr></table>
<p></td>
</tr>
<tr bgcolor="#FFFFcc">
<td align="center" colspan="4" width="750" bgcolor="#A7D389" height="18">
</td></tr>
<tr bgcolor="#FFFFcc">
<td width="8" bgcolor="#A7D389" height="18"> </td>
<td width="20" bgcolor="#A7D389" height="18"> </td>
<td width="428" bgcolor="#A7D389" height="18"> </td>
<td width="313" bgcolor="#A7D389" height="18"> </td>
</tr>
</table>
</center>
</body>
</html>
The question is how do I get this to work on staticpage plugin?
I tried creating a staticpage and put all the code in it, but it did not work.
Should the head section have been put in my header.thtml file? Or am I doing it all wrong?
Thanks in advance
2
3
Quote
All times are EST. The time is now 08:57 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content