Layers and other tricks
1) Layer control via behaviors window:
One of the most powerful Dreamweaver web techniques is layer control via the Behaviors window
2) Meta Refresh :
<head>
<meta HTTP-EQUIV="Refresh"
content="1; URL=http://www.radford.edu/~login/alternative.html">
</head>
<body>
</body>
</html>/* Note 1 is the time for refreshing the page in seconds */
3) Includes :
Suppose you have a client who wants to upload simple text files but doesnt want to
<!--#include virtual="/directory/filename.html" -->
At our university, we might have a virtual include for a file that does this:
<!--#include virtual="/~login/filename.html" -->
There are also a host of "server side includes" such as :
<!--#echo var="DATE_LOCAL" --> or
<A HREF="<!--#echo var="HTTP_REFERER"-->">BACK BUTTON</A>
Here are some others from: http://bignosebird.com/sdocs/echo.sh
AUTH_TYPE client authorization method if any
CONTENT_LENGTH size of input posted from client
CONTENT_TYPE MIME type of content
DATE_GMT The current GMT (greenwich, UK) can be formatted using #config
DATE_LOCAL current time/date, can be formatted using #config
DOCUMENT_NAME document name that was requested
DOCUMENT_URI URL of the document
LAST_MODIFIED document modified date, can be formatted using #config
PAGE_COUNT number of accesses to current document since server was brought on line
HTTP_REFERER URL of the document the client came from
REMOTE_ADDR Numeric IP address of the client
REMOTE_HOST domain name of the client (DNS option must be active on server)
REMOTE_USER ID of user, rarely ever found
REQUEST_METHOD HTTP method: GET OR POST
SERVER_NAME server hostname (i.e., www.bignosebird.com)
SERVER_PORT the port used by httpd (usually 80)
SERVER_PROTOCOL Which version of Httpd compliance
SERVER_SOFTWARE The name of the server software, i.e., apache 1.2.5
TOTAL_HITS total pages served by server since brought on lineYou can control the exact appearence of your time and date information by setting the timefmt using a config such as the one below. Just include this config before the actual include that calls the date.
<!--#config timefmt="%m/%d/%y" -->
Will give you a date such as 02/17/97The complete list of unix style date format codes follow:
CODE PURPOSE OF CODE
%a abbreviated weekday name
%A full weekday name
%b abbreviated month name
%B full month name
%c locale's appropriate date and time representation
%C default date and time format
%d day of month - 01 to 31
%D date as %m/%d/%y
%e day of month - 1 to 31 (single digits are preceded by a blank)
%h abbreviated month name (alias for %b)
%H hour - 00 to 23
%I hour - 01 to 12
%j day of year - 001 to 366
%m month of year - 01 to 12
%M minute - 00 to 59
%n insert a newline character
%p string containing AM or PM
%r time as %I:%M:%S %p
%R time as %H:%M
%S second - 00 to 61
%t insert a tab character
%T time as %H:%M:%S
%U week number of year (Sunday is the first day of the week) - 00 to 53
%w day of week - Sunday=0
%W week number of year (Monday is the first day of the week) - 00 to 53
%x Country-specific date format
%X Country-specific time format
%y year within century - 00 to 99
%Y year as CCYY (4 digits)
%Z timezone name