Click to See Complete Forum and Search --> : OnLoad Error
capone
Jun 28th, 2000, 11:44 PM
I keep getting an error on my page when I put the tag:
<BODY onload="startTimer()">
into the web page. It keeps telling me that there is a ";" expected, but I've checked Mark Sreeves' (and the few additions I've made) code, and I can't ifnd a missing ; and it's not that long a script so I probably not missing it. Can something else cause this?
noone
Jun 30th, 2000, 12:25 PM
try this:
<BODY onload="startTimer();">
keetsh
Jul 16th, 2000, 03:32 PM
Nope <body onload="startTime()"> is the correct syntax..
Capone, post your code, it would be helpful :)
First make sure you didn't forget a ";" in your function and it's formatted:
<script language="Javascript">
function startTimer(){
...
}
</script>
Hope this helps...
See you, keetsh
keetsh
Jul 16th, 2000, 05:07 PM
Well... according to you denniswrenn there would be a difference between:
<object onMouseOver="callfunction(param)">
//and
</object onmouseover="callfunction(param)">
I'm sorry, but there aren't any! :)
keetsh
yes there is,
whenever I try to use onMouseover or onClick and dont capitalize the M or C is does not work
Psyrus
Jul 17th, 2000, 01:53 PM
Are you using a freehost such as Geocities? If so it could be an error in their banner code, it's happened to me before with them.
Crypt
Jul 17th, 2000, 08:19 PM
what browser do you use dennis ?and what version of it?
I'm lazy when it comes to java scripts, and usually forget about capitalising, but it has always works for me, for example when I use the onMouseOver event I usually type it in lower case and it has always worked for me.
keetsh
Jul 18th, 2000, 02:47 AM
hummm thanks for supporting my opinion.. :)
Unless you're not using NN 2 I'm not sure it wouldn't work.. actually, it works well with NN 4 and IE 4 and up
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.