Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Hourglass using ASP

Status
Not open for further replies.

notrut

Programmer
Feb 6, 2002
87
CA
Hi,

I have created a JavaScript file that does some validation before a page is submitted. Is it possible to have an hourglass displaying while the validation script is running???

Any help would be greatly appreciated!!
 
you could use the style="cursor: wait" and InnerHTML on the body tag so whan the user submits the form the cursor goes to the wait pointer (hourglass)
 
Try this got some from somepeople.net

<html>
<head>
<script language=&quot;JavaScript&quot;>
function PageWait(id, newClass)
{
identity=document.getElementById(id);
identity.className=newClass;
}
</script>
<style>
.NormBody { color: arrow }
.WaitBody { cursor: wait }
</style>
<title>Untitled Document</title>
</head>

<body class=&quot;NormBody&quot; ID=&quot;BodyInfo&quot;>
<p onclick=&quot;PageWait('BodyInfo', 'WaitBody')&quot;>Change cursor </p>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top