Answer the question
In order to leave comments, you need to log in
Does it stop tracking keys after updating the frame?
top.frames['main'].onkeydown = function(e) {
if (active==1)
{
e = e || window.event;
if(e.keyCode==data.key_hil_cmp && e.altKey==true)
{
//тут действия
}else if (e.keyCode==data.key_boy_cmp && e.altKey==true)
{
//тут действия
}else if (e.keyCode==data.key_hp && e.altKey==true)
{
//тут действия
}else if (e.keyCode==data.key_wp && e.altKey==true)
{
//тут действия
}else if (e.keyCode==data.key_all && e.altKey==true)
{
//тут действия
}
}
///////////////
}
setInterval(refresh,500);
var set;
function refresh(){
if (set!=top.frames['main'].location.search)
{
set=top.frames['main'].location.search;
///ну и тут код
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question