PDA

View Full Version : Triple Combo


hnpjava
02-17-2003, 09:26 PM
Can someone help help on Triple Combo script.
url: http://www.javascriptkit.com/script/script2/triplecombo.shtml

I like it, but I want to change the font type to "TAHOMA" font
Why? Because I want to set my website in Vietnamese language (Unicode)


I already try to put the select to font-family: Tahoma; it doesn't work. (It only works on the select on the option menu from none script, it doesn't work for the option menu in the script as below.)


I know about style. But I don't know where to insert the style in the script.


Example: "What ever" in the line below is the name

secondGroup[1][3][1]=new Option("What ever","http://www.cgi-resources.com");

I like to replaced "What ever" to Unicode such as ỐốỒợủằỏ"

The name: ỐốỒợủằỏ above had been convert to unicode from &-#-7-8-8-8-; &-#-7-8-8-9-; &-#-7-8-9-0-; &-#-7-9-0-7-; &-#-7-9-1-1-; &-#-7-8-5-7-; &-#-7-8-8-7-; (without the dash "-" in the middle of &, # and number.
-------------------------------------------------------------------------
In order to display the option menu in the script by using Unicode, I guest that I have to insert the style somewhere in the script below. Would you please help me out?
-------------------------------------------------------------------------
var temp1=document.isc.stage3
function redirect1(y){
for (m=temp1.options.length-1;m>0;m--)
temp1.options[m]=null
for (i=0;i<secondGroup[document.isc.example.options.selectedIndex][y].length;i++){
temp1.options[i]=new Option(secondGroup[document.isc.example.options.selectedIndex][y][i].text,secondGroup[document.isc.example.options.selectedIndex][y][i].value)
}
temp1.options[0].selected=true
}

function redirect2(z){
window.location=temp1[z].value
}

Thanks a lot for your time,

Hung!

joeframbach
02-17-2003, 10:12 PM
bad link. can you post it again?

hnpjava
02-19-2003, 03:54 AM
The LINK had been fixed.

Good link http://www.javascriptkit.com/script/script2/triplecombo.shtml

Please check it out!

Thanks for your report :-)
Hung!