Login
Connect via Facebook

Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Forum Threads
Users Online
Guests Online: 2

Members Online: 0

Total Members: 619
Newest Member: Pranav Adithya
Advertising
Donate
If you like our free products please donate us.

Advertising
View Thread
 Print Thread
Cut & Paste Bread crumb script
Admin
This script displays on any page a "trail" (aka bread crumb) of where the viewer is currently at in relationship to the rest of the site. It does so by examining the directories that prefix the page, and displaying this containership (using links). If your site pages are organized using folders, this is a simple yet very useful navigation aid.

Download source  GeSHi: Javascript
  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!--
  3. var path = "";
  4. var href = document.location.href;
  5. var s = href.split("/");
  6. for (var i=2;i<(s.length-1);i++) {
  7. path+="<A HREF=\""+href.substring(0,href.indexOf("/"+s[i])+s[i].length+1)+"/\">"+s[i]+"</A> / ";
  8. }
  9. i=s.length-1;
  10. path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"\">"+s[i]+"</A>";
  11. var url = window.location.protocol + "//" + path;
  12. document.writeln(url);
  13. //-->
  14. </script>
Parsed in 0.007 seconds, using GeSHi 1.0.8.10
 
Jump to Forum: