Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 1st, 2005, 01:25 AM
okl okl is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Singapore
Posts: 356 okl User rank is Private First Class (20 - 50 Reputation Level)okl User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 h 35 m 41 sec
Reputation Power: 4
Send a message via MSN to okl
write the output on html page

hi,

how can i change the dynamic output on window status bar into the document page ?

Code:
 <SCRIPT LANGUAGE="VBScript">
  <!--
  Dim intTimerID
  Dim hr
  Dim min
  Dim sec
 
 hr =<%=Session("Hr")%>'change hours
 min=<%=Session("Min")%>'change minutes
 sec=<%=Session("Sec")%>'change seconds
 
  Sub HandleTime
  if hr=0 and min=0 and sec=0 then
  endtime
  elseif min>=0 and sec>0 then
  sec=sec-1
  status= "Time Left: " & hr & " hr " & min & " min " & sec & " sec "
  intTimerID=setTimeOut("HandleTime",950, "VBScript")
  elseif min>0 and sec=0 then
  min=min-1
  sec=59
  status= "Time Left: " & hr & " hr " & min & " min " & sec & " sec "
  intTimerID=setTimeOut("HandleTime",950, "VBScript")
  elseif hr>=0 and min=0 then
  hr=hr-1
  min=59
  sec=59
  status= "Time Left: " & hr & " hr " & min & " min " & sec & " sec "
  intTimerID=setTimeOut("HandleTime",950, "VBScript")
  end if
 
  document.all.hours.value = Hr
  document.all.Mins.value = Min
  document.all.Secs.value = Sec
 
  End Sub
  Sub endtime
  cleartimeout intTimerID
  status = "Exam Time Ended"
  msgbox "Exam Time Is Up"
  Location.href = "end.asp"
 
 
 
  end sub
 
 
  status= "Time Left: " & hr & " hr " & min & " min " & sec & " sec "
  intTimerID=setTimeOut("HandleTime",950, "VBScript")
 
 
  -->
  </script>
 

Reply With Quote
  #2  
Old March 1st, 2005, 06:50 AM
skunapuli skunapuli is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: HYD-India
Posts: 6 skunapuli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 57 sec
Reputation Power: 0
Hi,

Do you want to display the content you have displaying on the status bar of browser on the browser page area?

If so you can use document.writeln() function to display the content you are displaying on the status bar.

Thanks & Regards,
Sriram.K
Comments on this post
okl disagrees!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > write the output on html page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway