OK, I get the concept. I just can't get
ANY code I've found in the foorums to work.
Period .
And java script is so far out of my depth....
I think the issue is in the local file path. It doesn't matter if I use // or \\ or / or \.
Path is: F:\Documents and Settings\Dad.HOME\My Documents\DVD Profiler\Trailers\
The closest I have come to getting anything to work is the DVD Disk loader plugiin. The best I can manage there is to get the directory to open and show the file. File does not load in a player.
Any help appreciated.Code tried (and only a small sample):
++++++++++++++++++
<html>
<!-- Created on: 8/18/2009 -->
<script language="JavaScript">
last_watch_on = "<DP NAME="LAST_WATCHED_ON">";
if ( last_watch_on.length != 0 ){
document.write("Last watched: " + last_watch_on);
}
</script>
<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="false">
//-->
</SCRIPT>
<SCRIPT language=javascript>
window.onload = window_onload;
function window_onload() {
var i;
myloop: for (i = 0; i < DP_Tags.length; i++) {
switch (DP_Tags[i]) {
case "ztrailer/WMV":
idPlay.href = "F://Documents and Settings//Dad.HOME//My Documents//DVD Profiler//Trailers//" + DP_CollectionNumber + ".wmv";
break myloop;
case "ztrailer/MOV":
idPlay.href ="F:\Documents and Settings\Dad.HOME\My Documents\DVD Profiler\Trailers" + DP_CollectionNumber + ".mov";
break myloop;
case "ztrailer/VOB":
idPlay.href = "F:\Trailers\\" + DP_CollectionNumber + ".vob";
break myloop;
case "ztrailer/mpg":
idPlay.href = "F:\\Trailers\\" + DP_CollectionNumber + ".mpg";
break myloop;
case "ztrailer/flv":
idPlay.href = "//Trailers//" + DP_CollectionNumber + ".flv";
break myloop;
}
}
if (i >= DP_Tags.length) {
// Remove link if there is no trailer tag
idPlay.removeNode(true);
}
}
</SCRIPT>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="Unregistered User">
<meta name="generator" content="AceHTML Freeware">
<DP NAME="LAYERS" Dual="** DUAL LAYER **" Single="">
<BR><BR>
<B><DP NAME="TITLE"></B>
<BR><BR>
<DP NAME="PURCHDATE" Prefix="Added- ">
<BR><BR>
<DP NAME="DISCS" SubDivider=" - " ShowDescriptions="true" Divider="<BR>" ShowSlots="true" ShowLocations="true">
<BR><BR>
<A id=idPlay href="#">Play Trailer</A>
<BR><BR>
</BODY>
</HTML>
+++++++++++++++++++++++++++++++++
Tags made, child tags exist, boxes checked.
<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->
</SCRIPT>
<SCRIPT language=javascript>
window.onload = window_onload;
function window_onload() {
var i;
myloop: for (i = 0; i < DP_Tags.length; i++) {
switch (DP_Tags[i]) {
case "Trailer/wmv":
idPlay.href ="F:\\Documents and Settings\\Dad.HOME\\My Documents\\DVD Profiler\\Trailers\\" + DP_CollectionNumber + ".wmv";
break myloop;
case "Trailer/mov":
idPlay.href = "F://Documents and Settings//Dad.HOME//My Documents//DVD Profiler//Trailers//" + DP_CollectionNumber + ".mov";
break myloop;
case "Trailer/vob":
idPlay.href = "F:\\Documents and Settings\\Dad.HOME\\My Documents\\DVD Profiler\\Trailers\\" + DP_CollectionNumber + ".vob";
break myloop;
}
}
if (i >= DP_Tags.length) {
idPlay.removeNode(true);
}
}
</SCRIPT>
</HEAD>
<BODY>
<A id=idPlay href="#">Play Trailer</A>
</BODY>
</HTML>
++++++++++++++++++++++++++++
<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT>
document.write('<OBJECT id="VIDEO" style="position:absolute; left:0;top:0;" width="640" height="480" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">')
document.write('<PARAM NAME="URL" VALUE="F://Documents and Settings//Dad.HOME//My Documents//DVD Profiler//Trailers//" + DP_CollectionNumber + '.mov"><PARAM NAME="AutoStart" VALUE="False">')
document.write('<PARAM name="uiMode" value="mini"><PARAM name="PlayCount" value="1"></OBJECT>')
</SCRIPT>
</BODY>
</HTML>
+++++++++++
end