473,320 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Customized Message Box that i can use

200 100+
Good day, does anybody have a customized message box that i can use.

I have searched & read that one can't change the font or size of the default message box.

Does anyone have a customized message box where i can change the font
Ok button & info icon.

so that i can include in validation function

if not then i will use the Div option of displaying message


Regards
Jan 18 '10 #1

✓ answered by acoder

Here's one example that you can alter to your requirements.

4 1685
acoder
16,027 Expert Mod 8TB
Here's one example that you can alter to your requirements.
Jan 18 '10 #2
ismailc
200 100+
Thank You - got me going
Jan 18 '10 #3
Here is another.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <title>Forms</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <link rel="stylesheet" type="text/css" href="styles/style.css" media="screen" title="style (screen)" />
  7. <script>
  8. function preview() {
  9.    var myvar = "Name=" + document.getElementById("first_and_last_name").value;
  10.    myvar += '<br />Birthday=' + document.getElementById("birthday").value;
  11.    myvar += '<br /><p>Submit Information?</p>';
  12.    //myvar += '<br /><input type="button" value="yes" id="yesbutton" onClick="window.opener.document.child_form.submit()" />';
  13.    myvar += ' <input type="button" value=" yes " id="yesbutton" onClick="window.opener.document.getElementById(\'mybox\').value=\'Hello World!\';window.close()" />';
  14.    //myvar += ' <input type="button" value=" Print " id="nobutton" onClick="window.print();window.close()" />';   
  15.    myvar += ' <input type="button" value=" no " id="nobutton" onClick="window.close()" />';
  16.    my_window= window.open ("","mywindow1","status=1,width=450,height=350");
  17.    my_window.document.write(myvar); 
  18. }
  19. </script>
  20. </head>
  21. <body>
  22. <div id="wrap"> 
  23.     <form class="darker" name="child_form" id="child_form" method="post" action="_lib/phpmailer-fe.php" enctype="multipart/form-data">
  24.         Name:<br />    
  25.         <input name="First_and_last_name" id="first_and_last_name" type="text" value="First and Last Name" /><br /><br />
  26.         Birtdhay:<br />
  27.         <input name="Birthday" id="birthday" type="text" value="Month and day of birthday" /><br /><br />
  28.         Message from popup:<br />
  29.         <input type="text" id="mybox" name="mybox" value="" /><br /><br />
  30.         <input type="button" onclick="preview()" value="Preview" />
  31.     </form>
  32. </div>
  33. </body>
  34. </html>
  35.  
  36.  
  37.  
Jan 19 '10 #4
acoder
16,027 Expert Mod 8TB
Hmm... that opens a new window. Not quite what would be as useful in most cases.
Jan 31 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: James | last post by:
Does anyone know if it is possible, in C#, to use a customized window frame? For example, programs like Winamp and AdAware do not use the standard box window frame, but a customized design. ...
1
by: Jean Bredeche | last post by:
Hi: I am trying to create customized confirmation/error/etc dialogs in my application. Up to now we've been using MessageBox.Show and passing it the various necessary flags (buttons, icons,...
0
by: Chris | last post by:
To centralize much of the database connectivity and variable declarations, I decided it would make sense to create my own class that inherits from the page class and derive each of my form classes...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
0
by: segal.aviad | last post by:
Hi, I'm trying to create a customized setup project for my application. I want to write a setup project which will install several merge modules (- this I know how to do). Before running the...
5
by: RedHair | last post by:
I have a ASP.NET 2.0 web page which inherits a customized base page class and have a master page, their relation is as below Customized base page class --> web page --> master page How to...
7
by: SteveT | last post by:
I would like to create a customized DataGridViewColumn called DataGridViewCheckedListBoxColumn. I'd like the ability to multi-select items in the list. Does anyone know of an example of how this...
2
by: MLM450 | last post by:
I am creating various customized open file dialogs. When I display one of my large dialogs followed by one of the smaller dialogs, you can see the smaller dialog resize itself from the larger...
6
by: Victor | last post by:
Hi. all I have a customize web control. I have three simple properties and customized render class. then I add this control into my datalist like <asp:DataList ID="datalist" runat="server"...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.