- 締切済み
ASP.NETマスターページでのJAVA使用
お世話になります 現在下記にてhtmlで画像表示をランダム表示していますが ASP.NETのマスターページを使用して表示するにはどうしたらいいですか? マスターページはscript可ですが aspxは <body>不可?です 今は再生されないままです <html> <head> <script type="text/javascript"> var movieList = ['01.wmv', '02.wmv', '03.wmv', '04.wmv', '05.wmv', '06.wmv'] ; var currentMovie = 0 ; Array.prototype.shuffle = function() { for (var i = this.length, p; i > 0; --i) { this.push(this[p = Math.floor(Math.random()*i)]) ; this[p] = this[i-1] ; this[i-1] = this.pop() ; } return this ; } onload = function() { movieList.shuffle() ; document.getElementById('WMP').FileName = movieList[0] ; } </script> </head> <body> <embed name="WMP" id="WMP" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="224" height="134" showcontrols="0"></embed> <script for="WMP" type="text/javascript" event="PlayStateChange(lOldState, lNewState)"> if (lOldState == 6 && lNewState == 0) { if (++currentMovie >= movieList.length) currentMovie = 0 ; setTimeout(function() {document.getElementById('wmp').FileName = movieList[currentMovie] ;}, 0) ; } </script> </body> </html>
- みんなの回答 (1)
- 専門家の回答
みんなの回答
- onos
- ベストアンサー率81% (127/155)