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)
I'm amazed at how many people don't use a very simple shortcut for document.getElementById. This is for all the people who don't use a javascript library like jQuery. All you have to do is include this code somewhere on your page Code: function $(element) { return document.getElementById(element); } Then when you want to use document.getElementById('id'); just type $('id'); instead. Example Code: <html> ...
function $(element) { return document.getElementById(element); }
document.getElementById('id');
<html>
Original Script: Simple Controls Gallery v1.3 Changes: This modified version of simplegallery.js hooks up the left and right arrow keys on the keyboard so pressing them moves the gallery back and forth, respectively, in addition to the default navigation methods of course. Usage: Just replace the original .js file with the modified one.
Updated 03-09-2009 at 07:58 PM by ddadmin
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), ...
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),
It's not directly obvious from this how we can: - start a movie on page load (question asked by some people on different forums); - specify the dimensions and position of the movies in percentages; - make good use of the ytplayer functions. Autoplay: something like Code: function so_start() { loadNewVideo('lKq9_kk3Zbc', 20); } //IE needs some time window.onload=setTimeout('so_start()',2000) Size of movie in percentages ...
function so_start() { loadNewVideo('lKq9_kk3Zbc', 20); } //IE needs some time window.onload=setTimeout('so_start()',2000)
Updated 08-29-2009 at 01:59 PM by molendijk