Advanced Search

View RSS Feed

molendijk

  1. Putting text on top of a video

    In July 2010 an enhancement to the YouTube video embed capability became available through a new embed code style. This style uses <iframe> and looks like this:
    <iframe src="http://www.youtube.com/embed/VIDEO_ID?" frameborder="0"></iframe>


    After VIDEO_ID? we can add the normal parameters, like this:
    <iframe src="http://www.youtube.com/embed/VIDEO_ID?start=0&amp;autoplay=1&amp;rel=0&amp;showinfo=0&amp;autohide=0&amp;modestbranding=1&amp;vq=large"
    ...

    Updated 10-14-2012 at 06:10 PM by molendijk

    Categories
    JavaScript & Ajax , CSS related
  2. [jQuery-append] includes HTML as well as JS

    1.
    Create a string that is the JS-equivant of the DD Anylink standalone menu (or of any standalone menu) with the help of a good HTML-to-JS-converter. Make sure that all JS and CSS are made inline before conversion. Name the string included_js.
    2.
    Create a script like this:
    Code:
    <script>
    var included_js = STRING, where STRING represents the string you just created.
    </script>
    (in the Anylink-case, STRING representsw THIS) and put the script ...

    Updated 08-20-2012 at 12:26 AM by molendijk (Correction)

    Categories
    Post a JavaScript
  3. News from YouTube

    I wanted to post the news some time ago, but I was afraid I was wrong. So I waited.
    It seems, however, to be the truth and nothing but the truth (for the time being): YouTube have removed their ads from all videos except the ones that have http://www.youtube.com/watch?v=ID. (And even there, the ads are gone when we use IE or Firefox).
    So now we can embed YouTube videos - in an iframe or flash object - without resorting to all kinds of malicious means to remove the ads (which does ...

    Updated 07-04-2012 at 10:47 PM by molendijk (Correction)

    Categories
    Flash related
  4. Force a page to open in a new tab

    There's an increasing number of sites that refuse to be opened in a new window. For instance, the following doesn't work (anymore):
    Code:
    <a href="javascript: void(0)" onclick="window.open('http://google.com'">open Google in new (traditional) window</a>
    In those cases, you can use the following to open the sites in a new tab:
    Code:
    <a href="javascript: void(0)" onclick="window.open('','_new').location.href='http://google.com'">open
    ...
    Categories
    Post a JavaScript
  5. Forcing YouTube to play videos in a specific quality

    I was having troubles the other day loading a YouTube-video (using Firefox). The URL:
    http://www.youtube.com/v/W13GifsFFfk?version=3
    (this url may work on your machine, but it doesn't on mine (when I use Firefox)).

    My guess was that the problem was caused by the video's HD-quality. So I googled around to see how we can force YouTube to play videos in a specific quality. I found that we can do it by appending the following to the YouTube-url:
    &amp;vq=small ...
    Categories
    Uncategorized
Page 2 of 6 FirstFirst 1234 ... LastLast