Results 1 to 7 of 7

Thread: Need a script

  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need a script

    here is an example of the script i need
    http://www.newschannel9.com/sections...sports-events/

    Anyone know how to make it??

  2. #2
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Can you please make it clear what you want. Did you want the bread crumb displayed there?
    Last edited by Nile; 07-18-2008 at 12:46 AM.
    Jeremy | jfein.net

  3. #3
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes thats it

  4. #4
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Did you want a javascript one, or a php?
    Here's a php one:
    PHP Code:
    <?php
    $site 
    $_SERVER[PHP_SELF];
    $path explode('/',$site);
    for(
    $i=0;$i<count($path);$i++){
    echo (
    $i==0)?"Home ".$path[$i] : chr(62).chr(32).ucfirst($path[$i]).chr(32);
    }
    ?>
    Jeremy | jfein.net

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,069
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    If you have PHP (other server side languages could also be used), some of these results will show you how:

    http://www.google.com/search?client=...utf-8&oe=utf-8

    You can also always just hard code the links, example from the source code of the page you gave to illustrate this:

    HTML Code:
    <div id='breadcrumb' class='floatLeft'><h4><a href='/'>Home</a></h4>  <span>&gt;</span> <h3><a href='/sections/sports/'>Sports Headlines</a></h3> <span>&gt;</span> <h2><a href='/sections/sports/high-school-sports-events/'>High School Sports Events</a></h2></div>
    The problem with any solution is though, there is no real way of knowing how someone got to that particular page. It is all based upon a guess of what is most likely, coupled with a knowledge of the site's directory and/or page structure.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by jscheuer1 View Post
    If you have PHP (other server side languages could also be used), some of these results will show you how:

    http://www.google.com/search?client=...utf-8&oe=utf-8

    You can also always just hard code the links, example from the source code of the page you gave to illustrate this:

    HTML Code:
    <div id='breadcrumb' class='floatLeft'><h4><a href='/'>Home</a></h4>  <span>&gt;</span> <h3><a href='/sections/sports/'>Sports Headlines</a></h3> <span>&gt;</span> <h2><a href='/sections/sports/high-school-sports-events/'>High School Sports Events</a></h2></div>
    The problem with any solution is though, there is no real way of knowing how someone got to that particular page. It is all based upon a guess of what is most likely, coupled with a knowledge of the site's directory and/or page structure.
    What a bore.
    Jeremy | jfein.net

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,069
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Nile View Post
    What a bore.
    How helpful. What is boring to you may be fascinating to others. In any case, it is the fact of the matter. I only mentioned it because many people imagine that a breadcrumb script can somehow read the minds of people, know where they've been, that sort of thing. It cannot.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •