Advanced Search

View RSS Feed

ddadmin

  1. Updating Menu scripts for iPad/iPhone and Android devices

    Mobile devices such as the iPad, iPhone or Android tablets are pretty on par with modern desktop browsers when it comes to rendering JavaScript, though that's not to say they do so without hiccups. One of the more crippling limitations is mobile devices' lack of support for the onmouseover/out events of JavaScript, which if you think about is more of a fundamental "shortcoming" of touch based devices in general rather than a deliberate act of omission. Regardless, this lack of support ...

    Updated 07-18-2011 at 06:35 AM by ddadmin

    Categories
    DD Scripts Mods
  2. "Drop Up" option for Anylink and Anylink CSS Menu

    Quite a few members have asked for the ability to have a menu drop upwards (instead of the default downwards) for either Anylink Menu and Anylink CSS Menu. With that said, use the below attached modified versions of the respective .js files for the two scripts to achieve this. Then, inside the HTML markup for the anchor link of a menu, to get the menu to drop up for it, make use of the data-dir attribute:

    Code:
    <p><a href="http://www.dynamicdrive.com" class="menuanchorclass"
    ...
    Categories
    DD Scripts Mods
    Attached Thumbnails Attached Files
  3. All Levels Menu- top headers revealed onClick instead of onMouseover

    Original Script: All Levels Navigational Menu v2.2

    Changes: This modified version of ddlevelsmenu.js causes the top level sub menus to be revealed onClick of the primary headers (instead of the default onMouseover). The remaining sub levels are still revealed onMouseover like before.

    Usage: Just replace the original .js file with the modified one.
    Categories
    DD Scripts Mods
    Attached Thumbnails Attached Files
  4. Dynamically minimizing a DHTML Window

    Original Script: DHTML Window

    By default the DHTML Window script can only be minimized by clicking on the "minimize" icon located on the upper right of the opened window. Someone asked on the forums if there's a way to do this dynamically, such as via a link instead. Well, certainly. Given the below example DHTML Window:

    Code:
    var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site",
    ...
    Categories
    DD Scripts Mods
  5. "Operation Aborted" error in IE when inserting new elements into the DOM, and fix

    The DOM lets you dynamically create and add elements to the page, such as the following, which creates an image on the fly and adds it to the end of the document:

    Code:
    var img=document.createElement("img")
    img.setAttribute('src', 'dd.gif')
    document.body.appendChild(img)
    Ideally such an operation should be done after the document has loaded, though in most browsers, I noticed you can get away with it. In IE6 and IE7, however, things get a lot more ...

    Updated 06-04-2009 at 12:45 AM by ddadmin

    Categories
    Web Design issues
Page 1 of 3 123 LastLast