Xhtml幻灯片无法正常工作

时间:2017-05-13 11:29:13

标签: javascript css xhtml

<html xmlns:t ="urn:schemas-microsoft-com:time">
<head>
<style>
.time
{
behavior: url(#default#time2);}
.text
{
font-family: "Times New Roman", Times, serif;
font-size: 14px;
color: #003366;}
.palat {
FONT-SIZE: 14pt; LEFT: 80px; COLOR: green; POSITION: absolute; TOP: 250px}
.teatru {
FONT-WEIGHT: bold; FONT-SIZE: 16pt; LEFT: 80px; WIDTH: 20px; COLOR: white; POSITION: absolute; TOP: 180px; WRITING-MODE: tb-rl}
.uaic {
FONT-WEIGHT: bold; FONT-SIZE: 24pt; LEFT: 80px; COLOR: white; POSITION: absolute; TOP: 300px}
</style>
<?import namespace="t" implementation="#default#time2">
<title>XHTML+TIME</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<SCRIPT>
function modifica()
{ 
if(!secv.currTimeState.isActive)
{ secv.beginElement() }
 if(Math.round(cronom.value)!=Math.round(secv.currTimeState.segmentTime))
{ secv.seekSegmentTime(cronom.value) }
}
</SCRIPT>
<body>
<h1 align="center" class="text">SLIDE-SHOW
</h1>
<div align="center">
<BUTTON onclick=modifica()>Incepe slide-show</BUTTON>
<div style="MARGIN-TOP: 10px; BACKGROUND: white; WIDTH: 200px; HEIGHT: 200px">
<t:seq id=secv begin = "indefinite" dur = "12" repeatCount = "1">
<t:par dur = "3" timeAction = "display">
<!--<SPAN class="time palat">Palatul culturii din Iasi
<t:animate attributeName = "fontSize" from = "14px" to = "24pt" dur = "3" fill = "hold">
</t:animate>
</SPAN>-->
<t:img src ="p1.JPG"></t:img>
</t:par>
<t:par dur = "3" timeAction = "display">
<!--<SPAN class="time teatru">Teatrul National "Vasile Alecsandri"
<t:animate attributeName = "left" from = "80px" to = "800px" dur = "3" fill = "hold">
</t:animate>
</SPAN>-->
<t:img src = "p2.JPG"></t:img>
</t:par>
<t:par dur = "3" timeAction = "display">
<!--<SPAN class="time uaic">Universitatea "Al. I. Cuza"
<t:animatecolor attributeName = "color" from = "white" to = "gold" begin = "1" dur = "3" fill = "hold">
</t:animatecolor>
</SPAN>-->
<t:img src = "p3.JPG"></t:img>
</t:par>
<t:par dur = "3" timeAction = "display">
<t:img src = "p4.JPG"></t:img>
</t:par>
</t:seq>
</div>
</div>
</body>
</html>

我试图让这段代码正常工作,但是按下按钮什么都不做,我看不出代码有什么问题。我试过改变图片,但没有改变。

1 个答案:

答案 0 :(得分:1)

那不是XHTML。它是&#34;像XHTML这样的东西,它缺少它的命名空间声明&#34; +&#34;时间&#34;。

请参阅this documentation

  

本主题介绍了HTML + TIME 2.0的一项功能,该功能在Windows Internet Explorer 9中已过时。

您使用的是一种过时的工具,除了Internet Explorer之外,它从未受到任何支持。

你需要找到一种完全不同的方法。