473,659 Members | 2,690 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_s tyl_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>Document o 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"><s trong>Men<font
color="#E4D28B" >u'</font></strong></font></p>

<p>&nbsp;</p>

<p>

<script language="JavaS cript">

document.write( '<STYLE TYPE=text/css>');

document.write( '.ejs_mv3_styl_ scroll
{font-size:12px;font-family:Verdana; color:#999999;t ext-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_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[0] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[1] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[1] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[2] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[3] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

ejs_mv3_lien[4] += '- <A HREF="http://freephp.it/script/index.asp"
CLASS=ejs_mv3_s tyl_scroll>xxxx </A><BR>';

function d(texte)

{

document.write( texte);

}

d('<DIV ID=ejs_mv3_rela tiv
STYLE="position :relative;width :'+ejs_mv3_larg eur+';height:'+ ejs_mv3_hauteur +'">');

d('<DIV ID=ejs_mv3_cadr e
STYLE="position :absolute;width :'+(ejs_mv3_lar geur-8)+';height:'+( ejs_mv3_hauteur-8)+';top:4;left :4;clip:rect(0
'+(ejs_mv3_larg eur-8)+' '+(ejs_mv3_haut eur-8)+' 0)">');

d('<div id=ejs_mv3_scro ll_1
style="position :absolute;width :'+(ejs_mv3_lar geur-8)+';left:0;top :0;"
CLASS=ejs_mv3_s tyl_scroll>Cari camento del menù ...</DIV>');

d('<div id=ejs_mv3_scro ll_2
style="position :absolute;width :'+(ejs_mv3_lar geur-8)+';top:0;left :'+ejs_mv3_larg eur+';"
CLASS=ejs_mv3_s tyl_scroll></DIV>');

d('</DIV></DIV>');

ejs_mv3_mode = 1;

ejs_mv3_actuel = 0;

function ejs_mv3_show(me nu)

{

if(menu == "menu")

{

var html = "<TABLE BORDER=1 BORDERCOLOR=bla ck WIDTH=100% CELLSPACING=0
BGCOLOR="+ejs_m v3_bgcolor+">";

for(a=0;a<ejs_m v3_menu.length; a++)

{

html += '<TR><TD><A HREF=# onClick=\'ejs_m v3_show('+a+'); return(false)\'
CLASS=ejs_mv3_s tyl_scroll>'+ej s_mv3_menu[a]+'</A></TD></TR>';

}

html += "</TABLE>";

document.getEle mentById("ejs_m v3_scroll_1").i nnerHTML = html;

if(ejs_mv3_mode == 2)

ejs_mv3_action( 1);

}

else

{

var html = "<TABLE HEIGHT="+(ejs_m v3_hauteur-15)+" BORDER=1
BORDERCOLOR=bla ck WIDTH=100% CELLSPACING=0
BGCOLOR="+ejs_m v3_bgcolor+"><T R><TD HEIGHT=20 ALIGN=center
CLASS=ejs_mv3_s tyl_scroll>"+ej s_mv3_menu[menu]+"</TD></TR><TR><TD
HEIGHT="+(ejs_m v3_hauteur-55)+" VALIGN=top
CLASS=ejs_mv3_s tyl_scroll>"+ej s_mv3_lien[menu]+"</TD></TR><TR><TD HEIGHT=20
CLASS=ejs_mv3_s tyl_scroll>&lt; <A HREF=#
onClick='ejs_mv 3_show(\"menu\" );return(false) '
CLASS=ejs_mv3_s tyl_scroll>Indi etro</A></TD></TR></TABLE>";

document.getEle mentById("ejs_m v3_scroll_2").i nnerHTML = 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_curs or>0)

{

ejs_mv3_cursor -= 10;

document.getEle mentById("ejs_m v3_scroll_1").s tyle.left =
ejs_mv3_cursor-ejs_mv3_largeur ;

document.getEle mentById("ejs_m v3_scroll_2").s tyle.left = ejs_mv3_cursor;

setTimeout("ejs _mv3_action("+a ction+")",1);

ejs_mv3_mode = 2;

}

}

else

{

if(ejs_mv3_curs or<ejs_mv3_larg eur)

{

ejs_mv3_cursor += 10;

document.getEle mentById("ejs_m v3_scroll_1").s tyle.left =
ejs_mv3_cursor-ejs_mv3_largeur ;

document.getEle mentById("ejs_m v3_scroll_2").s tyle.left = ejs_mv3_cursor;

setTimeout("ejs _mv3_action("+a ction+")",1);

ejs_mv3_mode = 1;

}

}

}

window.onload = new Function("ejs_m v3_show('menu') ");

</script>

</p>

<p><br>

<br>

<br>

<br>
Nov 6 '06 #1
2 1768

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="NameOfM ainFrame">DESCR IPTION</a>

Where "NameOfMainFram e" 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="NameOfM ainFrame">DESCR IPTION</a>
Where "NameOfMainFram e" 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.ht m"...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
13702
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 click disable function right(e) { //This function is for Net 4. if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) {
12
3384
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, a left frame and a right frame. The menu is on the top frame and when hovering the categories, the sections appear under the left and right frame. How do I solve that problem? (I use Dreamweaver.) Thanks for all your answers.
13
5003
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 I'm using: FrameSet ------------------------------------------------------- <html>
4
3831
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 beautiful script "http://javascript.internet.com/navigation/toolbar-menu.html". It works like a charm. I made my webpage in frames, where the nav-frame shows the menubar, so whenever I click a link in the menubar, it opens in the frame below. But...
1
4316
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 want to make first text as Table Heading/menu category. For examle in the given menu i want to make a heading as "Comp. Languages" which won't be a link. 2) The position of this menu is absolute to the page. I want to make it absolute to the Table...
2
5292
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 RWD <script type='text/javascript'>
4
5762
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
4
2322
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 list/menu appears. When the page is opened in the browser (as it appears by default), the dropdown menu positions are correctly displayed. But when I scroll the page and then move the mouse over any menu item of the navbar, the dropdown menu is not...
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8627
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
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.