Advanced Search

View RSS Feed

molendijk

  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. 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
  3. 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
  4. 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
  5. Document.write issues

    The Ajax Includes Script given at http://www.dynamicdrive.com/dynamici...axincludes.htm uses document.write for including external content. Advantage: you don't have to explicitly bring the js belonging to the external file(s) to the main page. But beware the results in certain cases! In IE, (external) scripts added to the page using document.write are not run until after the document.write that adds them has finished. Non-IE browsers will run them straight away. So
    Code:
    <script type="text/javascript">
    ...

    Updated 05-16-2009 at 11:55 PM by molendijk (Forgot to mention category)

    Categories
    JavaScript & Ajax
Page 5 of 6 FirstFirst ... 3456 LastLast