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.
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)
}
}
Thread
Thread Starter
Forum
Replies
Last Post
hedgecutter
General Technical
3
Sep 25, 2015 02:35 PM



