[thelist] VB question

Lee Martin lee at stumpymoose.com
Mon Jan 20 15:36:00 CST 2003


Hello all. I'm new to this list. Been reading the list for a while, and
now I need a little help.

This script works fine the first few times, but if I go back to the
page, the value for the time appears to accumulate, forcing each result
into the final condition. After a few visits, you only get directed to
splashpage5.htm. Is this what is happening? How can I reset this at the
end of the statement?

<script type="text/vbscript">
t=second(time)
select case t
case 1
window.open "splashpage1.htm"
case 2
window.open "splashpage1.htm"
case 3
window.open "splashpage2.htm"
case 4
window.open "splashpage2.htm"
case 5
window.open "splashpage3.htm"
case 6
window.open "splashpage3.htm"
case 7
window.open "splashpage4.htm"
case 8
window.open "splashpage4.htm"
case 9
window.open "splashpage5.htm"
case else
window.open "splashpage5.htm"
end select
</script>


Lee
http://www.super71.com





More information about the thelist mailing list