View RSS Feed

molendijk

  1. A better Iframe Shim

    The 'iframe shim technique' lets us overlay a div over windowed elements such as flash objects, select boxes and applets. The trick is to have the div accompanied by an iframe that must have exactly the same size and position as the div, whose z-index must be higher than the iframe's z-index. The windowed element itself must have a lower z-index and the iframe should have a background-color. Here's an example of how to have a div overlay a flash object:

    <iframe style="position: ...

    Updated 10-03-2011 at 10:57 AM by molendijk (Correction in text)

    Categories
    JavaScript & Ajax
  2. Broadcast your YouTube-playlists

    People using YouTube-playlists do so on their YouTube-channels, most of the time. But we don't need YouTube to broadcast our YouTube-playlists. We only need YouTube to create them and to determine our playlist-number(s). If you want to broadcast your playlists outside any channel, do the following.

    Go to http://www.youtube.com/my_videos. (You have to create a YouTube account if you are 'new').
    Create a playlist and add videos to it by clicking on 'add videos', or simply add ...

    Updated 07-19-2011 at 08:55 PM by molendijk

    Categories
    Uncategorized
  3. A Strange Menu-Include

    I was playing around with some code recently and discovered - more or less by accident - that we can include any fully functioning standalone menu by doing the following. The scripts and styles belonging to the external file will be preserved after inclusion:
    1. We put this script just before the closing body-tag of the external file:
    Code:
    <script type="text/javascript">
    try{top.document.getElementById('container_div').innerHTML=document.documentElement.innerHTML}
    ...
    Categories
    JavaScript & Ajax
  4. The YouTube version3 player

    The player used on http://www.youtube.com/watch?v=VIDEO_ID is YouTube's version3 player. If you want to use it directly (without the watch?v= part) you can do, for instance: http://www.youtube.com/v/EUSsXdhxFIM?version=3. (You may have to press CTRL if you want this to work in IE).

    The advantage of the version3-player over other versions is that a click on a playing video doesn't open a new YouTube window containing all sorts of information that you may not be interested in. The click ...

    Updated 11-29-2010 at 02:57 PM by molendijk

    Categories
    JavaScript & Ajax
  5. Stretching an iframe or an object with pixel precision

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    <title></title>
    ...

    Updated 06-17-2010 at 10:45 PM by molendijk

    Categories
    CSS related
Page 5 of 7 FirstFirst ... 34567 LastLast