So I have this code:
<script language="JavaScript">
var cheatCode = "all your base are belong to us".toUpperCase();
var codeIndex = 0;
function executeCheat() {
alert("h4x3d!!!1!11");
}
function codeHandler(e) {
if(!e) e = window.event;
var k = e.keyCode? e.keyCode: e.which;
if(!(k==cheatCode.charCodeAt(codeIndex++))) {
codeIndex = 0;
return;
}
else if(codeIndex==cheatCode.length) executeCheat();
}
document.addEventListener? document.addEventListener("keydown", codeHandler, false): document.attachEvent("onkeydown", codeHandler);
</script>
But instead of it opening the alert, I want it to open a iframe:
<a href="example.jpg" rel="lightbox[1337]" title="h4x3d!!!1!11">all your base are belong to us</a>
But this is not a ordinary iframe. It doesn't have a separate url, so I couldn't place a script code in the parent url:
http://www.dynamicdrive.com/dynamici...box2/index.htm
So what do I do?