• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Misc
    ASP
    JavaScript
    ·Document Info
    ·Forms
    ·Images
    ·Miscellaneous
    ·Navigation
    ·Script Writers
    ·Contents
    ·What's New?
    CSS
    HTML
    Maps
    Links
    Mail List
    Search
    Sitemap


     

  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • Directory Drill Down
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • Many websites have some form of hyperlink navigation as you drill down further into the site. Many times the scheme that the drilldown follows is the directory path of the site. If this is how our site is structured you may benefit from this example that can be placed on any html document on your server. By splitting the url by / all the parent directories are placed in an array and looped through and linked.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <html>
    <title>CodeAve.com(JavaScript: Directory Drill Down)</title>
    <body bgcolor="#FFFFFF">
    <center>

    <script language="JavaScript">
    <!--
    // Set the varible g_url to nothing
    var g_url = "";


    // Split the document url by the /
    var split_url=document.URL.split('/');

    // Loop thorough the splits starting after http:// 
    // and ending on the parent directory of the current document
    for (var i=2; i<split_url.length-1; i++) 
    {
    // Start rebuilding the url to link each level
    g_url = g_url + split_url[i] +"/";
    document.write("<a href='http://" + g_url +"'>" + split_url[i] + "</a>"); 

    // Check to see if the last directory was written to avoid
    // and extra > after the parent directory of the current page
    if (i != split_url.length-2) 
    { document.write(" > "); }

    // end loop
    }
    </script>



    </center>
    </body>
    </html>

     

     

     



    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low