473,785 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changing var java script

2 New Member
i have the following code between <head> and </head>
<script language="JavaS cript1.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 1216
sukatoa
539 Contributor
i have the following code between <head> and </head>
<script language="JavaS cript1.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
telekarper
2 New Member
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 Recognized Expert Moderator Expert
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
2481
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 statement. This resembles what I am doing: <form name="frm1"> Step 1 - Choose a File: <select name="selA" OnChange="makeinputbox;" width="200" style="width:200"> <option value="">Date of Birth</option> <option value="MASTER">Age</option>
7
6594
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 but has problems in IE. Here's the code: imagestring = "<img src=\"" + imagedir + composers + "\" />"; objimage.innerHTML = imagestring;
31
5725
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 calendar, 7 across by whatever needed down, and I manually create it each month - not a big deal. Every day I go in and darken the background color of the current day's cell by changing the appropriate <TD> entry to <TD bgcolor="c63800"> and...
16
2130
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 would i do this ??
2
1404
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 (replacing "SchoolSpace)? I would like comicsans (because it can be read by primary students.) Here is the link to my website: http://www.members.shaw.ca./SchoolSpace/ Thanks P.
14
5935
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 because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary changed to "&" by a browser when or other software, when editing and uploading the file to the web...
5
1446
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... let say * "~/somepage.aspx" * "^/somepage2.aspx"
3
7357
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 ShowPic(ShowThis, wdth, hght) { imgP.src = "../pics/' + ShowThis + '" xw = 500; yh = 500*(hght/wdth); window.document.getElementById("graphic").innerHTML = '<img src="../
0
9645
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
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10327
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10151
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...
1
10092
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
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
8973
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...
0
6740
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();...
2
3647
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.