3.2.0

Java Alert Boxes

Okay, Long story short, I'm making a webpage with links to notes taken on specific dates in my college Criminal Justice class. I made an HTML table to organize the dates of class. Problem is, there are a couple days that we didn't take notes because we either took a test, had a class discussion, or class was cancelled. I want to make a link that will pop-up with a yellow text box [http://www.htmlgoodies.com/beyond/java/article.php/3470731 (scroll down until you see a green underlined link and place the mouse over the link, but don't click. The box that pops up is what i want to creat)], burt until i can figure out how to do that, i'm using java alert boxes with the following codes:

"<a href="javascript:void(null)"
onclick="alert('Class was cancelled this day.')">
<font size="2" face="verdana" color="#c51585">
<b>- 31 Oct 05 -</b></font></a>"

"<A HREF='javascript:onClick=alert
("Class was cancelled this day.")'>- 31 Oct 05 -</A>"

I can make that work, no problem. My question is this, does anyone know how to make the yellow background pop up text box that i mentioned earlier, and does anyone know how to make mulitple lines of text in the same alert window?

Appreciate any help. Please e-mail responses to st_kilburn@tarleton.edu

Thanks.

Eric
November 1,
Just use:

<a href="#" title="popup message here">hover here</a>

background:
--
for security reasons, (i.e. to prevent your website spoofing a system dialog, etc...) the dialogs available in a web application are fairly limited.

You have "alert()" (with a message and an "OK" button), "confirm()" (with message, "OK" and "Cancel") and "prompt()" (message, text input, "OK" and "Cancel")

In certain versions of IE, you can pop-up a modal HTML dialog but... well, that's only in certain versions of IE.

Your other options are:
- opening a full-fledged new window (not recommended for dialogs)
- creating "virtual" a modal dialog using an absolutely positioned DIV
Chris
November 1,
"Just use:

<a href="#" title="popup message here">hover here</a>"

That works. It's not exactly what I was going for, but it works just the same.

I want to make a link that will pop-up with a yellow text box [http://www.htmlgoodies.com/beyond/java/article.php/3470731 (scroll down until you see a green underlined link and place the mouse over the link, but don't click. The box that pops up is what i want to creat)]

Thanks
Eric
November 1,
Hi Eric, I was into a similar need few months ago.
Check this link (and its demo) and the post on aw cell implementation.
(should be almost the same for a content-link).
http://migoicons.tripod.com/dhtips.htm

http://activewidgets.com/javascript.forum.2884.5/open-new-window.html
HTH
Carlos
November 1,
Carlos,

Yes. Finally someone understands what i'm trying to do. This page is exactly what I want. I thought I would try it with the javascript alert boxes, but IE is asking if I want to show blocked content before it will show the alert. This site explains everything I need.

Thanks
Eric
November 1,
are you guys trying to do the boxes like on here <a href="http://www.ffrebirth.com>ffrebirth.com</a> ( if not can anyone tall me how to do it anyway) :)
jono
December 29,

This topic is archived.

See also:


Back to support forum