View Full Version : Triple Combo
hnpjava
02-14-2003, 07:37 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"
Why? Because I want to set my website in Vietnamese language (Unicode)
Thanks for your time...
Hung!
This has absolutely nothing to do with DOM scripting. Let alone even Javascript. Just set the styles on the select to font-family: Tahoma;
This thread is being moved to the HTML forum.
hnpjava
02-16-2003, 12:12 PM
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!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.