开发者

Javascript event W3C compliant

one questio about this javascript, i want a W3C compliant wersion: but i have no idea. could you help me ? For HTML 4.01 Transitional Doctype

thanks

<script Language = "JScript" for = "Player" event = "OpenStateChange(NewState)">
  switch(NewState)
    {
        // Media object open.
        case 13:
            intervaltime("player")
document.getElementById("temps").innerHTML=pars开发者_Go百科eInt(document.getElementById("Player").currentmedia.duration)
            break;
        default:
            break;
    }
</script>


I would recommend having a gander at this StackExchange post.

Javascript and W3C validity?

I would always recommend not being too obsessive about W3C Compliance, especially when it comes to Javascript. Since you want to use a Transitional doctype as well they are much more loose. I'm not saying don't go for full compliance, just don't lose any sleep over it, if it works in all browsers then excellent, what more do you need!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜