internet.com

Go to WebDeveloper Home


hm-v6-139x61.gif

Database Journal: The Knowledge Center for Database Professionals

find a web host with:
CGI Access
DB Support
NT Servers
UNIX Servers
Telnet Access

advanced search
jobs

Get FREE Development Info via your Email!

The Webdeveloper channel
FlashKit
GIF.com
HiermenusCentral
webdeveloper Jobs
Java Boutique
JavaScript.com
JavaScript Source
ScriptSearch
StreamingMedia World
WDJ
WDVL
WebDeveloper.com
WebReference.com
XMLFiles.com

internet.com
Internet News
Internet Investing
Internet Technology
Windows Internet Tech.
Linux/Open Source
Web Developer
ECommerce/Marketing
ISP Resources
ASP Resources
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources

Search internet.com
Advertise
Corporate Info
Newsletters
E-mail Offers

internet.commerce
Be a Commerce Partner










D R .   W E B S I T E®
WebDeveloper.com

December 14, 1998

Setting Up Guestbook Applications; Mouseover Scripts; Uploading Files to Web Sites

By David Fiedler and Scott Clark

Dear Dr. Website®: I developed my Web pages with Microsoft Publisher, and I set up a booking form/guestbook to receive feedback. My ISP does not support FrontPage extensions, but it does support cgi-bin cgiemail. In my www directory, I set up a bookings directory. In Publisher, I set my action to POST, and I put "Booking Form" in my hidden field. For the hidden value I put the URL of the first page of my site. Am I going about this correctly?

You'll want to start with a script designed specifically for guestbook applications. One place to look is ScriptSearch.com. It has a section that's devoted to Perl guestbook scripts, many of which are free. You can download several and try them out on your system.

Dear Dr. Website®: I have been working on a mouseover script. I can get a mouseover to change the image that is cursored over, but what I want it to do is to change another image at the same time.

Assuming you already have a function that works for mouseovers, point to two instances of the function within the mouseover, like this:

mouseover="swapem(button, bon); swapem(icon, a1on); return true"

Here is the function we tested it with ("button" and "icon" refer to the two images):

if (document.images){
bon = new Image();
bon.src = "button.gif";
a1on = new Image();
a1on.src = "babycrawling.gif";
}
function swapem(iname, gname) {
iname.src = gname.src;
}

Dear Dr. Website®: I have a picture of a room with two cats that I made into an image map. When the mouse is moved over a cat or an object, I want a tag or a small box (even the status bar would be OK) to pop up and say something. I've tried applets (TagArea) and mouseover events, but nothing seems to work.

Try something like this out (move your mouse over the image from the WebDeveloper.com site):

<img vspace=4 height=35 width=130 src="http://www.webdeveloper.com/img/webdev-micro.gif" ISMAP USEMAP="#wdmap" border=0>
<MAP NAME="wdmap">
<AREA SHAPE=RECT COORDS="0,0,130,35" HREF="http://webdeveloper.com" onMouseOver="alert('You really thought I would move for that mouse--ha')";>
</MAP>

Dear Dr. Website®: Is there a way I can upload a file selected by a user from the user's machine to the server? I'd like to find a solution in Java, but if the only solution is using CGI, could you send me an example?

I'm not aware of any such JavaScripts or applets, but a script written by Jeff Carnahan is available for free. It's a CGI script, but it's pretty easy to set up and requires only minimal knowledge of CGI. You can also check out ScriptSearch.com for alternatives.


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®:


Contact the WebDeveloper.com® staff

Last modified: 20

 

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