I truely don't have any real understanding for any of the html, java, or any other code as far as that's concerned.
Details in lamins terms are very important, or even better yet a laid out example on what it should look like.
I
Although this script is something I have never tried before, except the area I just placed it on my site now. It is useing </ilayer>'s, so I don't have a CLUE if my question's are totally out there or not.
I have a three part question, when it comes to this script.
My first question is, with the following script "HOW can I get the source to show up in multiable areas on the same page?" (e.g. Top, middle, bottom)
I place this where I want my banners to show,
QUOTE
<ilayer id="l1">
<layer id="l2">
<div id="l1">
<div id="l3" style="position:relative">
</div>
</div>
</layer>
</ilayer>
<layer id="l2">
<div id="l1">
<div id="l3" style="position:relative">
</div>
</div>
</layer>
</ilayer>
This is the script
QUOTE
<script language="JavaScript">
var bannerArray = new Array();
var myCount=0;
// Banner Code Assignment
bannerArray[0] = "<A HREF=\"http://www.location.com/affilite1\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[1] = "<A HREF=\"http://www.location.com/affilite2\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[2] = "<A HREF=\"http://www.location.com/affilite3\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerRotate();
function bannerRotate() {
if(myCount > bannerArray.length-1){myCount=0;}
// Write out rotation
if (document.all){ // it is IE
document.all.l3.innerHTML=bannerArray[myCount];
}
else if (document.layers){ // it is NN
document.layers.l1.document.layers.l2.document.open();
document.layers.l1.document.layers.l2.document.write(bannerArray[myCount]);
document.layers.l1.document.layers.l2.document.close();
}
setTimeout("bannerRotate()", 9000);
myCount++;
}
// -->
</script>
var bannerArray = new Array();
var myCount=0;
// Banner Code Assignment
bannerArray[0] = "<A HREF=\"http://www.location.com/affilite1\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[1] = "<A HREF=\"http://www.location.com/affilite2\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[2] = "<A HREF=\"http://www.location.com/affilite3\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerRotate();
function bannerRotate() {
if(myCount > bannerArray.length-1){myCount=0;}
// Write out rotation
if (document.all){ // it is IE
document.all.l3.innerHTML=bannerArray[myCount];
}
else if (document.layers){ // it is NN
document.layers.l1.document.layers.l2.document.open();
document.layers.l1.document.layers.l2.document.write(bannerArray[myCount]);
document.layers.l1.document.layers.l2.document.close();
}
setTimeout("bannerRotate()", 9000);
myCount++;
}
// -->
</script>
This rotates my banners every ten seconds to the next one in line, along with a hyper link to that banner showing at the time.
The second question is the same as the one I had with the script "undejj" helped me with. "Is there also a way I can run more then one of this same script on the same page?" (If so can you please also help with an example layout like "undejj" ended up having to do to help me before?")
What I am thinking about doing with the second question part is, take one for each of my affiliate programs. Load all that affiliate happens to have or that I want to use on one script and run it on area of a page. Then do the same with a different affiliate.
The thrid part of the question, "Is there a way I can open the links in pop-up where there is NO ADDRESS BAR, through like another java call script like this one tied into it. (e.g. only.) Say I called this script to the same page
QUOTE
<script language="JavaScript">
function affilite1(URL,name)
{
new_window1 = window.open("http://www.location.com/affilite1","affilite1", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=20,top=0,resizable=0,width=800,height=510");
}
function affilite2(URL,name)
{
new_window2 = window.open("http://www.location.com/affilite2","affilite2", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=20,top=0,resizable=0,width=800,height=600");
}
function affilite3(URL,name)
{
new_window3 = window.open("http://www.location.com/affilite3","affilite3", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=20,top=0,resizable=0,width=800,height=600");
function affilite1(URL,name)
{
new_window1 = window.open("http://www.location.com/affilite1","affilite1", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=20,top=0,resizable=0,width=800,height=510");
}
function affilite2(URL,name)
{
new_window2 = window.open("http://www.location.com/affilite2","affilite2", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=20,top=0,resizable=0,width=800,height=600");
}
function affilite3(URL,name)
{
new_window3 = window.open("http://www.location.com/affilite3","affilite3", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=20,top=0,resizable=0,width=800,height=600");
I was thinking something like this? I have NO CLUE if this can even be done or just going to be a good laugh for some of you.(lol)
QUOTE
<script language="JavaScript">
var bannerArray = new Array();
var myCount=0;
// Banner Code Assignment
bannerArray[0] = "<a href="javascript:affilite1();"\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[1] = "<a href="javascript:affilite2();\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[2] = "<a href="javascript:affilite3();\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerRotate();
function bannerRotate() {
if(myCount > bannerArray.length-1){myCount=0;}
// Write out rotation
if (document.all){ // it is IE
document.all.l3.innerHTML=bannerArray[myCount];
}
else if (document.layers){ // it is NN
document.layers.l1.document.layers.l2.document.open();
document.layers.l1.document.layers.l2.document.write(bannerArray[myCount]);
document.layers.l1.document.layers.l2.document.close();
}
setTimeout("bannerRotate()", 9000);
myCount++;
}
// -->
</script>
var bannerArray = new Array();
var myCount=0;
// Banner Code Assignment
bannerArray[0] = "<a href="javascript:affilite1();"\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[1] = "<a href="javascript:affilite2();\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerArray[2] = "<a href="javascript:affilite3();\" target=\"_blank\"><IMG SRC=\"http://www.location.com/yourbanner.gif\" border=\"0\" width=\"468\" height=\"60\"></A>";
bannerRotate();
function bannerRotate() {
if(myCount > bannerArray.length-1){myCount=0;}
// Write out rotation
if (document.all){ // it is IE
document.all.l3.innerHTML=bannerArray[myCount];
}
else if (document.layers){ // it is NN
document.layers.l1.document.layers.l2.document.open();
document.layers.l1.document.layers.l2.document.write(bannerArray[myCount]);
document.layers.l1.document.layers.l2.document.close();
}
setTimeout("bannerRotate()", 9000);
myCount++;
}
// -->
</script>
I have again NO CLUE if that would even be able to be done, but I think you should at least see what it is I'm after as the final aspects.
If anyone would be nice enough again to HELP ME out here and show me how, I would be most thankful.