473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

changing var java script

i have the following code between <head> and </head>
<script language="JavaScript1.2" src="menun_data.js" ></script>
as a part of a dropdownmenu.
i want to change menun_data.js for menuf_data.js witch is the same file in an other language.
I will use 4 languages, therfore i defined the following array,
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.  menu= new Array();
  3. menu[0]="menun_data.js";
  4. menu[1]="menuf_data.js";
  5. menu[2]="menud_data.js";
  6. menu[3]="menue_data.js";
  7. </script>
But i dont now how to make the relation en the changes.
Mar 24 '08 #1
3 1205
sukatoa
539 512MB
i have the following code between <head> and </head>
<script language="JavaScript1.2" src="menun_data.js" ></script>
as a part of a dropdownmenu.
i want to change menun_data.js for menuf_data.js witch is the same file in an other language.
I will use 4 languages, therfore i defined the following array,
<script type="text/javascript">
menu= new Array();
menu[0]="menun_data.js";
menu[1]="menuf_data.js";
menu[2]="menud_data.js";
menu[3]="menue_data.js";
</script>

But i dont now how to make the relation en the changes.
Did you also post this into javascript/ajax forum?
Mar 25 '08 #2
So far as i now yes. It's the first time i used this forum maybe i'm sitting in the wrong chamber?
Mar 25 '08 #3
gits
5,390 Expert Mod 4TB
that is very redundant ... just extract the language relevant things and put them in variables ... after that we could find a good solution for your problem ... since it seems that you don't want to use a database for this?

kind regards
Mar 25 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Boyd Reilly | last post by:
I have a form that has the user pick the type of question he will answer. The input field will be a text, numeric or date type. So, after the question is answered, I need to change the input...
7
by: Frostillicus | last post by:
Hi, I've written some javascript to randomly choose a classical music composer's picture and sample audio and display it on my home page (http://marc.fearby.com/), and this works fine in Mozilla...
31
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a...
16
by: chris | last post by:
im new to javascript but slowly getting better what i want to do is have some text on the screen and when an event happens for example click a button the text would change to what i want. how...
2
by: pierre d. | last post by:
Could someone be kind enough to tell me how I could change the coding (see below) if I want to change the font and the sixe of the font of the description, which appears after mouse-over event...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
5
by: david2tm | last post by:
hello) i have some task to coplete, and cant find any way how to do it in my asp.net (2.0 c#) i do some work, rendering pages... in those pages, are url's presented, writen in some manner......
3
by: bulldog8 | last post by:
I am having problems with changing a frames source file for Mozilla (1.5.0.4). The followig code works for IE: <script type="text/javascript"> var imgP = new Image(); function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.