S
SiNi
Hello.
I am an italian student and I do not known javascript language.
I need your help!
I have built a web page with frames (left frame and main frame).
In the left frames I have attach the code that you find below.
I have a problem. because I am not able...when I choose a voice in the menu,
the relative web page open in the left menu....where there is the menu; but
I want that the web page should be display in the main frames!
Anubody can help me?
Thanks in advance and I apologize for my english!
In my opinion I must change something here:
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
but I do not known what put!
The code in the left frame:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
</HEAD>
<BODY BGCOLOR="black" vlink="red" link="blue">
<p> </p>
<p> </p>
<p><font color="#999999" face="Lucida Handwriting"><strong>Men<font
color="#E4D28B">u'</font></strong></font></p>
<p> </p>
<p>
<script language="JavaScript">
document.write('<STYLE TYPE=text/css>');
document.write('.ejs_mv3_styl_scroll
{font-size:12px;font-family:Verdana;color:#999999;text-decoration:none}');
document.write('</STYLE>');
ejs_mv3_largeur = 180;
ejs_mv3_hauteur = 120;
ejs_mv3_bgcolor = '#E4D28B';
ejs_mv3_menu = new Array;
ejs_mv3_menu[0] = 'Home page';
ejs_mv3_menu[1] = 'Sc';
ejs_mv3_menu[2] = 'Fi';
ejs_mv3_menu[3] = 'Contatti';
ejs_mv3_menu[4] = 'Dove Siamo';
ejs_mv3_lien = new Array;
ejs_mv3_lien[0] = ''
ejs_mv3_lien[1] = ''
ejs_mv3_lien[2] = ''
ejs_mv3_lien[3] = ''
ejs_mv3_lien[4] = ''
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[1] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[1] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[4] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
function d(texte)
{
document.write(texte);
}
d('<DIV ID=ejs_mv3_relativ
STYLE="position:relative;width:'+ejs_mv3_largeur+';height:'+ejs_mv3_hauteur+'">');
d('<DIV ID=ejs_mv3_cadre
STYLE="position:absolute;width:'+(ejs_mv3_largeur-8)+';height:'+(ejs_mv3_hauteur-8)+';top:4;left:4;clip:rect(0
'+(ejs_mv3_largeur-8)+' '+(ejs_mv3_hauteur-8)+' 0)">');
d('<div id=ejs_mv3_scroll_1
style="position:absolute;width:'+(ejs_mv3_largeur-8)+';left:0;top:0;"
CLASS=ejs_mv3_styl_scroll>Caricamento del menù ...</DIV>');
d('<div id=ejs_mv3_scroll_2
style="position:absolute;width:'+(ejs_mv3_largeur-8)+';top:0;left:'+ejs_mv3_largeur+';"
CLASS=ejs_mv3_styl_scroll></DIV>');
d('</DIV></DIV>');
ejs_mv3_mode = 1;
ejs_mv3_actuel = 0;
function ejs_mv3_show(menu)
{
if(menu == "menu")
{
var html = "<TABLE BORDER=1 BORDERCOLOR=black WIDTH=100% CELLSPACING=0
BGCOLOR="+ejs_mv3_bgcolor+">";
for(a=0;a<ejs_mv3_menu.length;a++)
{
html += '<TR><TD><A HREF=# onClick=\'ejs_mv3_show('+a+');return(false)\'
CLASS=ejs_mv3_styl_scroll>'+ejs_mv3_menu[a]+'</A></TD></TR>';
}
html += "</TABLE>";
document.getElementById("ejs_mv3_scroll_1").innerHTML = html;
if(ejs_mv3_mode == 2)
ejs_mv3_action(1);
}
else
{
var html = "<TABLE HEIGHT="+(ejs_mv3_hauteur-15)+" BORDER=1
BORDERCOLOR=black WIDTH=100% CELLSPACING=0
BGCOLOR="+ejs_mv3_bgcolor+"><TR><TD HEIGHT=20 ALIGN=center
CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_menu[menu]+"</TD></TR><TR><TD
HEIGHT="+(ejs_mv3_hauteur-55)+" VALIGN=top
CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_lien[menu]+"</TD></TR><TR><TD HEIGHT=20
CLASS=ejs_mv3_styl_scroll>< <A HREF=#
onClick='ejs_mv3_show(\"menu\");return(false)'
CLASS=ejs_mv3_styl_scroll>Indietro</A></TD></TR></TABLE>";
document.getElementById("ejs_mv3_scroll_2").innerHTML = html;
if(ejs_mv3_mode == 1)
ejs_mv3_action(2);
}
}
ejs_mv3_cursor = ejs_mv3_largeur;
function ejs_mv3_action(action)
{
if(action == 2)
{
if(ejs_mv3_cursor>0)
{
ejs_mv3_cursor -= 10;
document.getElementById("ejs_mv3_scroll_1").style.left =
ejs_mv3_cursor-ejs_mv3_largeur;
document.getElementById("ejs_mv3_scroll_2").style.left = ejs_mv3_cursor;
setTimeout("ejs_mv3_action("+action+")",1);
ejs_mv3_mode = 2;
}
}
else
{
if(ejs_mv3_cursor<ejs_mv3_largeur)
{
ejs_mv3_cursor += 10;
document.getElementById("ejs_mv3_scroll_1").style.left =
ejs_mv3_cursor-ejs_mv3_largeur;
document.getElementById("ejs_mv3_scroll_2").style.left = ejs_mv3_cursor;
setTimeout("ejs_mv3_action("+action+")",1);
ejs_mv3_mode = 1;
}
}
}
window.onload = new Function("ejs_mv3_show('menu')");
</script>
</p>
<p><br>
<br>
<br>
<br>
I am an italian student and I do not known javascript language.
I need your help!
I have built a web page with frames (left frame and main frame).
In the left frames I have attach the code that you find below.
I have a problem. because I am not able...when I choose a voice in the menu,
the relative web page open in the left menu....where there is the menu; but
I want that the web page should be display in the main frames!
Anubody can help me?
Thanks in advance and I apologize for my english!
In my opinion I must change something here:
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
but I do not known what put!
The code in the left frame:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
</HEAD>
<BODY BGCOLOR="black" vlink="red" link="blue">
<p> </p>
<p> </p>
<p><font color="#999999" face="Lucida Handwriting"><strong>Men<font
color="#E4D28B">u'</font></strong></font></p>
<p> </p>
<p>
<script language="JavaScript">
document.write('<STYLE TYPE=text/css>');
document.write('.ejs_mv3_styl_scroll
{font-size:12px;font-family:Verdana;color:#999999;text-decoration:none}');
document.write('</STYLE>');
ejs_mv3_largeur = 180;
ejs_mv3_hauteur = 120;
ejs_mv3_bgcolor = '#E4D28B';
ejs_mv3_menu = new Array;
ejs_mv3_menu[0] = 'Home page';
ejs_mv3_menu[1] = 'Sc';
ejs_mv3_menu[2] = 'Fi';
ejs_mv3_menu[3] = 'Contatti';
ejs_mv3_menu[4] = 'Dove Siamo';
ejs_mv3_lien = new Array;
ejs_mv3_lien[0] = ''
ejs_mv3_lien[1] = ''
ejs_mv3_lien[2] = ''
ejs_mv3_lien[3] = ''
ejs_mv3_lien[4] = ''
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[1] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[1] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
ejs_mv3_lien[4] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_styl_scroll>xxxx</A><BR>';
function d(texte)
{
document.write(texte);
}
d('<DIV ID=ejs_mv3_relativ
STYLE="position:relative;width:'+ejs_mv3_largeur+';height:'+ejs_mv3_hauteur+'">');
d('<DIV ID=ejs_mv3_cadre
STYLE="position:absolute;width:'+(ejs_mv3_largeur-8)+';height:'+(ejs_mv3_hauteur-8)+';top:4;left:4;clip:rect(0
'+(ejs_mv3_largeur-8)+' '+(ejs_mv3_hauteur-8)+' 0)">');
d('<div id=ejs_mv3_scroll_1
style="position:absolute;width:'+(ejs_mv3_largeur-8)+';left:0;top:0;"
CLASS=ejs_mv3_styl_scroll>Caricamento del menù ...</DIV>');
d('<div id=ejs_mv3_scroll_2
style="position:absolute;width:'+(ejs_mv3_largeur-8)+';top:0;left:'+ejs_mv3_largeur+';"
CLASS=ejs_mv3_styl_scroll></DIV>');
d('</DIV></DIV>');
ejs_mv3_mode = 1;
ejs_mv3_actuel = 0;
function ejs_mv3_show(menu)
{
if(menu == "menu")
{
var html = "<TABLE BORDER=1 BORDERCOLOR=black WIDTH=100% CELLSPACING=0
BGCOLOR="+ejs_mv3_bgcolor+">";
for(a=0;a<ejs_mv3_menu.length;a++)
{
html += '<TR><TD><A HREF=# onClick=\'ejs_mv3_show('+a+');return(false)\'
CLASS=ejs_mv3_styl_scroll>'+ejs_mv3_menu[a]+'</A></TD></TR>';
}
html += "</TABLE>";
document.getElementById("ejs_mv3_scroll_1").innerHTML = html;
if(ejs_mv3_mode == 2)
ejs_mv3_action(1);
}
else
{
var html = "<TABLE HEIGHT="+(ejs_mv3_hauteur-15)+" BORDER=1
BORDERCOLOR=black WIDTH=100% CELLSPACING=0
BGCOLOR="+ejs_mv3_bgcolor+"><TR><TD HEIGHT=20 ALIGN=center
CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_menu[menu]+"</TD></TR><TR><TD
HEIGHT="+(ejs_mv3_hauteur-55)+" VALIGN=top
CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_lien[menu]+"</TD></TR><TR><TD HEIGHT=20
CLASS=ejs_mv3_styl_scroll>< <A HREF=#
onClick='ejs_mv3_show(\"menu\");return(false)'
CLASS=ejs_mv3_styl_scroll>Indietro</A></TD></TR></TABLE>";
document.getElementById("ejs_mv3_scroll_2").innerHTML = html;
if(ejs_mv3_mode == 1)
ejs_mv3_action(2);
}
}
ejs_mv3_cursor = ejs_mv3_largeur;
function ejs_mv3_action(action)
{
if(action == 2)
{
if(ejs_mv3_cursor>0)
{
ejs_mv3_cursor -= 10;
document.getElementById("ejs_mv3_scroll_1").style.left =
ejs_mv3_cursor-ejs_mv3_largeur;
document.getElementById("ejs_mv3_scroll_2").style.left = ejs_mv3_cursor;
setTimeout("ejs_mv3_action("+action+")",1);
ejs_mv3_mode = 2;
}
}
else
{
if(ejs_mv3_cursor<ejs_mv3_largeur)
{
ejs_mv3_cursor += 10;
document.getElementById("ejs_mv3_scroll_1").style.left =
ejs_mv3_cursor-ejs_mv3_largeur;
document.getElementById("ejs_mv3_scroll_2").style.left = ejs_mv3_cursor;
setTimeout("ejs_mv3_action("+action+")",1);
ejs_mv3_mode = 1;
}
}
}
window.onload = new Function("ejs_mv3_show('menu')");
</script>
</p>
<p><br>
<br>
<br>
<br>