Smile

SMIL Tutorial

SMIL Tutorial for

SMIL Tutorial for XHTML


SMIL PLUS XHTML will function in Internet Explorer only.
If you are having visitors to your site using other browsers
you should consider using JavaScript to redirect to another page.
Or to give a notice about browser types.
Here is an example.

<script language="Javascript"> <!-- document.write("You have: <b>"+navigator.appName+" "+navigator.appVersion+"</b>"); document.write("<br />"); document.write("The SMIL part of this page requires <b>Internet Explorer 5.5 or 6.0 .</b>"); document.write("<br />"); document.write("It may take a while for the slide show to load."); //--> </script>

Insert this JavaScript in the body section of the document where you would like it to appear to the viewer.
A JavaScript to redirect the viewer to another page would appear in the head section rather than the body section of the document.
This would be useful if you had one page with a XHTML Plus SMIl and another with a SMIL presentation using one of the plug in players.
Viewers with Internet Explorer could view the SMIL immediately as well as viewers with another browser that had the specific plug in for viewing SMIl.
Providing you have built another web page using SMIL.
Here is an example below of a "redirect JavaScript".

<script type="text/javascript"> function redirectme() { bname=navigator.appName if (bname.indexOf("Netscape")!=-1) { window.location="http://www.oocities.org/seang64/index.html" return } if (bname.indexOf("Microsoft")!=-1) { window.location="http://www.oocities.org/seang64/fore.html" return } window.location="http://www.oocities.org/seang64/search.html" } </script>

You will have to change the URL's in this example to your own.
The script is activated by an onload event in the body element of the document.
As in this example.

<body onload="redirectme()" value="Redirect">

Next page of the tutorial.

Previous page of the tutorial.

Contents




Lunarpages.com Web Hosting