Changeset 318
- Timestamp:
- 09/14/05 12:09:22 (8 years ago)
- Location:
- trunk/examples
- Files:
-
- 2 modified
-
full_example-menu.html (modified) (3 diffs)
-
full_example.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/full_example-menu.html
r312 r318 15 15 label {display:block;} 16 16 #numeditor {width:25px;} 17 .options {display:none;} 17 18 </style> 19 <script type="text/javascript"> 20 function checkPluginsOptions() 21 { 22 var plugins = document.forms[0].elements['plugins']; 23 for(var x = 0; x < plugins.length; x++) 24 if (document.getElementById(plugins[x].value + 'Options')) 25 document.getElementById(plugins[x].value + 'Options').style.display = (plugins[x].checked)? 'block':'none'; 26 } 27 function toggleOnChange(elt) { 28 document.getElementById(elt.value + 'Options').style.display = (elt.checked)? 'block':'none'; 29 } 30 </script> 18 31 </head> 19 32 20 <body >33 <body onload="checkPluginsOptions();"> 21 34 <form action="full_example-body.html" target="body"> 22 35 <p> … … 56 69 </label> 57 70 <label> 58 <input type="checkbox" name="plugins" value="CharacterMap" checked="checked" > CharacterMap71 <input type="checkbox" name="plugins" value="CharacterMap" checked="checked" onchange="toggleOnChange(this);"> CharacterMap 59 72 </label> 73 <div id="CharacterMapOptions" class="options"> 74 mode : <select name="CharacterMapMode"> 75 <option value="popup">popup</option> 76 <option value="panel">panel</option> 77 </select> 78 </div> 60 79 <label> 61 80 <input type="checkbox" name="plugins" value="CharCounter"> CharCounter … … 110 129 </label> 111 130 <label> 112 <input type="checkbox" name="plugins" value="ListType" checked="checked" > ListType131 <input type="checkbox" name="plugins" value="ListType" checked="checked" onchange="toggleOnChange(this);"> ListType 113 132 </label> 133 <div id="ListTypeOptions" class="options"> 134 mode : <select name="ListTypeMode"> 135 <option value="toolbar">toolbar</option> 136 <option value="panel">panel</option> 137 </select> 138 </div> 114 139 <label> 115 140 <input type="checkbox" name="plugins" value="NoteServer"> NoteServer -
trunk/examples/full_example.js
r239 r318 85 85 86 86 } 87 88 if (typeof ListType != 'undefined') 89 { 90 if(window.parent && window.parent != window) 91 { 92 var f = window.parent.menu.document.forms[0]; 93 config.ListType.mode = f.elements['ListTypeMode'].options[f.elements['ListTypeMode'].selectedIndex].value; 94 } 95 } 96 97 if (typeof CharacterMap != 'undefined') 98 { 99 if(window.parent && window.parent != window) 100 { 101 var f = window.parent.menu.document.forms[0]; 102 config.CharacterMap.mode = f.elements['CharacterMapMode'].options[f.elements['CharacterMapMode'].selectedIndex].value; 103 } 104 } 87 105 88 106 return config;
