View RSS Feed

All Blog Entries

  1. BG Carousel Links

    I found a fairly easy way to add optional links to the Dynamic Drive Script:

    Background Image Carousel

    First a demo:

    BG Carousel Links - Demo

    Now, how to:

    Using a text only editor like NotePad, add this highlighted style as shown to the bottom of the on page styles (modified from Step 1 on the demo page):

    Code:
     . . . ctedslide div.desc{ /* CSS for currently selected slide's desc div */
    }
    
    div.slide
    ...

    Updated 07-25-2012 at 12:17 AM by jscheuer1 (attach modified version of script, link to demo, update comments in script)

    Categories
    DD Scripts Mods , Post a JavaScript , JavaScript & Ajax
  2. News from YouTube

    I wanted to post the news some time ago, but I was afraid I was wrong. So I waited.
    It seems, however, to be the truth and nothing but the truth (for the time being): YouTube have removed their ads from all videos except the ones that have http://www.youtube.com/watch?v=ID. (And even there, the ads are gone when we use IE or Firefox).
    So now we can embed YouTube videos - in an iframe or flash object - without resorting to all kinds of malicious means to remove the ads (which does ...

    Updated 07-04-2012 at 10:47 PM by molendijk (Correction)

    Categories
    Flash related
  3. Show plain text in a password field

    I was browsing the internet and came across this tecnique and thought it was rather cool.

    To make plain text show in a password field, you need the following form -

    HTML Code:
     <form>
     <input type="text" name="passwordPlain" id="passwordPlain" value="Password" onfocus="swapPasswordBoxes('click')" style="display:none;"/>
     <input type="password" name="password" id="password"
    ...

    Updated 06-08-2012 at 10:23 PM by keyboard (swapped onclick for onfocus)

    Categories
    Post a JavaScript
  4. 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
  5. Version 5 Events

    In javascript there are basically two types of events that can be assigned to elements and objects. I classify them as version 4 events (those that were available in Netscape 4 and IE 4), and version 5 events, those that became available starting with IE 5 and presumably NS 5, but the earliest I'm aware of them in NS was NS 6 (I don't recall ever seeing a NS 5 browser).

    Version 4 events are still available in today's browsers and are usually the first ones folks learn about, examples: ...

    Updated 04-05-2012 at 05:26 AM by jscheuer1 (add info)

    Categories
    JavaScript & Ajax
Page 6 of 17 FirstFirst ... 4567816 ... LastLast