473,508 Members | 2,509 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Drop Down Menu Issue. Replacing Text of the Menu

Hi All,

I have a javascript/css menut that i have which i start when the html
page loads.

<script type="text/javascript">cssdropdown.startchrome("chromemenu")</
script>
***THIS IS IN THE BODY*****

What i am trying to do is replace the text inside of a div <alink.
So that i Translate the text into spanish. When the user hovers on
this 'Attractions' it brings up the menu below. But after i make the
javascript function call below it swaps the text with the new one
below in spanish, but no longer have the drop down menu below. Do i
need to make the function call to restart the javascript menu again?

<A rel="attractions" onclick="loadxmlfile(load); return false;"
href="#">
Attractions

</A>
<div id="attractions" class="dropmenudiv" >

<li>
<A href="attractions.html" onclick="loadxmlfile('english/
attractions.xml'); return false;" >
View All
</A>
</li>
Here are my javascript functions.

function translateesp(){

document.getElementById("attractionsli").innerHTML = '<A
rel="attracions" onclick="loadxmlfile(\'espanol/attractions.xml\');
return false;" href="#">Attraciones </A>';

document.getElementById("attractions").innerHTML ='<li><A
href="attractions.html" onclick="loadxmlfile(\'espanol/attractions.xml
\'); return false;" >Ver Todas</A></li>';
}
Jul 22 '08 #1
1 1390
Here is the link to the page on my site.

http://www.belizemapia.com/layout1.html

If hover over attractions you can see the drop down menu. Upon
clicking on Espanol on the Language drop down the text is replaced but
the drop down menu no longer appears.

Here is the Javascript file.

http://www.belizemapia.com/langtranslate.js


Jul 22 '08 #2

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

Similar topics

53
5656
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
9
2754
by: Harry | last post by:
I am accumulating over 80 pages per day into an archive that I will need to be able to present sequentially to viewers. Using html to viewing a page, then click on back to return to my archive...
2
3854
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
7
3570
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
3
10728
by: Robert Mark Bram | last post by:
Hi All! Has anyone seen an example of the following javascript powered control: - a dropdown select menu - the width of the control is set. Assume by "control" I mean the visible part of the...
2
3639
by: pantagruel | last post by:
I have an old web application I did where browsers with dynamic capabilities received a drop down menu on the top of the page and a fold out on the left hand side of the page and non-dynamic...
4
2634
by: simon.cigoj | last post by:
I have an javascript made menu and some forms with the dropdown element. When the menu opens and scrolls down the drop down is displeyed over the menu and obscures the menu choices. I have this...
136
9202
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
4
9273
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
0
7133
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
7405
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...
1
7066
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
7504
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...
0
5643
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,...
0
4724
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...
0
1568
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 ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
435
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.