Advanced Search

View RSS Feed

molendijk

  1. 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
  2. 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 01:57 PM by molendijk

    Categories
    JavaScript & Ajax
  3. 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 09:45 PM by molendijk

    Categories
    CSS related
  4. A plugin for the JW Player

    A plugin that allows us to (i) create a customized playlist for chromeless YouTube-videos (using the JW player), (ii) place info about each video at the top of it and (iii) chop the video's - which makes it possible to create new YouTube-video's out of existing ones.

    Demo and explanations here.
    ===
    Arie Molendijk.

    Updated 05-09-2010 at 10:52 AM by molendijk (Added blog category)

    Categories
    Flash related
  5. Some Remarks about Ajax-includes using document.write

    Some Remarks about Ajax-includes using document.write

    I. Why document.write?
    Including external content with the help of document.write brings in external html AND external code (js, css). This is a clear advantage of document.write over other inclusion-methods, like innerHTML (does not execute scripts) and appendChild (does not automatically import all the external js and/or css when IE, Chrome or Opera are used). To see this, create a file external.html with some js in it, ...

    Updated 02-27-2010 at 06:32 PM by molendijk

    Categories
    JavaScript & Ajax
Page 4 of 6 FirstFirst ... 23456 LastLast