Hi all - this script won't validate to XHTML transitional due to the use of the character "<" which the validator thinks is the first character of a delimiter occurring as data.
Does anyone know how to get around this? I tried encrypting but no joy there.
THE SCRIPT
<script language="JavaScript" type="text/javascript">
$f("player", http://MY URL/player.swf", {
clip: {baseUrl: 'http://MY URL/flv', autoPlay: true, autoBuffering: true
}
});
var links = document.getElementById("videos").getElementsByTagName("a");
for (var i = 0; i < links.length; i++) {
links[i].onclick = function() {
$f().play(this.getAttribute("href", 2));
return false;
}
}
</script>
Does anyone know how to get around this? I tried encrypting but no joy there.
THE SCRIPT
<script language="JavaScript" type="text/javascript">
$f("player", http://MY URL/player.swf", {
clip: {baseUrl: 'http://MY URL/flv', autoPlay: true, autoBuffering: true
}
});
var links = document.getElementById("videos").getElementsByTagName("a");
for (var i = 0; i < links.length; i++) {
links[i].onclick = function() {
$f().play(this.getAttribute("href", 2));
return false;
}
}
</script>