Hi, I am trying to get this code to work in IE.[B] It works on Firefox[I]code[I]code
Here’s the code, any help would be much appreciated. By the way I put this function in the HEAD section.
[code=php]window.onkeydown = function(event)
{
// No space scrolling!
switch (event.keyCode)
{
case 32: return false; break;
case 38:
{
if (rB_Script.last_item <= 1000)
{
return;
}
else
{
rB_Script.focus_on_step(rB_Script.last_item – 1);
}
return false; break;
}
case 40:
{
if (rB_Script.last_item >= rB_Script.final_item)
{
return;
}
else if (rB_Script.last_item != -1)
{
rB_Script.focus_on_step(rB_Script.last_item + 1);
}
else
{
rB_Script.focus_on_step(1000);
}
return false; break;
}
}
}
[B]Thank you very much!