View Full Version : VB timeout script

02-05-2004, 04:11 PM
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

02-05-2004, 05:53 PM
Put the following between the head tags on every page.

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

02-06-2004, 10:19 AM
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

02-06-2004, 05:29 PM
Unfortunately, I don't think you could do it any other way.

02-06-2004, 11:31 PM
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.