Most Frequently Asked Questions on NGs
Click on " " to copy the code inside the textareas to the clipboard.
Create a mini-popup description:
Place this script between the HEAD tags:
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.
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.
<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
If you're using frames, don't leave this Web site without reading this
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!
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.
host = Request.ServerVariables("SERVER_NAME");
SELECT CASE host
response.write "How did you get here?"
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:
A simple drop-down jump navigation system.
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).
Go to Internet Options > Connection > LAN Settings, then tick the box to bypass proxy server for local address.
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.
You may use any event to call the function "popupPage()" below.
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.
To open a new window behind the current browser window, just place the code below on the child window:
Place this code between the HEAD tags of your page, it will redirect the user to myNewPage.htm after 10 seconds.
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".
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
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">
Create a file named myBatch.jse that includes the following lines:
If you think of something I should add to this section please let me know by using this form.