Multimedia
  Home arrow Multimedia arrow Page 7 - Learning To SMILe
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MULTIMEDIA

Learning To SMILe
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 7
    2002-11-21

    Table of Contents:
  • Learning To SMILe
  • Getting The Tools
  • Anatomy 101
  • Laying It Out
  • Spending Time
  • Playing In Sync
  • A Click In Time...
  • Bedtime Reading

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    PCmover - $15 Off with Coupon Code CJPH7Q

    Learning To SMILe - A Click In Time...
    (Page 7 of 8 )

    SMIL 2.0 also allows you to create clickable hyperlinks using the and tags. Here's an example:

    ... <a href="http://www.some.host/smil/example.smil"> <img id="image" src="image.jpg" region="alpha"/> </a> ...
    The <a> and </a> elements here are similiar to their HTML counterparts, and can be used to launch new SMIL presentations, either within the current window or in a new window. In the example above, clicking the hyperlink would replace the current SMIL presentation with the new one located at the specified URL.

    As with regular HTML, it's also possible to specify a target for the hyperlink – consider the following example, which launches the target of the link in a different region of the current window.

    ... <layout> <root-layout width="800" height="800" backgroundColor="white"> <region id="alpha" left="20" top="20" width="100" height="100" /> <region id="beta" left="150" top="150" width="200" height="200" /> </layout> ... <a href="http://www.some.host/smil/example.smil" target="beta"> <img id="image" src="image.jpg" region="alpha"/> </a> ...
    Additionally, the <area /> element can be used to mark spots on a media clip as clickable hyperlinks, in much the same way as an HTML image map. Consider the following example, which demonstrates:

    ... <img src="logo.jpg" region="img"> <area href="alpha.smil" shape="rect" coords="10,20,40,60" /> <area href="beta.smil" shape="rect" coords="100,120,140,160" /> </img> ...
    Note that the <area> element must appear as a child of the corresponding media type element.

    It's also possible to control the period of time for which a link is active, by specifying appropriate "begin", "end" and "dur" parameters for each hyperlink. Consider the following example,

    ... <img src="logo.jpg" region="img"> <area href="alpha.smil" shape="rect" coords="10,20,40,60" end="11s" /> </img> ...
    where the first link is active for 11 seconds only.

    More Multimedia Articles
    More By icarus, (c) Melonfire


     

       

    MULTIMEDIA ARTICLES

    - Working with Colors in OpenGL for Game Progr...
    - Animation in OpenGL for Game Programming usi...
    - Game Programming with SDL: Getting Started w...
    - Using OpenGL with SDL for Game Programming
    - Learning Sound for Game Programming using SDL
    - Game Programming using SDL: Raw Graphics and...
    - Game Programming using SDL: Getting Started
    - Network Radio With Icecast
    - Learning To SMILe

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway