View RSS Feed

molendijk

  1. 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 09:19 PM by molendijk (Example added.)

    Categories
    Uncategorized
  2. Loading files into divs having a custom src attribute

    The HTML src attribute supports frame, iframe, img, input and script elements. It does not support the div element. But HTML 5 gives us the "data" attribute that lets us define custom attributes within HTML elements. We can create whatever we want: <div data-brand=..., <div data-mymusic=... etc. So we can also have <div data-src=...

    We can retrieve the value of the "data-" attributes by using getAttribute() and then use the output in all sorts of javascript ...

    Updated 08-16-2014 at 10:33 PM by molendijk

    Categories
    Uncategorized
  3. From frameset to hashchange

    In the old days, many designers used frames within framesets to present documents in multiple views. This allowed them to modify the menu for the whole site by just updating the page in the navigation frame. And visitors could go from one (content) page to another without causing a page (re)load in the navigation frame (or another frame).

    Framesets were abandoned when people started to realize that their benefits didn't outweight their numerous problems and that other ways of updating ...
    Categories
    Uncategorized
  4. Custom alerts

    It is surprisingly easy to create iframes that go on top of windowed elements (Flash, select boxes etc.):
    Code:
    <iframe name="ifr" style="position:relative; z-index:10000; background: white" onload="frames['ifr'].document.body.innerHTML='This is an iframe that overlays windowed elements if the zindex is high enough'"></iframe>
    The onload-part will cause the text to overlay any windowed element if the zindex is high enough (except in Safari). Position: ...

    Updated 08-09-2014 at 03:52 PM by molendijk

    Categories
    Uncategorized
  5. Nicer YouTube Search

    A couple of days ago I discovered http://www.yvoschaap.com/youtube.html on the web. It provides code for searching YouTube videos. I adapted the script to my needs, see http://mesdomaines.nu/youtube_search.

    I prefer my script (http://mesdomaines.nu/youtube_search) to YouTube's https://www.youtube.com/results?search_query=bla for several reasons, among which the cleaner look (no ads and other disturbing info) and the possibility of playing the videos on my own 'search page'.

    Updated 05-11-2014 at 11:48 PM by molendijk

    Categories
    Uncategorized
Page 1 of 7 123 ... LastLast