<html>
<head>
<script src="test2.js"></script>
<script type="text/javascript">
/*
function querySt(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i = 0; i < gy.length; i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];
}
}
}
function doSomething() {
var test = new StringBuilderEx();
var a = querySt("number");
test.append("test");
test.append("<a ");
test.append("href="test.flv" ");
test.append("Style ="display:block;width:425px
height:300px;" ");
test.append("id="player" ");
test.append("test</a> ");
test.append("<script language="JavaScript" ");
test.append("> ");
test.append("flowplayer("player" ");
test.append(", "flowplayer-3.2.2.swf" ");
test.append("); </script>");
return test.toString();
}
</script>
<script src="flowplayer-3.2.2.min.js"></script>
<title>test</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
<style type="text/css" media="screen">
body { background-color: #003d81; margin: 1pc; text-align: center; font-family: Arial, sans-serif; color: Olive; }
h1 { text-transform: uppercase; font-size: 2pc; }
h2 { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 2.7pc; font-weight: bold; letter-spacing: -0.2pc; cursor: default; border-bottom: 1px white dotted; }
h3, h3 b { font-size: 0.7pc; text-align: justify; font-weight: normal; }
#encase { width: 600px; border: 2px #0054b5 groove; padding: 0.5pc; margin-left: auto; margin-right: auto; }
#encase p { font-size: 0.7pc; text-align: justify; }
#b_enter a { padding: 0px 28px 2px 28px; color: white; background-color: #71a230; border: 1px white solid; font-family: "Trebuchet MS", Arial, sans-serif; text-decoration: none; font-size: 2pc; font-weight: bold; margin-right: 1pc; }
#b_enter a:hover { background-color: white; color: #71a230; border: 1px #71a230 solid; }
#b_exit a { padding: 0px 40px 2px 39px; color: white; background-color: #9d1111; border: 1px white solid; font-family: "Trebuchet MS", Arial, sans-serif; text-decoration: none; font-size: 2pc; font-weight: bold; }
#b_exit a:hover { background-color: white; color: #9d1111; border: 1px #9d1111 solid; }
#footer p { font-size: 0.8pc; text-align: center; color: #2976CF; }
#footer a { margin-right: 1pc; color: #2976cf; }
#footer a:hover { color: Olive; }
#title_4 { background-color: #2976cf; margin-right: 1pc; padding: 0.2pc; font-weight: bold; }
p#tour_link {text-align: center;margin-top: 20px;}
#tour_link a {color: #bbf;text-decoration:none;margin-top:10px;}
</style>
</head>
<body>
<script type="text/javascript">
/*
document.write(doSomething());
</script>
</body>
</html>
Note the test2.js is
/*
// Assign our class to Array class
var StringBuilderEx = Array;
// Using prototype I link function append to push
Array.prototype.append=Array.prototype.push;
// Used to convert arguments in array
Array.prototype._convertToArray=function(arguments)
{
if (!arguments)
return new Array();
if (arguments.toArray)
return arguments.toArray();
var len = arguments.length
var results = new Array(len);
while (len--)
{
results[len] = arguments[len];
}
return results;
};
// First solution using regular expression
Array.prototype.appendFormat=function(pattern)
{
var args = this._convertToArray(arguments).slice(1);
this[this.length]=pattern.replace(/{(d+)}/g,
function(pattern, index)
{
return args[index].toString();
});
};
// Second solution using split and join
Array.prototype.appendFormatEx=function(pattern)
{
if (this._parameters==null)
this._parameters = new Array();
var args = this._convertToArray(arguments).slice(1);
for (var t=0,len=args.length;t<len;t++)
{
this._parameters[this._parameters.length]=args[t];
}
this[this.length]=pattern;
};
// Concatenate the strings using join
// (some lines of code are relay with second solution)
Array.prototype.toString=function()
{
var hasParameters = this._parameters!=null;
hasParameters = hasParameters && this._parameters.length>0;
if (hasParameters)
{
var values = this.join("").split('?');
var tempBuffer = new Array();
for (var t=0,len=values.length;t<len;t++)
{
tempBuffer[tempBuffer.length]=values[t];
tempBuffer[tempBuffer.length]=this._parameters[t];
}
return tempBuffer.join("");
}
else
{
return this.join("");
}
};
My question is : Why is the player not starting, i switched it from asp.net to html, javascript and it doesnt seem to work.
I have the link video with the link on the bottom of the page but the video never start.
:(