hi all, i would like to ask for help on div/layer for my webpage.
this is my code
[CODE]
<html>
<HEAD><TITLE>Handling Keyboard Shortcuts in JavaScript</TITLE>
<script language=”JavaScript1.2″>
if (document.layers)
document.captureEvents(Event.KEYPRESS)
function backhome(e){
var targeturl=”digital-alarm-clock(edit).swf”
if (document.layers||document.getElementById&&!document.all){
if (e.which==104||e.which==72)
window.location=targeturl
}
else if (document.all){
if (event.keyCode==104||event.keyCode==72)
window.location=targeturl
}
}
document.onkeypress=backhome
//–>
</script>
</head>
<body>
dd
</body>
</html>
however from this code , the way the alarm is displayed is not what we wnated,after H key is press,the alarm will come out over-lapping the orginal webpage, but what we wanted is to let it silde in horizontally using a div/layer method in the same html page.
would hope there there is any kind soul who can help me with this troublesome code T_T