Thread: A job half done
View Single Post
  #1 (permalink)  
Old Sep 6th, 2007, 14:12
geordief geordief is offline
New Member
Join Date: Sep 2007
Location: LONDON
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
A job half done

I have a friend who has been let down by a web designer with an attitude.He offered to do this for free and has now left her with the job half done.Basically he has uploaded a video to the site but there is another that I want to put
alongside it.I have only worked with html and some javascript till now.Is this within my capabilities and can I do it without buying some expensive program (is it Macromedia?)

Here is the existing code.There sems to be an empty slot for the second video but I wonder what format it needs to be in as when I download the first video it comes down as a ivr file and uploading it back up doesn't work well.I think it may need to be converted to another format but that is hard to do ,I did try to simply upload to Google (and then link to it) but it would not take it

This is the code
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of 
the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. 
The text is then set to the left aligned default in the #container selector */
color: #000000;
}
.oneColLiqCtr #container {
width: 80%; /* this will create a container 80% of the browser 
width */
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) 
center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body 
element. */
}
.oneColLiqCtr #mainContent {
padding: 0 20px; /* remember that padding is the space inside the 
div box and margin is the space outside the div box */
}
-->
</style>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf
("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){ 
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave 
Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 
2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : 
descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 
4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
 
if (flashVer < reqVer){
if (confirm(msg))
window.location = 
"http://www.adobe.com/shockwave/download/download.cgi?
P1_Prod_Version=ShockwaveFlash";
}
}
} 
}
</script>
<script src="Scripts/AC_RunActiveContent.js" 
type="text/javascript"></script>
</head>
<body class="oneColLiqCtr" onload="MM_CheckFlashVersion
('7,0,0,0','Content on this page requires a newer version of Adobe Flash 
Player. Do you want to download it now?');">
<div id="container">
<div id="mainContent">
<h1>Videos</h1>
<p>Video One</p>
<p>
<script type="text/javascript">
AC_FL_RunContent( 
'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swfl
ash.cab#version=7,0,0,0','width','302','height','275','id','FLVPlayer','src','FLV
Player_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Ha
lo_Skin_3&streamName=Web_4&autoPlay=false&autoRewind=fals
e','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','htt
p://www.adobe.com/shockwave/download/download.cgi?
P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); 
//end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-
444553540000" 
codebase="http://download.macromedia.com/pub/s...abs/flash/swfl
ash.cab#version=7,0,0,0" width="302" height="275" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" 
value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamNa
me=Web_4&autoPlay=false&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" 
flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&stream
Name=Web_4&autoPlay=false&autoRewind=false" quality="high" 
scale="noscale" width="302" height="275" name="FLVPlayer" salign="LT" 
type="application/x-shockwave-flash" 
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?
P1_Prod_Version=ShockwaveFlash" /> 
</object></noscript>
</p>
<p>Video Two<br />
</p>
<p>&nbsp;</p>
<h2>&nbsp;</h2>
<!-- end #mainContent --></div>
<!-- end #container --></div>
</body>
</html>
 
 
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) 
center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body 
element. */
}
.oneColLiqCtr #mainContent {
padding: 0 20px; /* remember that padding is the space inside the 
div box and margin is the space outside the div box */
}
-->
</style>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf
("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){ 
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave 
Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 
2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : 
descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 
4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
 
if (flashVer < reqVer){
if (confirm(msg))
window.location = 
"http://www.adobe.com/shockwave/download/download.cgi?
P1_Prod_Version=ShockwaveFlash";
}
}
} 
}
</script>
<script src="Scripts/AC_RunActiveContent.js" 
type="text/javascript"></script>
</head>
<body class="oneColLiqCtr" onload="MM_CheckFlashVersion
('7,0,0,0','Content on this page requires a newer version of Adobe Flash 
Player. Do you want to download it now?');">
<div id="container">
<div id="mainContent">
<h1> Benig Videos</h1>
<p>Video One</p>
<p>
<script type="text/javascript">
AC_FL_RunContent( 
'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swfl
ash.cab#version=7,0,0,0','width','302','height','275','id','FLVPlayer','src','FLV
Player_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Ha
lo_Skin_3&streamName=Benig_Web_4&autoPlay=false&autoRewind=fals
e','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','htt
p://www.adobe.com/shockwave/download/download.cgi?
P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); 
//end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-
444553540000" 
codebase="http://download.macromedia.com/pub/s...abs/flash/swfl
ash.cab#version=7,0,0,0" width="302" height="275" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" 
value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamNa
me=Benig_Web_4&autoPlay=false&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" 
flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&stream
Name=Benig_Web_4&autoPlay=false&autoRewind=false" quality="high" 
scale="noscale" width="302" height="275" name="FLVPlayer" salign="LT" 
type="application/x-shockwave-flash" 
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?
P1_Prod_Version=ShockwaveFlash" /> 
</object></noscript>
</p>
<p>Video Two<br />
</p>
<p>&nbsp;</p>
<h2>&nbsp;</h2>
<!-- end #mainContent --></div>
<!-- end #container --></div>
</body>
</html>

Last edited by karinne; Sep 6th, 2007 at 14:15. Reason: Please use [ code ]...[ /code ] tags when displaying code.
Reply With Quote