View RSS Feed

All Blog Entries

  1. Select boxes having javascript in the options

    In non-IE except Google Chrome, we can call functions from inside a select box by putting things like the following in the options:
    <option value="bla" onclick="some_function()"></option>
    <option value="bla" onclick="window.open('http://www.google.com')"></option>
    etc.

    This is not possible in IE and Google Chrome. In an earlier attempt to solve the problem, I created a script based on the idea that ...

    Updated 12-01-2011 at 08:46 AM by molendijk (Corrections in text)

    Categories
    JavaScript & Ajax
  2. Deferred document.write

    While surfing on the Internet I found this page on how to pass data from one page to another. After a while, I realized that the script used on the page actually contains a technique (implicitly) for deferring document.write. Just for the fun of it, I modified the script so as to have some easy ways of dynamically inserting internal and external content into a given div via document.write. Here it is:
    Code:
    <script type="text/javascript">
    function HttpRequest(url){
    var pageRequest
    ...

    Updated 10-31-2011 at 06:05 PM by molendijk (Correction)

    Categories
    JavaScript & Ajax
  3. A better Iframe Shim

    The 'iframe shim technique' lets us overlay a div over windowed elements such as flash objects, select boxes and applets. The trick is to have the div accompanied by an iframe that must have exactly the same size and position as the div, whose z-index must be higher than the iframe's z-index. The windowed element itself must have a lower z-index and the iframe should have a background-color. Here's an example of how to have a div overlay a flash object:

    <iframe style="position: ...

    Updated 10-03-2011 at 09:57 AM by molendijk (Correction in text)

    Categories
    JavaScript & Ajax
  4. Extra Buttons for Ultimate Fade-in slideshow

    The product of many requests as regards Ultimate Fade-in slide show (currently at v2.4, but should work for any Ultimate Fade-in slideshow in the 2.x series) for a button to do this or that, stop or go, pause/play, and individual numbered or thumbnail buttons with or without special effects, with onclick or onmouseover for these individual buttons. This script (right click and 'save as'):

    extrabuttons.js

    can do any or virtually all (some things you wouldn't want to ...

    Updated 10-27-2011 at 04:22 PM by jscheuer1 (add info)

    Categories
    DD Scripts Mods , Post a JavaScript , JavaScript & Ajax
  5. Lightbox Bad, SlimBox Good

    The title overstates the point. Both these scripts in their latest versions are pretty darn good as are many of the other Lightbox type scripts out there (see end for two others or Google Lightbox for more, though not all are as good as those mentioned here, many including the original Lightbox mentioned in the title of this blog entry are).

    Here's the real story -

    Some time ago Dynamic Drive's Lightbox by Lokesh Dhakar was added to the Dynamic Drive official scripts. ...

    Updated 07-08-2014 at 04:50 PM by jscheuer1 (add update for more recent jQuery versions)

    Categories
    DD Scripts Mods , Post a JavaScript , JavaScript & Ajax , Web Design issues
Page 9 of 19 FirstFirst ... 7891011 ... LastLast