Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VB timeout script

    I have written some timout code in VB script for a selection of websites i have created.

    Basically the VBscript is supposed to detect if no mouse clicks or keyboard presses have been made.

    Basically, i need to know how to insert the vbscript to affect all the webpages i created. i.e. can i just insert the script in a single place to affect the whole thing? if so, how?

    Many many thanks in advance

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Put the following between the head tags on every page.

    Code:
    <script type="text/vbscript" src="myscript.vs"></script>

  • #3
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thats great thanks...

    Just wondering tho, suppose my site consisted of over a hundred odd pages... would i still have to insert this bit of code onto everyone? or would there be a more efficient way of doing it with this amount of pages?

    thanks again

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Unfortunately, I don't think you could do it any other way.

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Also know that only in IE will your script ever run. VBScript in browsers is a M$ only thing. Javascript would be a better idea.
    OracleGuy


  •  

    Posting Permissions

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