I tried to pull my java script subroutines into a script, and call them from the object/embed sequence on top, but I must be messing up miserably ..... probably not even getting into my scripts. Any ideas how to pull those 2 js subroutines in? Tkx.
<head><style>body{background-image:url("opaq.jpg"); background-repeat: repeat;background-position: left top;}td { text-align: center;}</style></head> <table border="0" style="margin-left: 125px;"><tr> <td height="200"><a href="junk2.html?pic=v1.jpg&vid=vid1.avi"><img tabindex="0" src="v1.jpg"></a></td> <td height="200"><a href="junk2.html?pic=v2.jpg&vid=vid2.avi"><img tabindex="0" src="v2.jpg"></a></td> <td height="200"><a href="junk2.html?pic=v3.jpg&vid=vid3.avi"><img tabindex="0" src="v3.jpg"></a></td></tr><tr> <td colspan="3"> <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="1280" height="740" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"> <param name="custommode" value="none" /> <param name="previewImage" value="Javascript:GetPicName()" /> <param name="autoPlay" value="false" /> <param name="src" value="Javascript:GetVidName()" /><embed type="video/divx" src="Javascript:GetVidName()" custommode="none" width="1280" height="740" autoPlay="false" previewImage="Javascript:GetPicName()" pluginspage="http://go.divx.com/plugin/download/"></embed></object> <script type="text/javascript">function GetPicName(){ // yo bro, this is my command line: // vid.html?pic=(v1.jpg||v2.jpg||v3.jpg)&vid=(vid1.avi||vid2.avi||vid3.avi) // // Skip the 1st character, we are not interested in the "?" var query = location.search.substring(1); // split the rest at each "&" character to give a list of "argname=value" pairs var pairs = query.split ("&"); // break 1st pair at the first "=" to obtain the argname and value var pos0 = pairs [0].indexOf("="); var picname = pairs[0].substring(pos0+1);document.write(picname + "<br>"); return picname; }function GetVidName(){ var pairs = query.split ("&"); var pos1 = pairs [1].indexOf("="); var vidname = pairs[1].substring(pos1+1);document.write(vidname + "<br>"); return vidname;}</script></td></tr></table>