Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Setting font in confirm() dialog

Reply
Thread Tools

Setting font in confirm() dialog

 
 
OccasionalFlyer
Guest
Posts: n/a
 
      04-16-2007
I have become owner of some Javascript code that displays a message
through the confirm() function. I have a uwser reuqest to make the
font size of this message larger. Can this be done? I don't see
readily a way to modify the font or other properties of the popup
created by confirm(). Thanks.

Ken

 
Reply With Quote
 
 
 
 
Daz
Guest
Posts: n/a
 
      04-16-2007
On Apr 16, 4:36 pm, "OccasionalFlyer" <klit...@apu.edu> wrote:
> I have become owner of some Javascript code that displays a message
> through the confirm() function. I have a uwser reuqest to make the
> font size of this message larger. Can this be done? I don't see
> readily a way to modify the font or other properties of the popup
> created by confirm(). Thanks.
>
> Ken


Hi Ken.

To my knowledge, this can't be done. The only thing you can do is make
a custom dialog yourself, out of divs, tables or whatever other
elements you have lying around. I think that IE does have some level
of support for it, using .NET, but I am uncertain.

I recommend you google the term "javascript lightbox", both with and
without quotes. You should find the results useful.

All the best.

Daz.

 
Reply With Quote
 
 
 
 
OccasionalFlyer
Guest
Posts: n/a
 
      04-16-2007
On Apr 16, 8:49 am, "Daz" <cutenfu...@gmail.com> wrote:
> On Apr 16, 4:36 pm, "OccasionalFlyer" <klit...@apu.edu> wrote:
>
> > I have become owner of some Javascript code that displays a message
> > through the confirm() function. I have a uwser reuqest to make the
> > font size of this message larger. Can this be done? I don't see
> > readily a way to modify the font or other properties of the popup
> > created by confirm(). Thanks.

>
> > Ken

>
> Hi Ken.
>
> To my knowledge, this can't be done. The only thing you can do is make
> a custom dialog yourself, out of divs, tables or whatever other
> elements you have lying around. I think that IE does have some level
> of support for it, using .NET, but I am uncertain.
>
> I recommend you google the term "javascript lightbox", both with and
> without quotes. You should find the results useful.
>
> All the best.
>
> Daz.


Thanks. I want to try a simpler idea but I'm wondering if I'm doing
something wrong here:
var msg = new String(
'WARNING: Quiting now will cancel all changes up to this point, ' +
'leaving your schedule as it was when you began this session. ' +
'Are you sure you want to quit?'
);
"msg".blink();
"msg".fontsize(7);

if (confirm(msg))
{
document.location.href = '<jsp:getProperty name="req"
property="contextPath"/>/regcontrol?command=SessionDone';
}
else
{
return false;
}
setting the properties of the string object seems to have no effect on
the confirm box. Am I doing this wrong to set the string object's
attributes? THank.s

Ken

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Font & color dialog boxes?? Tina ASP .Net 0 03-10-2006 12:11 AM
How to hide the dialog when execute a dialog based application in VC? yw C++ 3 07-02-2005 03:35 AM
Font selection dialog Ike Java 4 11-20-2004 02:44 AM
display print preview dialog, not print dialog Matt Javascript 1 11-20-2004 01:18 AM



Advertisments