General Question

webmasterwilliam's avatar

How do I code an HTML alert box with the "i" icon for "Information"?

Asked by webmasterwilliam (165points) September 23rd, 2008

I currently am using an alert box to show information about User Name and Password requirements during registration. (see http:TheBossReportCard.com)

I would like the informational symbol “blue circled i” to be displayed versus the alert symbol “yellow triangle !”. I have searched everywhere for the code but have been unsuccessful.

Observing members: 0 Composing members: 0

6 Answers

lapilofu's avatar

This question is extremely unclear. Can you give an example of what you’re talking about?

webmasterwilliam's avatar

Hmmmm, I’ll try.

I have coded an alert which is a pop-up that gives the user a message. For example, I have an alert that is titled “Password Rules” that the user can click on. When they do, a message box pops up. There is an icon in the message box which shows an exclaimation point inside a triangle indicating an alert, along with the password rules.

I know there is another icon available, with the letter i inside a blue circle indicating this is an information message versus an alert message. Sun has a page which shows it at http://java.sun.com/products/jlf/ed2/book/HIG.Dialogs5.html , but they don’t explain how to code it. I’ve seen other sites in the past with it too, but don’t remember where.

lapilofu's avatar

Ah. As a web developer, unfortunately you don’t really have control over those icons. They’re controlled by the OS or by the web browser. You can’t change them, as far as I’m aware.

If you can, it’s almost certainly through some proprietary property that doesn’t work across browsers. But I’ve never heard of it.

jrpowell's avatar

Why not just use something like Lightbox Gone Wild instead? That way you can style it however you want.

I’m assuming you are using a JavaScript alert now.

Anaphase's avatar

You can’t change them (at least not in web programming). Like lapilofu said, it’s controlled by the OS.

wilhel1812's avatar

well, they’re controlled by your browser, but yeah…
Anyways, those alert messages are annoying not not very user friendly. i’d recommend a lightbox.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther