Javascript Bug
#1
Javascript Bug
Hi guys,
Can someone please fix the javascript error in Line 414. "BeginClip undefined".
I get this when a page is refreshed.
Most people might not get this if they have 'Disable script debugger checked in their browser advanced settings'
Many thanks.
Can someone please fix the javascript error in Line 414. "BeginClip undefined".
I get this when a page is refreshed.
Most people might not get this if they have 'Disable script debugger checked in their browser advanced settings'
Many thanks.
#2
To be more specific, here is the function causing the problem, with the 'buggy' line in bold.
function highlightmsg(){
var msgwidth=crosstick.offsetWidth
if (clipwidth<msgwidth){
clipwidth+=highlightspeed
crosstick.style.clip="rect(0px "+clipwidth+"px auto 0px)"
beginclip=setTimeout("highlightmsg()",20)
}
else{
clipwidth=0
clearTimeout(beginclip)
if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}
}
function highlightmsg(){
var msgwidth=crosstick.offsetWidth
if (clipwidth<msgwidth){
clipwidth+=highlightspeed
crosstick.style.clip="rect(0px "+clipwidth+"px auto 0px)"
beginclip=setTimeout("highlightmsg()",20)
}
else{
clipwidth=0
clearTimeout(beginclip)
if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}
}
#6
OK guys, fair enough. Sorting these bugs out is one of the many things on the list, but it had been set at a lower priority as I hadn't thought about people who get the pop up error messages.
Thread
Thread Starter
Forum
Replies
Last Post
hedgecutter
General Technical
3
25 September 2015 02:35 PM