Most Frequently Asked Questions on NGs
Click on "
" to copy the code inside the textareas to the clipboard.
Add a Title
Create a mini-popup description:
Get Out Of Frames
Place this script between the HEAD tags:
DW's Sites Definition
Check this URI:
- https://youneedawebstore.com/resources.htm.
- https://youneedawebstore.com/resources.htm.
The Status Bar
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.
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.
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.
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.
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
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!
Good Morning. Welcome to my site!
Good Afternoon. Welcome to my site!
Good Evening. Welcome to my site!
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");
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
%>
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
%>
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:
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:
Jump Menu
A simple drop-down jump navigation system.
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).
Localhost is not working with IE?
Go to Internet Options > Connection > LAN Settings, then tick the box to bypass proxy server for local address.
Mask your published email addresses from collection by spiders.
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.
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.
To open a popup window.
You may use any event to call the function "popupPage()" below.
Print this Page script.
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.
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.
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:
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.
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".
Be aware that these lines do have a purpose and removing them will make your site "less accessible".
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.
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.
1. Build a file called header.inc.
2. Include the file with the above code.
For more on easy maintenance, check this 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">
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">
Using WSH to open 3 programs at once in Windows.
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.





















