Código:
<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="320" height="212" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"> <embed id="np_plugin" type="video/divx" width="320" height="212" pluginspage="http://go.divx.com/plugin/download/"> </embed> </object> <script type="text/javascript"> // // This code detects which browser we are // running into (IE or others) and assigns // the correct element (object or embed) to // the "plugin" variable, that we will use. // var plugin; if(navigator.userAgent.indexOf('MSIE') != -1) { plugin = document.getElementById('ie_plugin'); } else { plugin = document.getElementById('np_plugin'); } // // This is a local JS function used by our form // element to call the plugin functions using // the "plugin" variable that we defined above // function openNewMovie() { var url = document.forms['videoSelector'].movie.value; if(url != '') { plugin.Open(url); } } </script>
Código:
Ya he intentado modificar en opcion value y poner la direccion de mi carpeta pero no funciona.<form name="videoSelector"> Choose a video to play: <select name="movie" onChange="javascript:openNewMovie();"> <option value="" selected> <option value="http://trailers.divx.com/Columnbia/ThePinkPanther.avi">Video 1 <option value="http://trailers.divx.com/Sony/UnderworldEvolution.avi">Video 2 <option value="http://trailers.divx.com/Columnbia/DavinciCode.avi">Video 3 </select> </form>
Les Agradeceria su ayuda .Un saludo