TJKDesign: Home Page
Guild of Accessible Web Designers Logo
Valid XHTML 1.0!
Section 508
Web Standards
Tables-less Layout
Frames: a solution or a problem?
XML Feed
NN4.7 Safe!


The right tools for DW's users: 7 different Server models, pick one!

The Developer's Best Friend

ez-css Putting the 'less' in table-less layouts. css-101 logo

Most Frequently Asked Questions on NGs

Click on " Copy" to copy the code inside the textareas to the clipboard.

Add a Title

Create a mini-popup description:

Copy
Go back to the top of the page

Get Out Of Frames

Place this script between the HEAD tags:
Copy
Go back to the top of the page

DW's Sites Definition

The Status Bar

Copy
Go back to the top of the page

Keep Spiders Out

For site administration areas and personal pages you don't want the search engine to index.
Place this code between the HEAD tags of the page.
Copy
This code tells the robots not to index the page and not to follow the links that are on the page.
If you replace "NOFOLLOW" by "FOLLOW", robots won't index the page, but it is okay for them to follow the links within the page.
Go back to the top of the page

Loading 2 Frames with one click!

<a href="portfolio.html" onclick="window.self.location='newNavigation.html'" target="myFrame">Portfolio</a>
portfolio.html will load into the "myFrame" frame.
newNavigation.html will load into the frame that contains the hyperlink.
If you are a Dreamweaver user, you may want to check this page too.
If you're using frames, don't leave this Web site without reading this first
Go back to the top of the page

Greetings that respond to the time of day.

When someone visits your site, the greeting will be:
     Good Morning. Welcome to my site!
     Good Afternoon. Welcome to my site!
     Good Evening. Welcome to my site!
Copy
Go back to the top of the page

Hosting more than one Domain on one IP Address.

When several domain names point to the same IP. The HTTP_HOST Server Variable can help you to send the user to a different page depending on which domain name he/she typed.
<%
Dim host
host = Request.ServerVariables("SERVER_NAME");
SELECT CASE host
     CASE "www.MyDomain1.com"
          response.redirect "myPage1.asp"
     CASE "www.MyDomain2.com"
          response.redirect "myPage2.asp"
     CASE "www.MyDomain3.com"
          response.redirect "myPage3.asp"
     CASE "www.MyDomain4.com"
          response.redirect "myPage4.asp"
      CASE ELSE
          response.write "How did you get here?"
END SELECT
%>
Go back to the top of the page

Protecting Images

One trick is to place an image as a background inside a Span Tag, then place a transparent image on top of it. The effect is that when someone views the page through his/her browser, they will see the image just fine; but if they right click and save the image, all they will save is the transparent image, which rests on top of the real image.
Let's say that the image is stored in the images directory on your server, that its name is camera.gif, and that it is 32 x 32 pixels.
The next thing you will need is a transparent image (if you're using Dreamweaver, there is a good chance you already have one).
The size of this image doesn’t matter, but the smaller the better (you can make it any size you want in the code).
Let's place the two images on the page:
Copy
Make sure your "transparent" image is the same size as the original!
Go back to the top of the page

Jump Menu

A simple drop-down jump navigation system.
Copy
Go back to the top of the page

The Back Button

Believe it or not, it is as simple as putting the code below between the HEAD tags of the page you want to "protect" (the one the user won't be able to reach by clicking on the back button).
Copy
You can also download my DW extension.
Go back to the top of the page

Localhost is not working with IE?

Go to Internet Options > Connection > LAN Settings, then tick the box to bypass proxy server for local address.
Go back to the top of the page

Mask your published email addresses from collection by spiders.

Copy
Go back to the top of the page

Target="_blank"

To open a new window, "_blank" shouldn't be used as a target value.
If you have links in your web page that you want to open "externally", you should use "myWindow" [or whatever name you want to choose] instead, so every link clicked will open in the *very same* window.
Go back to the top of the page

To open a popup window.

You may use any event to call the function "popupPage()" below.
Copy
Go back to the top of the page

Print this Page script.

Copy
And then put this code for your link:
Copy
Go back to the top of the page

Disabling right-clicking

There is no way to completely hinder others from taking your source code but there are a few tricks you can use to make code-snatching a little more difficult.
But be aware that it can be very annoying for some people who right-click for other reasons than stealing your code and/or images.
Disable Right Click (to View Source):
Copy
Disable Mouse Dragging (Highlighting):
Copy
Disable Keyboard Use (Select/Copy):
Copy
Go back to the top of the page

How to hide a popup behind its opener.

To open a new window behind the current browser window, just place the code below on the child window:
Copy
Go back to the top of the page

Timed redirection to another page automatically.

Place this code between the HEAD tags of your page, it will redirect the user to myNewPage.htm after 10 seconds.
Copy
Go back to the top of the page

Ugly doted lines around images in IE [onFocus].

Cut and paste the code below within your <A HREF> tag. You can also download an extension for DW to do this from Project VII.
Be aware that these lines do have a purpose and removing them will make your site "less accessible".
Copy
Go back to the top of the page

Virtual Includes [SSI].

You can take advantage of virtual includes to simplify your life as a Web Designer/Developer. For example, you can use a series of files to create a single page, allowing you to make changes to one file only and have those changes appear across all pages of your site.
An example might be a header file that contains a banner script, or a menu file that contains a table of hyperlinks.
Do not forget to check with your Web host or server administrator what extension [.asp, .shtml, etc.] your pages need to have in order for the server to "see" the virtual file.
< !--#INCLUDE FILE="header.inc"-->
1. Build a file called header.inc.
2. Include the file with the above code.
For more on easy maintenance, check this page.
Go back to the top of the page

Wrapping Text Around a Table.

To make text wrap around a table, we can use the same method employed by the IMG tag.
Thus, we simply specify the placement of the table using the "align" attribute, and text will flow around our table to that side. <table align="left">
Go back to the top of the page

Using WSH to open 3 programs at once in Windows.

Create a file named myBatch.jse that includes the following lines:
Copy
Go back to the top of the page

If you think of something I should add to this section please let me know by using this form.