Hi,
As sponsors often don't pay, I decided to use three. As I don't want to annoy visitors with three popup's, I want to randomly choose one of the three at each visit.
The problem is that they don't use the same way to open their popup so it isn't very easy to make it work together.
Here's the code I try to make work (like this it doesn't) :
Opener page :
<html>
<head>
<title>Opener page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="Js/Rndmpop.js" language="JavaScript">
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
Rndmpop.js :
var currentdate = 0;
var core = 0;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this = initArray.arguments;
}
}
link = new initArray(
"<SCRIPT LANGUAGE=JAVASCRIPT> var account = 'xxxx';var category = '0';</SCRIPT><SCRIPT LANGUAGE=JAVASCRIPT SRC=\""<SCRIPT LANGUAGE=JAVASCRIPT> <!-- window.open('location,'ocimp','toolbar=1,location=1,status=1,menubar=1,
scrollbars=1,resizable=1'); if (window.focus)
{window.focus();}// --></SCRIPT>",
"<SCRIPT LANGUAGE=JAVASCRIPT> <!-- window.open('menubar=1,scrollbars=1,resizable=1'); // --></SCRIPT>"
);
currentdate = new Date();
core = currentdate.getSeconds() % image.length;
var ranlink = link[core];
document.write(ranlink);
If you know why it doesn't work, or have another idea, that would be great to drop me a line.
Thanks a lot
NaGaZaKi
As sponsors often don't pay, I decided to use three. As I don't want to annoy visitors with three popup's, I want to randomly choose one of the three at each visit.
The problem is that they don't use the same way to open their popup so it isn't very easy to make it work together.
Here's the code I try to make work (like this it doesn't) :
Opener page :
<html>
<head>
<title>Opener page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="Js/Rndmpop.js" language="JavaScript">
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
Rndmpop.js :
var currentdate = 0;
var core = 0;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this = initArray.arguments;
}
}
link = new initArray(
"<SCRIPT LANGUAGE=JAVASCRIPT> var account = 'xxxx';var category = '0';</SCRIPT><SCRIPT LANGUAGE=JAVASCRIPT SRC=\""<SCRIPT LANGUAGE=JAVASCRIPT> <!-- window.open('location,'ocimp','toolbar=1,location=1,status=1,menubar=1,
scrollbars=1,resizable=1'); if (window.focus)
{window.focus();}// --></SCRIPT>",
"<SCRIPT LANGUAGE=JAVASCRIPT> <!-- window.open('menubar=1,scrollbars=1,resizable=1'); // --></SCRIPT>"
);
currentdate = new Date();
core = currentdate.getSeconds() % image.length;
var ranlink = link[core];
document.write(ranlink);
If you know why it doesn't work, or have another idea, that would be great to drop me a line.
Thanks a lot
NaGaZaKi