Sample 1

  <html>
<head>
<script type="text/javascript">
var xmlhttp;
var Element;
function loadXMLDoc(){
var xmlDoc;
xmlhttp=null;
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
if (xmlDoc!=null){
xmlDoc.async=false;
xmlDoc.load("temp.xml");
var url =xmlDoc.getElementsByTagName("url")[0].childNodes[0].nodeValue;
var html =xmlDoc.getElementsByTagName("html")[0].childNodes[0].nodeValue;
var FlashVideo = GetFlashVideo(url,html);
document.getElementById("result").innerHTML=FlashVideo;
}
}
//================================================================
// The scripts are sort by index (facultative) and must contain the domain name (youtube, metacafe, break etc...)
// Save your new Java Script under ... \My Documents\My Videos\KeepV\index_domain_name.html
// Do not save videos under \My Documents\My Videos\KeepV\ (video temporary folder)
//================================================================


//====================================================================
// Flash file to found -> http://akvideos.metacafe.com/ItemFiles/%5BFrom%20www.metacafe.com%5D%203417334.11690534.11.flv
// http://akvideos.metacafe.com/ItemFiles/%5BFrom%20www.metacafe.com%5D%203429126.11714061.11.flv
// html ->
//reportsBaseURL=http%3A%2F%2Fwinter.metacafe.com&mediaURL=http%3A%2F%2Fakvideos.metacafe.com%2FItemFiles%2F%255BFrom%2520www.metacafe.com%255D%25203429126.11714061.11.flv&postRollContentURL

//=================================================================================
// Write your GetFlashVideo Function here
function GetFlashVideo(url,html)
{
var FlashVideo = html
var FlashVideoFound;
var pos1;
var pos2;

var StrToFind = "&mediaURL=";
var StrToFindEnd = "&postRollContentURL";

pos1 = FlashVideo.indexOf(StrToFind) + StrToFind.length;
pos2 = FlashVideo.indexOf(StrToFindEnd,pos1 +1);
FlashVideoFound = FlashVideo.substring(pos1, pos2);


if(FlashVideoFound != "")
{
FlashVideoFound = decodeURIComponent(FlashVideoFound.replace(/\+/g, " "));
}
else
{
return "";
}
return FlashVideoFound;
}
//Write your GetFlashVideo Function here
//================================================================


</script>

</head>

<body onload="loadXMLDoc()">
<div id="result">
</div>
</body>
</html>

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

Support Festival Museum Nusantara:MMA Pound For Pound: Indonesia Java International Destination: Webthesurfi Rugs Webdesign : Festival Museum Nusantara : NowGoogle.com Adalah Multiple Search Engine Popular : Increase Your Traffic With Klikrar : Festival Museum Nusantara : Webthesurfi Rugs Webdesign