View RSS Feed

All Blog Entries

  1. CSS selector wish list

    With CSS3, we have gotten many new pseudo selectors that give us a great deal of options. However, the short list of combinator selectors has only been increased from 3 to 4:
    Code:
    foo bar
    foo>bar
    foo+bar
    foo~bar
    The first combinator is the most used selector and selects any element bar that is a descendant of foo. The second combinator selects any element bar that is a child (direct descendant) of foo. The third combinator selects any element bar that is an adjacent ...
  2. Get Style

    Sometimes we want to get the style of something. But, since it wasn't set inline or via javascript, or perhaps was set in a stylesheet using the:

    Code:
    !important
    keyword that overrides inline and javascript assignments, we cannot access it. Here is a fairly robust script that will allow us to do so in many cases:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    ...

    Updated 03-05-2010 at 01:52 AM by jscheuer1 (precision in explanations)

    Categories
    JavaScript & Ajax
  3. 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
  4. Prevent users to open a video on the video-providing site (in a new window)

    Inserting these two lines to your include code for video's:

    <param name="allowScriptAccess" value="never">
    <param name="allowNetworking" value="internal">

    prevents flash apps from running scripts or having outbound links.

    This is a very handy method for preventing users to open the video on the video-providing site (in a new window) when they accidentally click on the video screen.
    ...

    Updated 11-19-2009 at 11:50 AM by molendijk

    Categories
    Flash related
  5. Combining Ultimate Fade-in Slideshow 2.1 and Lightwindow 2.0

    I've found that this actually can work. It makes an interesting use of the slide show's undocumented oninit feature, and how well the slide show is written visa vis jQuery's No Conflict mode. I would generally advise using two scripts which work off of the same script library, rather than two different script libraries. However, in this case both scripts are so robust, who can resist?

    That said, all you need to do to set up a demo is to follow the instructions for Ultimate Fade ...

    Updated 09-24-2010 at 09:57 PM by jscheuer1 (Flesh out Links to demo, source scripts)

    Categories
    DD Scripts Mods , JavaScript & Ajax
Page 12 of 19 FirstFirst ... 21011121314 ... LastLast