Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Javascript Drop Down Menu Issue. Replacing Text of the Menu

Reply
Thread Tools

Javascript Drop Down Menu Issue. Replacing Text of the Menu

 
 
Ivann
Guest
Posts: n/a
 
      07-22-2008
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 <a> link.
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>';


}
 
Reply With Quote
 
 
 
 
Ivann
Guest
Posts: n/a
 
      07-22-2008
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




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Affecting a dynamically created drop down from another dynamically created drop down. msimmons ASP .Net 0 07-16-2009 03:17 PM
retrive preselected value in second drop down list from the first drop down list weiwei ASP .Net 0 01-05-2007 07:29 PM
Multiple select drop down poplulating sub drop down scott@dettcom.com Javascript 3 11-09-2006 07:50 PM
Auto Drop down a Drop Down List xxbmichae1@supergambler.com Javascript 5 11-23-2005 01:35 AM
New to .NET, can I have one drop down box control the data of another drop down box using a database? SirPoonga ASP .Net 2 01-07-2005 10:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57