forked from pmengal/MailSystem.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrorDialog.js
More file actions
32 lines (32 loc) · 1.09 KB
/
ErrorDialog.js
File metadata and controls
32 lines (32 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var opacity = 0;
function ShowErrorDialog(Description,Message)
{
document.getElementById("ErrorMessage").innerHTML = Description+" : <br /><br />"+Message+"<br /><br /><a style=\"text-decoration:none;color:darkblue;\" href=\"javascript:void(0)\" onclick=\"HideErrorDialog();\">Close</a>";
document.getElementById("ErrorDialog").style.left = "200px";
document.getElementById("ErrorDialog").style.top = "135px";
DoFadeIn();
//document.getElementById("ErrorDialog").style.filter = "Alpha(Opacity=50)";
}
function DoFadeIn()
{
document.getElementById("ErrorDialog").style.filter = "Alpha(Opacity="+opacity+")";
opacity += 10;
if(opacity<90) setTimeout("DoFadeIn()",50);
}
function DoFadeOut()
{
document.getElementById("ErrorDialog").style.filter = "Alpha(Opacity="+opacity+")";
opacity -= 10;
if(opacity>0) setTimeout("DoFadeOut()",50);
else
{
document.getElementById("ErrorDialog").style.filter = "Alpha(Opacity=0)";
document.getElementById("ErrorDialog").style.left = "-350px";
document.getElementById("ErrorDialog").style.top = "-130px";
}
}
function HideErrorDialog()
{
opacity = 80;
DoFadeOut();
}