PDA

View Full Version : links



cheatpark
February 11th, 2002, 13:15
I inserted this code into a page on my site which uses a php banner exchange. It told me to put in the following html code:



<iframe align=top width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="http://www.cheatpark.net/bannerphpexchange/engine.php?op=viewbanner&cid=2"></iframe>

I want to make the new page open in a new window so that visitors stay on my site. I tried target="_blank" but this does not work. Can someone help?

Blizzy
February 11th, 2002, 13:26
insert javascript in head:



<script language="JavaScript">

function popUpWindow() {
var popUp = window.open("","popup","scrollbars=no,width=468,height=60,status=no,resizable=yes,me nubar=no,location=no,left=100,top=100");
popUp.document.writeln("<html><head><title>banner exchange</title></head><body marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\">");
popUp.document.writeln("<iframe align=top width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src=\"http://www.cheatpark.net/bannerphpexchange/engine.php?op=viewbanner&cid=2\"></iframe>");
popUp.document.writeln("</body></html>");
}

</script>


and then within the body tag:



<body onLoad="popUpWindow();">


so there you go. i don't know if there are any bugs. .. if there are, tell me. typed this out without testing.

cheatpark
February 11th, 2002, 13:30
I don't think it works.

Sikes
February 11th, 2002, 15:11
Try putting this anywhere in your <body>, I would put it at the end so that your page loads first.. But put it anywhere. This is the code :


<script language="javascript">
window.open("www.cheatpark.net/bannerphpexchange/engine.php?op=viewbanner&cid=2", "newWin", "height=62, width=670,toolbar=no,scrollbars=no,menubar=no");
</script>


Thats what I came up with, I did some homework! ;)

cheatpark
February 11th, 2002, 15:16
I want it to happen when the banner is clicked on.

Sikes
February 11th, 2002, 17:11
Well.... I think what you need to do is just make an <a href=....><img...></a> and just make the target blank...

But its part of an exchange....... I have no clue... :confused2

cheatpark
February 11th, 2002, 17:13
Well my friend editted a php file for me and it does what I want it to now. I'm happy and it seemed pretty obvious when he showed me too.