Dear Dr. Website: Can I control the appearance of text (font, size,
background color) in form fields, or am I stuck with browser settings?
You might use standard FONT tags within a form, changing the text color,
size, face, etc. As for background colors, you could use a table within the
form, and then use background colors or even images within the table.
Dear Dr. Website:
I've seen Java scripts for creating a pop-down list with links for
navigation, and I've seen a frame-based example on the Web. But I want a
way to use different targets for my links in the same form.
We love it when we've already got a question figured out, and the code is sitting right on our home page, too!
Here's your solution:
<HEAD>
<SCRIPT LANGUAGE=JavaScript>
<!--
function doArray() {
var arylnth = doArray.arguments.length;
for ( i = 0 ; i < arylnth ; i++ ) { this[i]=doArray.arguments[i] }
}
function newpage() {
var choose = eval(document.dropdown.site.selectedIndex);
if( (choose > 0) && (choose < 12) ) {
var section=new doArray( ' ', 'http://www.webdeveloper.com/index.html',
'http://www.webdeveloper.com/library/',
'http://www.webdeveloper.com/library/reference.html',
'http://www.internetnews.com/wd-news/',
'http://www.webdeveloper.com/reviews/',
'http://www.webdeveloper.com/devforum/');
top.left.location=section[document.dropdown.site.selectedIndex];
}
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="dropdown">
<SELECT NAME="site" onChange='newpage();' ALIGN="left">
<OPTION SELECTED>Select a Web Developer Section
<OPTION>Main page
<OPTION>DoIt Library
<OPTION>Reference
<OPTION>Web Developer News
<OPTION>Reviews
<OPTION>Developer's Forum
</SELECT>
</FORM>
</BODY>
The important part is:
top.left.location=section[document.dropdown.site.selectedIndex];
This part tells the browser where to open the page; "top" tells the browser
that the frame to be updated is the main frameset; and "left" is the name
of the frame to be updated.
Dear Dr. Website: My FrontPage 98-generated guest book doesn't update
properly. Can you help? Here is the code:
<html>
<head>
<title>Guestbook</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>
<body>
<p><!--webbot bot="PurpleText" Preview="Guest Book - Use this page to
collect the reactions of visitors to your web site." --> </p>
</body>
</html>
Does your Web host/ISP support FrontPage extensions?
The FrontPage tool
uses "webbots"--basically server-side processes--and your guest book is one
such example. Without the FrontPage extensions, the process never happens,
and the guest book won't update.