473,503 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

menu javascript and frames

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>&nbsp;</p>

<p>&nbsp;</p>

<p><font color="#999999" face="Lucida Handwriting"><strong>Men<font
color="#E4D28B">u'</font></strong></font></p>

<p>&nbsp;</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").innerH TML = 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>&lt; <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").innerH TML = 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>
Nov 6 '06 #1
2 1750

SiNi wrote:
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!

Not really "JavaScript".

In the links that is displayed in the menu frame:
<a href="URL" target="NameOfMainFrame">DESCRIPTION</a>

Where "NameOfMainFrame" is the name you called your "main frame", as
you didn't paste the Framesets I couldn't create this for you. But you
should be able to figure it out.

Also checkout:
http://www.w3.org/TR/html4/present/f...ml#adef-target

By the way; your english is fine.

Have a nice day.

<--snip-->

Nov 6 '06 #2
In the links that is displayed in the menu frame:
<a href="URL" target="NameOfMainFrame">DESCRIPTION</a>
Where "NameOfMainFrame" is the name you called your "main frame", as
you didn't paste the Framesets I couldn't create this for you. But you
should be able to figure it out.
Thanks.

I tryed...

ejs_mv3_lien[0] += '- <A HREF="../IMMAGINI/ACQUA.JPG"
target="../I_menu/I_menu_body.htm">FOTO1</A><BR>';
where:
"acqua.jpg" is a photo that I want to display in the main frame.

"../I_menu/I_menu_body.htm" in the path of the "main fram"

FOTO1 in the text that appear in the MENU.

The photo is display...but in another new window of Internet Explorer...and
not in the frame called "I_menu_body.htm"...where I am Wrong?
Thanks in advance!

SINi

>
Also checkout:
http://www.w3.org/TR/html4/present/f...ml#adef-target

By the way; your english is fine.

Have a nice day.

<--snip-->

Nov 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
13690
by: yaktipper | last post by:
This explains how to disable the view source / right-click menu in Netscape 4, Netscape 6 and Internet Explorer (IE). <script language="JavaScript"> //This code is the beginning of the right...
12
3369
by: MP Multimedia | last post by:
Hello everyone, I need help. I'm using a hierarchical menu made in javascript. When I used it in a one frame page, it came out fine. But now I need to change my page to 3 frames: a top frame,...
13
4971
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code...
4
3816
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
4299
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
5281
by: RWD | last post by:
I am trying to figure out how to change the target frame in my hyperlink on a DHTML menu. The menu is in one frame and the target frame is called "main" The code is below: Thanks in advance...
4
5748
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
4
2304
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown...
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.