FreeScholar / customchatServer

customchat server - website
http://www.customchat.com/downloads
GNU General Public License v3.0
2 stars 1 forks source link

Update to use pulldown menus #5

Open FreeScholar opened 7 years ago

FreeScholar commented 7 years ago

In the file Room.java

 //should change these to use PullDown() !!!
    if (getSoundList() != null)
        sb.append("&nbsp;<FONT SIZE=2><SELECT NAME=\"Sound" + sFieldName
                  + "\" onchange='if(this.selectedIndex != 0) document.Bottom."
                  + sFieldName + ".value += " +
                  "\"<embed src=\\\"\" + this.options[" +
                  "this.selectedIndex].value +" +
                  "\"\\\" hidden=\\\"False\\\" autostart=\\\"true\\\" align border=\\\"0\\\"" +
                  "width=\\\"140\\\" height=\\\"30\\\" >\";" +
                  "document.Bottom." + sFieldName + ".focus();'>" +
                  "<option>Sounds" + getString(getSoundList()) + "</select>\n");

    if (getImageList() != null)
        sb.append("<SELECT NAME=\"Picture" + sFieldName
                  + "\" onchange='if(this.selectedIndex != 0) document.Bottom."
                  + sFieldName + ".value += " +
                  "\"<img src=\\\"\" + this.options["  +
                  "this.selectedIndex].value +\"\\\" border=\\\"0\\\">\";" +
                  "document.Bottom." + sFieldName + ".focus();'><option>Images"
                  + getString(getImageList())+ "</select></FONT>\n");
    return sb.toString();