G
Guest
I am a newbie to html and unable to decipher why this code works in firefox
and not in IE6:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<script type="text/javascript">
var popup = false;
function loadFlash(url, w, h) {
//url = unescape(url.href);
url = url.href.toString();
url = url.substring(url.indexOf('?')+1);
url = url+'&&'+w+'&&'+h;
if(popup && !popup.closed) popup.close();
popup =
window.open('template3.html?'+url,'','width=880,height=700,resizable=1');
popup.onload = function() {
popup.document.getElementById('content').innerHTML = htm;
}
popup.focus();
return false;
}
</script>
<a onclick="loadFlash(this,480,380); return false"
href="http://www.dailymotion.com/flash/flvplayer.swf?20061026012254&url=
http%3A%2F%2Fchi-v91.chi.youtube.com%2Fget_video%3Fvideo_id%3DDPzMvzWlmzw">
Lost - 2007 Preview Moments 3</a>
<a onclick="loadFlash(this,300,260); return false"
href="http://www.dailymotion.com/flash/flvplayer.swf?20061026012254&url=
http%3A%2F%2Fchi-v119.chi.youtube.com%2Fget_video%3Fvideo_id%3Djf4hnNSaEeM">
Lost - 2007 Preview Moments 1</a>
</html>
, the validator so far shows 5 errors:
Error Line 26 column 203: document type does not allow element "A" here.
....2Fget_video%3Fvideo_id%3DDPzMvzWlmzw">
Error Line 29 column 204: document type does not allow element "A" here.
....2Fget_video%3Fvideo_id%3Djf4hnNSaEeM">
Error Line 34 column 6: "HEAD" not finished but containing element ended.
</html>
Error Line 34 column 6: end tag for "HTML" which is not finished.
</html>
The page is at http://watchanimation.awardspace.com/sample5.html
It is meant to show an animation on clicking any of the two links, it works
in firefox but not in IE, and I have run out of ideas as to why
and not in IE6:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<script type="text/javascript">
var popup = false;
function loadFlash(url, w, h) {
//url = unescape(url.href);
url = url.href.toString();
url = url.substring(url.indexOf('?')+1);
url = url+'&&'+w+'&&'+h;
if(popup && !popup.closed) popup.close();
popup =
window.open('template3.html?'+url,'','width=880,height=700,resizable=1');
popup.onload = function() {
popup.document.getElementById('content').innerHTML = htm;
}
popup.focus();
return false;
}
</script>
<a onclick="loadFlash(this,480,380); return false"
href="http://www.dailymotion.com/flash/flvplayer.swf?20061026012254&url=
http%3A%2F%2Fchi-v91.chi.youtube.com%2Fget_video%3Fvideo_id%3DDPzMvzWlmzw">
Lost - 2007 Preview Moments 3</a>
<a onclick="loadFlash(this,300,260); return false"
href="http://www.dailymotion.com/flash/flvplayer.swf?20061026012254&url=
http%3A%2F%2Fchi-v119.chi.youtube.com%2Fget_video%3Fvideo_id%3Djf4hnNSaEeM">
Lost - 2007 Preview Moments 1</a>
</html>
, the validator so far shows 5 errors:
Error Line 26 column 203: document type does not allow element "A" here.
....2Fget_video%3Fvideo_id%3DDPzMvzWlmzw">
Error Line 29 column 204: document type does not allow element "A" here.
....2Fget_video%3Fvideo_id%3Djf4hnNSaEeM">
Error Line 34 column 6: "HEAD" not finished but containing element ended.
</html>
Error Line 34 column 6: end tag for "HTML" which is not finished.
</html>
The page is at http://watchanimation.awardspace.com/sample5.html
It is meant to show an animation on clicking any of the two links, it works
in firefox but not in IE, and I have run out of ideas as to why