I threw this together, but only Safari (XP) supports it. Opera 10B and the latest Firefox don't seem to support the tag. XP has the named wavs or substitute your own:
I can't see immediately why that didn't work, but I made a quick example that demonstrates the principle. You should should be able to adapt it.
http://scripterlative.com/test/loading.htm
Presumably you're trying to get a reference to the first child element of the first <h3> element. elementPosition requires an object reference not a nodeName.
How do you intend to identify a 'very poor' browser without the risk of slandering your users?You'd probably want to assign that rule to the <body> tag. Just give it an id and execute:
...
Leaving aside the advisability of such a page, I don't see any difference - it's displaying both divs when there's no cookie, and neither when there is. Exactly what you've coded.
The answer (as usual) involves reading the error console, which is telling you that you're not allowed to do what you're attempting. You'll have to swap the element with another.
I think the string that replaces the script element is still being treated as code. Try removing the <script> element before replacing it.
Something like:
...
As a text book it would probably make a good paperweight.
Maybe that wasn't the complete example, but the function is referring to two non-existent objects.
Could you clarify exactly what you mean by 'repeat'?
If you mean 3 contiguous duplicate characters then you can use the expression from mrhoo. If you mean 3 duplicate characters in any position, you...
It means that document.minibus-hire.cost.value cannot be assigned a value. The - is making it look like a subtraction expression rather than presumably an element in a form named 'minibus-hire'. The...