Need help with my scripts with frame

wxdqz

New Member
Here are my scripts:

index.html
----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<HTML><HEAD>
<TITLE>Welcome To Cojo-online.com</TITLE></HEAD>
<FRAMESET border=0 framespacing=0 frameBorder=no cols=200,*>
<FRAME name=menu src=http://www.webdeveloper.com/forum/archive/index.php/"left.html" noResize scrolling=no>
<FRAME name=body src="http://www.cojo-online.com" noResize scrolling=yes>
</FRAMESET></HTML>

left.html
-----
<!DOCTYPE HTML PUBLIC>
<HTML><HEAD><TITLE>left.html</TITLE>
<SCRIPT LANGUAGE=javascript type=text/javascript?
var count=1;
succeding
var link_aray = new Array();
link_array[1] ='index.html';
link_array[2] = 'london.html';
link_array[3] = 'paris.html';
link_array[4] = 'ski.html';
link_array[5] = 'santo.html';
link_array[6] = 'kona.html';
link_array[7] = 'alaska.html';
link_array[8] = 'cancun.html';
link_array[9] = 'pdc.html';
link_array[10] = 'vegas.html';
link_array[11] = 'bahamas.html';
link_array[12] = 'seadoo.html';
link_array[13] = 'family.html';
link_array[14] = 'links.html';

function next()
{
if ((count+1) >= link_array.length)
{
alert('That was the last page');
}
else
{
count = count+1;
parent.frames['body'].document.location.href=link_array[count];
}
}

function previous()
{
if ((count-1) <= 0)
{
alert('This is the first page');
}
else
{
count=count-1;
parent.frames['body'].document.location.href=link_array[count];
}
}

function goToindex() { parent.frames['body'].document.location.href = "http://www.cojo-online.com"; }
function goTolondon() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/london.html"; }
function goToparis() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/paris.html"; }
function goToski() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/ski.html"; }
function goTosanto() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/santo.html"; }
function goTokona() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/kona.html"; }
function goToalaska() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/alaska.html"; }
function goTocancun() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/cancun.html"; }
function goTopdc() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/pdc.html"; }
function goTovegas() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/vegas.html"; }
function goTobahamas() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/bahamas.html"; }
function goToseadoo() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/seadoo.html"; }
function goTofamily() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/family.html"; }
function goTolinks() { parent.frames['body'].document.location.href = "http://www.cojo-online.com/links.html"; }

</SCRIPT>
</HEAD>
<BODY bgcolor=#ffffff><BR>
<CENTER><INPUT onclick=previous(); type=button value=http://www.webdeveloper.com/forum/archive/index.php/Previous>
<INPUT onclick=next(); type=button value=Next></CENTER>
<!--INPUT onclick=parent.location.href="http://www.google.com" type=button value=Index>
<CENTER><INPUT onclick=goToindex(); type=button value=Index></CENTER>
<CENTER><INPUT onclick=goTolondon(); type=button value=London></CENTER>
<CENTER><INPUT onclick=goToparis(); type=button value=Paris></CENTER>
<CENTER><INPUT onclick=goToski(); type=button value=Ski Trips></CENTER>
<CENTER><INPUT onclick=goTosanto(); type=button value=Santo Dominco></CENTER>
<CENTER><INPUT onclick=goTokona(); type=button value=Kona, Hawaii></CENTER>
<CENTER><INPUT onclick=goToalaska(); type=button value=Alaska></CENTER>
<CENTER><INPUT onclick=goTocancun(); type=button value=Cancun></CENTER>
<CENTER><INPUT onclick=goTopdc(); type=button value=Playa De Carmen></CENTER>
<CENTER><INPUT onclick=goTovegas(); type=button value=Las Vegas></CENTER>
<CENTER><INPUT onclick=goTobahamas(); type=button value=Bahamas></CENTER>
<CENTER><INPUT onclick=goToseadoo(); type=button value=Seadoo></CENTER>
<CENTER><INPUT onclick=goTofamily(); type=button value=Family></CENTER>
<CENTER><INPUT onclick=goTolinks(); type=button value=Links></CENTER>
<CENTER><INPUT onclick="parent.location='mailto:[email protected]'" type="button" value=http://www.webdeveloper.com/forum/archive/index.php/"Email Me">

The "Email Me" part work and that is it. The rest of the button just give me an "Error on Page".....Could someone tell me what I did wrong?????thanks.....John
 
Back
Top