File indexing completed on 2024-12-15 04:31:56
0001 <html><head><title>crash.html</title></head> 0002 <script> 0003 var entriecount = 0; 0004 var currentid = -1; 0005 function writeMenu(node, doc) { 0006 if (!node) return; 0007 if (node.nodeName == "video") { 0008 var src = node.getAttribute("src"); 0009 var title = node.getAttribute("title"); 0010 if (!title || title == "") 0011 title = "no title"; 0012 doc.write("<tr><td id='" + entriecount + "'><a href=\"javascript:top.play(" + entriecount + ",'" + src + "')\">" + title + "</a></td></tr>"); 0013 entriecount++; 0014 } 0015 for (var i = 0; i < node.childNodes.length; i++) 0016 writeMenu(node.childNodes.item(i), doc); 0017 } 0018 function loadXML(url) { 0019 try { 0020 var xmldoc = document.implementation.createDocument("", "", null); 0021 xmldoc.async = false; 0022 xmldoc.load(url); 0023 var doc = menuframe.document; 0024 doc.open(); 0025 doc.write("<html><style>\nbody {color:#a0a0a0;background-color:#323232;}\ntd {font-size:9pt;}\na {color:#fffff0;}\n</style><body bgcolor='#323232'><table>"); 0026 entriecount = 0; 0027 writeMenu(xmldoc.firstChild, doc); 0028 doc.write("</table></body></html>"); 0029 doc.close(); 0030 doc = playerframe.document; 0031 doc.open(); 0032 doc.write("<html><body bgcolor='#161616'></body></html>"); 0033 doc.close(); 0034 } catch(ex) { 0035 alert ("Error: " + ex); 0036 } 0037 } 0038 function play(id, url) { 0039 if (currentid > -1) { 0040 var td = menuframe.document.getElementById(currentid); 0041 td.style.backgroundColor = '#323232'; 0042 } 0043 var td = menuframe.document.getElementById(id); 0044 td.style.backgroundColor = '#646464'; 0045 currentid = id; 0046 var doc = playerframe.document; 0047 doc.open(); 0048 doc.write("<html><body bgcolor='#161616'><embed type='video/x-ms-wmv' src='" + url + "' width='100%' height='100%'><script>\nfunction onFinished(){top.finished(" + id + ");}\n<\/script></embed></body></html>"); 0049 doc.close(); 0050 } 0051 function finished(id) { 0052 var td = menuframe.document.getElementById(id); 0053 td.style.backgroundColor = '#323232'; 0054 } 0055 </script> 0056 <frameset cols="200,*" onLoad="loadXML('file:/your-smil.xml')"> 0057 <frame name="menuframe" src="about:blank"> 0058 <frame name="playerframe" src="about:blank"> 0059 </html>