F

Here is where the computer is not just a "stupid machine"
Scroll Up
start.. image1
 
image2
 
image3
 
image4
 
image5
 
image6
 
image7
 
image8
 
image9
 
image10
 
end.
Scroll Down

// this tells jquery to run the function below once the DOM is ready $(document).ready(function() { // choose text for the show/hide link var showText="Show the hidden text"; var hideText="Hide the text"; // create the toggle link $("#hide_this").before("

"+showText+""); // hide the content $('#hide_this').hide(); // capture clicks on the newly created link $('a#toggle_link').click(function() { // change the link text if ($('a#toggle_link').text()==showText) { $('a#toggle_link').text(hideText); } else { $('a#toggle_link').text(showText); } // toggle the display $('#hide_this').toggle('slow'); // return false so any link destination is not followed return false; }); });

Why are there so many broken links in search engines?

Broken links are a real problem -- they are one of the most annoying parts of the web, and they waste a lot time. To give you one real world example, take a look at this Question of the Day. This is a question on a rather delicate topic, but it is one of the most frequently visited questions in the archive.
When that question was originally published, it had eight links associated with it at the bottom of the question. They were all interesting, relevant links. Within five months, all eight of the links were broken. Because all of the links were broken, it generated a lot of angry e-mail. New links were put in. They all broke, and so on.
HowStuffWorks contains many thousands of links. At regular intervals, we run a piece of code that checks for broken links. Each time, there are almost a thousand broken links.
Why does this happen? Here are the three most common reasons:
  • Web site restructuring is by far the most common reason. For example, a couple of years ago, NASA decided to consolidate and move many of their sites. When they did, they reorganized their directory structure and changed just about every URL across NASA. As a result, every link that HowStuffWorks had to any page on NASA broke.
  • People change ISPs. If you build a little personal Web site on AOL, and then change to another ISP and move your site in the process, anyone who linked to you is left with a broken link.
  • Companies and universities have dynamic populations. When a student leaves a university, he/she loses the free Internet account on the university machines. All links pointing to that site break.
The bottom line is that anytime that someone moves a site or changes the names of the files in a site in any way, everyone linking to the site gains a broken link. If you have a Web site, you want to do your best to never change the file names or the directory structure (or, if you do, provide automatic redirecting from old names to new). The easiest way to do that is to register a unique URL for it and leave the file names the same for eternity. If you don't, you lose a lot of traffic!

0 comments

Post a Comment

Followers