Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Orchard 1.6.1
  • Tine 2.0 Kristina 2013....
  • Acorn Media Player 1.8
  • ZenPen
  • Google Language Transla...
  • tTooltip 2.0
  • Obfuscate.js
  • validationJ 1.0.0
  • Starling 1.3
  • Video Sidebar Widgets 5.5
  • Home > Scripts > Development Tools > API Handlers

    lyte.js

    Download button

    Downloads: 140  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Frank Goossens | More scripts
    blog.futtta.be
    Other Free / Open Source License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    JavaScript
    February 17th, 2011, 19:27 GMT
    C: \ Development Tools \ API Handlers

     Read user reviews (0)  Refer to a friend  Subscribe

    lyte.js description

    This JavaScript library allows for an super lightweight way of embedding YouTube videos

    [COPYRIHT=1]

    This takes a lot of time and bandwidth.

    To eliminate this inconveniences, this library embeds a screenshot of the YouTube clip, overlays the title and a play button.

    If the play button is pushed, the normal embed Flash code is retrieved and the video played back to the user with the normal version.

    By retrieving just an image, the library speeds up page load time and reduces bandwidth.

    Usage:


    <div class="lyte" id="YouTube_Video_ID" style="width:480;height:385;"><noscript><a href="http://youtu.be/YouTube_Video_ID">Watch on YouTube</a></noscript>
    <script>(function(){d=document;if(!document.getElementById('lytescr')){lyte=d.createElement('script');lyte.async=true;lyte.id="lytescr";lyte.src="
    lyte.js_location";d.getElementsByTagName('head')[0].appendChild(lyte)}})();</script></div>


    Requirements:

    · JavaScript enabled on client side



    TAGS:

    video embedding | Youtube video | watch movie | video | embed | YouTube

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM