View RSS Feed

Post a JavaScript

Custom, non DD related JavaScripts from other members.

  1. 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
  2. Replacing iframe attributes with javascript (HTML5)

    I was working the other day on a script for setting the height of an iframe to match the height of its content and noticed that under certain circumstances the iframe gets its scroll bars 'back' when it shouldn't. This happens mainly when the iframe is given a very small width. Overflow: hidden solves the problem in Firefox (most of the time), but not in IE. This browsers needs scrolling="no", which also works in non-IE. However, attributes like scrolling="no" and frameborder="no" ...

    Updated 01-12-2012 at 09:36 AM by molendijk (Corrections in text)

    Categories
    Post a JavaScript
  3. 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
  4. 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
  5. HTML 4.01 Strict Video Include & Chopping Parts from YouTube video's

    Perhaps many of you already knew this. I didn't.
    HTML 4.01 Strict Video Include:
    Code:
    <!--[if IE]>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="position:absolute;left:20%; top:20%; height:80%;width:80%">
    <![endif]-->
    <!--[if !IE]><!-->
    <object type="application/x-shockwave-flash" style="position:absolute;left:20%; top:20%; height:80%;width:80%" data="http://swf.tubechop.com/tubechop.swf?vurl=rw1j0NsIIeE&amp;start=164&amp;end=199&amp;cid=28051"
    ...

    Updated 10-02-2009 at 01:29 PM by molendijk (Observation made by jscheuer about title)

    Tags: add, michal Add / Edit Tags
    Categories
    Post a JavaScript , Flash related
Page 2 of 4 FirstFirst 1234 LastLast