View RSS Feed

All Blog Entries

  1. PHP Stylesheet/Content Switcher with Save Cookie

    Here is a simple PHP script to change stylesheets or load in alternative content (conditional loading), with cookies to store user selection.

    The nice thing about a PHP-based solution over JavaScript content/CSS switchers, is that all the checking and switching is done on the server side, before the web page even finds it's way to the browser, so you don't get any flash of unstyled content. Plus, you can conditionally load HTML or external files (improve performance and save on load ...
  2. Embedding and programmatically controlling multiple YouTube videos

    We can embed and programmatically control multiple YouTube videos by putting onloads like the following in (existing) iframes:
    onload="player1=new YT.Player(this)"
    onload="player2=new YT.Player(this)"

    etc.

    The names for the players (here: player 1 and player2) are arbitrarily chosen. They must be used for selecting the video for which we want to execute javascript (video) code. For instance, player2.playVideo() means that the video associated ...

    Updated 12-07-2014 at 04:15 PM by molendijk

    Categories
    Uncategorized
  3. Multi-Level, Off-Canvass Menu with IE7/8 support

    Hidden side menus, like the ones used in Facebook and Youtube apps, are a space-saving alternative to traditionally visible desktop menus. This post introduces an upgrade to the earlier CSS-only off-canvass menu, that makes it possible for IE7/8 users to enjoy this menu too.

    All the features are the same as the CSS-only version - the difference here is that JavaScript makes it compatible with earlier versions of Internet Explorer (IE7/8).

    Demo - CSS3 Multi-Level, Off-Canvass ...

    Updated 10-29-2014 at 02:09 PM by Beverleyh

    Categories
    JavaScript & Ajax , CSS related , Web Design issues
  4. Creating a rt-editor without installing software. Adding php for saving the edits.

    It's not easy to find a good rich text editor on the internet that:
    1. explains in comprehensive terms how to save the edits online, that is, how to send them to the server (or that at least uses clear instructions on how to do it);
    2. does not require that software be installed on your hard disc.

    So I created my own personal file explaining (to myself) how to achieve 1 and 2 above. Some of you may be interested in it, so here's the result. You can find all the explanations ...

    Updated 10-20-2014 at 10:19 PM by molendijk (typo)

    Categories
    Uncategorized
  5. CleanYouTube

    Some time ago I explained on my blog how we can play youtube-videos without the clutter through our own domain (well, sort of), see this. Some people who are using the script have told me that it works well, but that its usage is a bit cumbersome.

    So I decided to create a new script that is supposed to be more user-friendly. It has two parts, which are interlinked:
    (i) a part displaying a page where the user can directly type a cleanyoutube-URL into the address bar (url: http://mesdomaines.nu/cleanyoutube); ...

    Updated 10-15-2014 at 10:19 PM by molendijk (Example added.)

    Categories
    Uncategorized
Page 1 of 19 12311 ... LastLast