Jump to content

dudemike

Members
  • Posts

    3
  • Joined

  • Last visited

dudemike's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. 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>
  2. I wrote a small HTML page to play some videos. I wrote a small java script to fetch my command line paramenters, but am totally lost how to pull them from the java script down into the object/embed code. The code I am enclosing below works. If I move the </script> line below the object/embed line, nothing works. Any ideas? Mike. <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="junk.html?pic=v1.jpg&vid=vid1.avi"><img tabindex="0" src="v1.jpg"></a></td> <td height="200"><a href="junk.html?pic=v2.jpg&vid=vid2.avi"><img tabindex="0" src="v2.jpg"></a></td> <td height="200"><a href="junk.html?pic=v3.jpg&vid=vid3.avi"><img tabindex="0" src="v3.jpg"></a></td></tr><tr> <td colspan="3"><script type="text/javascript"> // 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 pos1 = pairs [1].indexOf("="); var picname = pairs[0].substring(pos0+1); var vidname = pairs[1].substring(pos1+1);document.write("<p>hello world 1</p>"+ "<br>");document.write(picname + "<br>");document.write(vidname + "<br>");document.write("<p>hello world2</p>"+ "<br>");</script><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="v1.jpg" /> <param name="autoPlay" value="false" /> <param name="src" value="vid1.avi" /><embed type="video/divx" src="vid1.avi" custommode="none" width="1280" height="740" autoPlay="false" previewImage="v1.jpg" pluginspage="http://go.divx.com/plugin/download/"></embed></object> </td></tr></table>
  3. I have this code which was auto generated for me by some site builder a few yrs ago:<p class="separator" style="clear: both; text-align: left;"><a style="border: 0pt none ; background-color: transparent; clear: left; margin-bottom: 1em; float: left; margin-right: 1em;" href="photo.jpg/photo-full;init:.jpg" imageanchor="1"><img src="photo.jpg/photo-large.jpg" style="border: 0pt none ;" height="169" width="420"></a><a style="border: 0pt none ; margin-left: 1em; margin-right: 1em; background-color: transparent;" a=""></a></p>I think it will overlay an enlarged version of same pic when clicked on it. I want to do the same, but am not sure what kind of stuff this code is. The href and src statements look really odd to this newbie.Any ideas?
×
×
  • Create New...