Just nu i M3-nätverket
Gå till innehåll

SMIL


Ann Nilsson

Rekommendera Poster

Hej

Försöker enträget skapa en ganska enkel Smil fil ,

men hur jag gör, får jag den inte att fungera.

Vad är fel?

 

[log]<smil><html xmlns:t="urn:schemas-microsoft-com:time">

<head>

<style>

.time {behavior: url(#default#TIME2);}

</style>

<?import namespace="t" implementation="#default#time2">

<title>Wonders of Nature</title>

 

<meta name="title" content="Nature Wonders"/>

<meta name="author" content="Ann Gerfast"/>

 

<layout>

<rootlayout background-color="#66CCFF" width="640" height="480"/>

 

</layout>

 

</head>

<body>

 

<audio id="a" src="musik.mp3" dur="90" repeat="2" />

 

<t:transitionfilter targetelement="1" type="pushWipe" begin="1.begin" dur="2" />

<t:transitionfilter targetelement="1" type="fade" begin="1.end-1" dur="1" mode="out" />

 

<t:transitionfilter targetelement="2" type="slidewipe" begin="2.begin" dur="2" />

<t:transitionfilter targetelement="2" type="fade" begin="2.end-1" dur="1" mode="out" />

 

<t:transitionfilter targetelement="3" type="spiralWipe" begin="3.begin" dur="2" />

<t:transitionfilter targetelement="3" type="fade" begin="3.end-1" dur="1" mode="out" />

 

<t:transitionfilter targetelement="4" type="fanWipe" begin="4.begin" dur="2" />

<t:transitionfilter targetelement="4" type="fade" begin="4.end-1" dur="1" mode="out" />

 

<t:transitionfilter targetelement="5" type="starWipe" begin="5.begin" dur="2" />

<t:transitionfilter targetelement="5" type="fade" begin="5.end-1" dur="1" mode="out" />

 

<t:transitionfilter targetelement="6" type="snakeWipe" begin="6.begin" dur="2" />

<t:transitionfilter targetelement="6" type="fade" begin="6.end-1" dur="1" mode="out" />

 

<t:seq repeatCount="indefinite">

 

<t:par>

<img id="1" class="time" begin="0" dur="15" timeAction="display" src="01.jpg" width="597" height="457" />

<div class="time" begin="1.begin+2" dur="10" timeAction="display">Take care of the shimmering moments</div>

</t:par>

 

<t:par>

<img id="2" class="time" dur="15" timeAction="display" src="02.jpg" width="597" height="457" />

<div class="time" begin="2.begin+2" dur="10" timeAction="display">and the Golden highlights</div>

</t:par>

 

<t:par>

<img id="3" class="time" dur="15" timeAction="display" src="03.jpg" width="597" height="457" />

<div class="time" begin="3.begin+2" dur="10" timeAction="display">and all the animals of our planet</div>

</t:par>

 

<t:par>

<img id="4" class="time" dur="15" timeAction="display" src="04.jpg" width="597" height="457" />

<div class="time" begin="4.begin+2" dur="10" timeAction="display">be grateful for the differences of weather</div>

</t:par>

 

<t:par>

<img id="5" class="time" dur="15" timeAction="display" src="05.jpg" width="597" height="457" />

<div class="time" begin="5.begin+2" dur="10" timeAction="display">or maybe we all be out of space</div>

</t:par>

 

<t:par>

<img id="6" class="time" dur="15" timeAction="display" src="06.jpg" width="597" height="457" />

<div class="time" begin="6.begin+2" dur="10" timeAction="display">and we can say goodbay to the earth</div>

</t:par>

 

 

</t:seq>

 

</body>

</html>

</smil>[/log]

LOG-taggar tillagda av moderator

 

 

[inlägget ändrat 2007-04-02 23:22:39 av Cluster]

Länk till kommentar
Dela på andra webbplatser

Några felmeddelanden?

Har du provat att sätta till s i alla dur="x"?

Ex:

dur="10s"

 

Det ska vara: <t:audio ...

Och sen får du döpa om din css-class till t:

<style>

.t {behavior: url(#default#TIME2);}

</style>

 

och prova att lägga den efter:

<?import namespace="t" implementation="#default#time2">

 

Vad händer nu?

 

[inlägget ändrat 2006-12-04 09:43:47 av Micke_skane]

Länk till kommentar
Dela på andra webbplatser

Hej

Tack för du tog dig tid.

 

Jag har provat på flera olika sätt att få detta att fungera.

Både utan att använda namespace och att skriva ms i stället för s.

Nu var jag slarvig och glömde s.

 

Men jag har gjort de ändringar du föreslog

dessutom lade jag till s i "end" .

och ändrade "class" = till "t" istället för "time".

 

Nu får jag följande felmeddelande.

\SMIL\Wonders1.smil, line 4, column 0: Parse error: unclosed token

\SMIL\Wonders1.smil: Error parsing document

 

 

 

 

 

Länk till kommentar
Dela på andra webbplatser

Vilken är rad 4?

 

Prova att ta bort ; samt ändra till enbart gemener i:

{behavior: url(#default#TIME2);}

så att det ser ut så här:

{behavior: url(#default#time2)}

Du får gärna visa din kod igen men lägg den då inom LOG-taggarna så tar det inte så stor plats.

 

[inlägget ändrat 2006-12-05 09:19:19 av Micke_skane]

Länk till kommentar
Dela på andra webbplatser

Hej

Så här ser felmeddelandet ut, fortfarande;

SMIL\Wonders1.smil, line 4, column 0: Parse error: unclosed token

SMIL\Wonders1.smil: Error parsing document

 

 

Så här ser filen ut nu;

[log]<smil><html xmlns:t="urn:schemas-microsoft-com:time">

<head>

 

<?import namespace="t" implementation="#default#time2">

<style>

.t {behavior: url(#default#time2);}

</style>

 

<title>Wonders of Nature</title>

 

<meta name="title" content="Nature Wonders"/>

<meta name="author" content="Ann Gerfast"/>

 

<layout>

<rootlayout background-color="#66CCFF" width="640" height="480"/>

 

</layout>

 

</head>

<body>

 

<t:audio id="a" src="musik.mp3" dur="90" repeat="2" />

 

<t:transitionfilter targetelement="1" type="pushWipe" begin="1.begin" dur="2s" />

<t:transitionfilter targetelement="1" type="fade" begin="1.end-1s" dur="1" mode="out" />

 

<t:transitionfilter targetelement="2" type="slidewipe" begin="2.begin" dur="2s" />

<t:transitionfilter targetelement="2" type="fade" begin="2.end-1s" dur="1s" mode="out" />

 

<t:transitionfilter targetelement="3" type="spiralWipe" begin="3.begin" dur="2" />

<t:transitionfilter targetelement="3" type="fade" begin="3.end-1s" dur="1s" mode="out" />

 

<t:transitionfilter targetelement="4" type="fanWipe" begin="4.begin" dur="2s" />

<t:transitionfilter targetelement="4" type="fade" begin="4.end-1s" dur="1s" mode="out" />

 

<t:transitionfilter targetelement="5" type="starWipe" begin="5.begin" dur="2s" />

<t:transitionfilter targetelement="5" type="fade" begin="5.end-1s" dur="1s" mode="out" />

 

<t:transitionfilter targetelement="6" type="snakeWipe" begin="6.begin" dur="2s" />

<t:transitionfilter targetelement="6" type="fade" begin="6.end-1s" dur="1s" mode="out" />

 

<t:seq repeatCount="indefinite">

 

<t:par>

<img id="1" class="t" begin="0" dur="15s" timeAction="display" src="01.jpg" width="597" height="457" />

<div class="time" begin="1.begin+2" dur="10s" timeAction="display">Take care of the shimmering moments</div>

</t:par>

 

<t:par>

<img id="2" class="t" dur="15s" timeAction="display" src="02.jpg" width="597" height="457" />

<div class="t" begin="2.begin+2" dur="10s" timeAction="display">and the Golden highlights</div>

</t:par>

 

<t:par>

<img id="3" class="t" dur="15s" timeAction="display" src="03.jpg" width="597" height="457" />

<div class="t" begin="3.begin+2" dur="10" timeAction="display">and all the animals of our planet</div>

</t:par>

 

<t:par>

<img id="4" class="t" dur="15s" timeAction="display" src="04.jpg" width="597" height="457" />

<div class="t" begin="4.begin+2" dur="10s" timeAction="display">be grateful for the differences of weather</div>

</t:par>

 

<t:par>

<img id="5" class="t" dur="15s" timeAction="display" src="05.jpg" width="597" height="457" />

<div class="t" begin="5.begin+2" dur="10s" timeAction="display">or maybe we all be out of space</div>

</t:par>

 

<t:par>

<img id="6" class="t" dur="15s" timeAction="display" src="06.jpg" width="597" height="457" />

<div class="t" begin="6.begin+2" dur="10s" timeAction="display">and we can say goodbay to the earth</div>

</t:par>

 

 

</t:seq>

 

</body>

</html>

</smil>

[/log]

 

Länk till kommentar
Dela på andra webbplatser

Arkiverat

Det här ämnet är nu arkiverat och är stängt för ytterligare svar.

×
×
  • Skapa nytt...