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.