★ wanayoo — archive 1999 http://webdeveloper.com/drweb/19981102-drweb.htmlNouvelle recherche | Portail wanayoo
internet.com

Go to WebDeveloper Home

Seek and you shall

or search all of internet.com
Looking for a Site Map?
Vote for WD!
Please keep
voting for us
as a Top 100
Web site!

The Web Developer Network
WebDeveloper.com
Streaming Media World
WebReference.com
Web Developer's Virtual Library
BrowserWatch
Java Boutique
Web Developer's Journal
JavaScript Source
ScriptSearch
Web Developer Forums
Web Developer News

internet.com
Internet News
Internet Stocks
Internet Technology
Web Developer
Internet Marketing
ISP
Downloads
Internet Resources
International

Search internet.com
Advertising Info
Corporate Info
Internet Trade Shows

internet.commerce
Be an Affiliate
Be a Partner
Software Store
Computer Help
Register a Domain
Be Domain Registrar
e-solutions
Internet Jobs
A/V Network
Map Your Website
Rent E-mail Lists
Bookstore
Press Release dist.
Sell Ad Space
Internet Research
Venture Capital
Web Publishing
Build Your Intranet
Expert Advice
Get e-Biz Intell.
Content for Websites

  Let internet.com work for you!
D R .   W E B S I T E
WebDeveloper.com

November 2, 1998

Controlling Text; Targeting Links; 'Webbots'

By David Fiedler and Scott Clark
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.


Visit The Dr. Website Archives.
Click here for a list of Dr. Website's most frequently asked questions (and answers!).
Send your own question to Dr. Website.

Fast Jump to Anywhere on WebDeveloper.com:



Copyright © 1999 internet.com Corporation
All Rights Reserved. Legal Notices.
Contact the WebDeveloper.com staff

Last modified: Wed Sep 22 06:06:31 EDT 1999

http://www.internet.com

 

Refresh Daily
Join Editor-in-Chief David Fiedler The Editor With No Time and find truth, justice, and a clue or two.


Browse by Category
[ Site Map ]

ActiveX / VBscript
Animated GIF Archive
Browsers
CGI / Perl
Database Connectivity
E-Commerce
HTML-Advanced: DHTML, CSS
HTML / Site Authoring Tools
Intranet/Groupware
Java
JavaScript
Multimedia: Audio / Video / Streaming Technologies
Opinions
Refresh Daily: Editorial Column
Security
Servers & Server Tools
Site Design / Graphics
Site Management / Marketing / Log File Analysis
VRML / 3D
XML