Results 1 to 1 of 1

Thread: quick javascript popup question [resolved - please ignore]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    quick javascript popup question [resolved - please ignore]

    Guys

    This....

    VB Code:
    1. <%
    2. session.timeout = 60
    3.  
    4. Dim rdDate
    5. Dim rdWDay
    6. Dim rdTime
    7. Dim postit
    8.  
    9. rdDate = Date()
    10. rdWDay = WeekDay(rdDate)
    11. rdTime = Time()
    12.  
    13. If rdWDay >= 2 AND rdWDay <= 6 then
    14.  
    15.     If rdTime >= #9:00:00 AM# AND rdTime <= #5:30:00 PM# then
    16.         postit = true
    17.     Else
    18.         postit = false
    19.     End If
    20.  
    21. Else
    22.    
    23.     postit = false
    24.  
    25. End If
    26.  
    27. if postit = true then
    28.    
    29.     if session("postit") = "" then
    30.    
    31.         'show popup
    32.         %>
    33.        
    34.         <script language="javascript">
    35.        
    36.             window.open("postpop.htm");
    37.        
    38.         </script>
    39.        
    40.         <%session("postit") = "Loaded"
    41.     end if
    42.    
    43. end if
    44. %>

    ...seems to work ok however if I start adding any properties to the postpop.htm (height, width, toolbars=no etc) then it stops working. I don't get any errors or anything, just nothing happens.

    All I want to do is popup a 180x180 popup between certain times of certain days when the user hasn't already seen it.

    Any ideas?

    Cheers
    Last edited by thebloke; Jul 22nd, 2005 at 08:38 AM. Reason: resolved
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width