neil9999
12-18-2003, 12:38 PM
Hi,
I have a function resize() called up several times on the page but with different information in the brackets. I need to find the first time the function is called up on the page, and run the function according to the information in the brackets. There should be a five second gap, then it finds the second time the function is called up etc.
Eg.
If my code was:
<body>
<button onclick="resize('cat','2')">Cat</button>
<button onclick="resize('dog','1')">Dog</button>
<button onclick="resize('rhino','7')">Rhino</button>
</body>
Then when my page is loaded, resize('cat','2') would be called up. After five seconds resize('dog','1') would be run and after another five seconds resize('rhino','7') would be run. After another five seconds it would go back to the start and run resize('cat','2') again.
I hope you can help,
Thanks,
Neil
I have a function resize() called up several times on the page but with different information in the brackets. I need to find the first time the function is called up on the page, and run the function according to the information in the brackets. There should be a five second gap, then it finds the second time the function is called up etc.
Eg.
If my code was:
<body>
<button onclick="resize('cat','2')">Cat</button>
<button onclick="resize('dog','1')">Dog</button>
<button onclick="resize('rhino','7')">Rhino</button>
</body>
Then when my page is loaded, resize('cat','2') would be called up. After five seconds resize('dog','1') would be run and after another five seconds resize('rhino','7') would be run. After another five seconds it would go back to the start and run resize('cat','2') again.
I hope you can help,
Thanks,
Neil