Affordable Web Hosting with Excellent Customer Support internet connection free month hosting

netConsole: Redirect

Using the redirect script on your site is an easy way to simplify navigation for your visitors. The drop down menu the script creates is easy to edit, takes up very little space and looks good with any color scheme.

Setting up Redirect

Once you've installed the script with your netConsole, redirect is easily implemented into your pages using some simple form tags. The first line tells the form to use the redirect script, which is located in your cgi-bin by default:

<form action="/redirect" method"get">
<select name="link">

The next portion of your form is where you specify your links:

<option value="tech-netconsole.shtml">Netconsole
<option value="http://yahoo.com/">Yahoo!
<option value="link3.html">Link #3
<option value="link4.html">Link #4
</select>

The following line of code creates a submit button that says "Go!":

<input type="submit" value="Go!">

And the last lines of code complete the form

</form>

  Configuration Options

You can make Redirect work faster for browsers using JavaScript by replacing this line:

<select name="link"> with:

<select name="link" onChange="location.href = this.options[this.selectedIndex].value;">

Image swapping with a drop down menu? Add some dynamic effects to your Redirect script using JavaScript.

Choose an Artist

The Code:

You can also control where Redirect opens your link with the target tag. For example, to open your links in a new window, use:

<form action="/cgi-bin/redirect" method="get" target="_new">

  Things to Remember

Internal links, that is, links to pages within your site, do not need the http://www.. They only need the name of the html page. External links, however, do require http://www.. For example, a link to Yahoo! would have to appear as:

<option value="http://yahoo.com/">Yahoo!

You can always use more than one Redirect option field on any page of your site for as long as you have the Redirect script installed.

Double checks your links often to make sure that they are up to date.

Should Redirect fail to work properly, we recommend that you delete and re-install Redirect from the control panel.

  Related Items