View RSS Feed

All Blog Entries

  1. Prevent users to open a video on the video-providing site (in a new window)

    Inserting these two lines to your include code for video's:

    <param name="allowScriptAccess" value="never">
    <param name="allowNetworking" value="internal">

    prevents flash apps from running scripts or having outbound links.

    This is a very handy method for preventing users to open the video on the video-providing site (in a new window) when they accidentally click on the video screen.
    ...

    Updated 11-19-2009 at 11:50 AM by molendijk

    Categories
    Flash related
  2. Combining Ultimate Fade-in Slideshow 2.1 and Lightwindow 2.0

    I've found that this actually can work. It makes an interesting use of the slide show's undocumented oninit feature, and how well the slide show is written visa vis jQuery's No Conflict mode. I would generally advise using two scripts which work off of the same script library, rather than two different script libraries. However, in this case both scripts are so robust, who can resist?

    That said, all you need to do to set up a demo is to follow the instructions for Ultimate Fade ...

    Updated 09-24-2010 at 09:57 PM by jscheuer1 (Flesh out Links to demo, source scripts)

    Categories
    DD Scripts Mods , JavaScript & Ajax
  3. HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's

    Perhaps many of you already knew this. I didn't.
    HTML 4.01 Strict Video Include:
    Code:
    <!--[if IE]>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="position:absolute;left:20%; top:20%; height:80%;width:80%">
    <![endif]-->
    <!--[if !IE]><!-->
    <object type="application/x-shockwave-flash" style="position:absolute;left:20%; top:20%; height:80%;width:80%" data="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051"
    ...

    Updated 10-02-2009 at 01:29 PM by molendijk (Observation made by jscheuer about title)

    Tags: add, michal Add / Edit Tags
    Categories
    Post a JavaScript , Flash related
  4. YouTube Chromeless Player

    It's not directly obvious from this how we can:
    - start a movie on page load (question asked by some people on different forums);
    - specify the dimensions and position of the movies in percentages;
    - make good use of the ytplayer functions.

    Autoplay: something like
    Code:
    function so_start()
    {
    loadNewVideo('lKq9_kk3Zbc', 20);
    }
    //IE needs some time
    window.onload=setTimeout('so_start()',2000)
    Size of movie in percentages ...

    Updated 08-29-2009 at 01:59 PM by molendijk

    Categories
    Post a JavaScript , Flash related
  5. Using the Select Box as a Navigation Tool

    If we want the select box to function as a genuine menu, then a click on a given option (of the select box) must give us the same range of possibilities as does a click on the items of a normal menu. So a click should allow us to go to a new page, to open a popup window, to produce an alert etc.

    We can achieve this with the help of a function that has the following general form:
    Code:
    var which="";
    function DoSomethingWithOptionvalue(which) {
    var optionValue = document.getElementById(which).options[document.getElementById(which).selectedIndex].value;
    ...

    Updated 08-12-2009 at 12:20 AM by molendijk

    Categories
    Post a JavaScript
Page 12 of 18 FirstFirst ... 21011121314 ... LastLast