Advanced Search

View RSS Feed

Most Popular Blogs

  1. 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
  2. DOM manipulation code

    Here's some of my personal DOM manipulation code:

    Code:
    Object.extend = function(o1, o2) {
      for (var x in o2)
        if (o2.hasOwnProperty(x))
          o1[x] = o2[x];
    
      return o1;
    };
    
    Object.extend(Object, {
      copy: function(o) {
        return Object.extend({}, o);
      },
    
      fromArray: function(o) {
        var r = {};
    
        Array.map(function(pair) { r[pair[0]] = pair[1]; }, a);
    ...

    Updated 04-06-2009 at 12:47 AM by Twey

    Tags: sssss Add / Edit Tags
    Categories
    Post a JavaScript , JavaScript & Ajax
  3. Randomizing Fading Scroller

    The script does not have a randomizing option on the scroller, and due to a recent thread I made. (http://www.dynamicdrive.com/forums/s...70&postcount=2).

    Your new code should look like this:
    Code:
    <script type="text/javascript">
    
    /***********************************************
    * Fading Scroller-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit
    ...
    Categories
    Uncategorized
  4. (Beginners) Easy ways to speed up your web pages

    This week I was asked to look at and offer opinions on a student's website project.

    Now, its been a while since I was in student-shoes but it brought back memories of the mistakes that I made myself back when I was first learning how to make websites so I thought I'd create my first blog about the easy mistakes and easy fixes that can really help improve loading times.

    My first observation is with the common development path that a lots of new-starters take when making ...

    Updated 04-16-2011 at 09:30 AM by Beverleyh (completing what I started)

    Categories
    Uncategorized
  5. Generics in Javascript

    I just used this code to vent some frustration earlier, hope you all like it. It's pretty self-explanatory. It's probably too theoretical to go into the DD script archives, so I'll just leave it lying about here.

    Code:
    var Generic = (function() {
      var MATCH_FAIL = {},
          MATCH_ANY  = function() { return MATCH_ANY; };
    
      function create(fallback) {
        var s = function() {
          for (var i = 0, args = Array.prototype.slice.call(arguments),
    ...
Page 2 of 4 FirstFirst 1234 LastLast