Abraham / Fernando,
What am i missing here…?
i am putting in this code, and it all works ok as it should, with the click on window 1 bringing in the text PUT HTML 1 HERE etc etc,
Now, i want to put in a link to an image… So how should this look???
Sorry to be such a dumb dumb… The code given is below, and i am guessing the only thing i need to chage is highlighted bold, but still not sure how to put it in there correctly.
function clicker(wind){
var thediv=document.getElementById('displaybox');
if(thediv.style.display == "none"){
thediv.style.display = "";
var myWins=new Array();
myWins[1]="<b>PUT HTML 1 HERE</b>";
myWins[2]="PUT HTML 2 HERE";
myWins[3]="3 And so on...";
thediv.innerHTML = myWins[wind];
}else{
thediv.style.display = "none";
thediv.innerHTML = '';
}
return false;
}
Then you’ll want to modify the click link to call for the correct window…
<a href='#' onclick='return clicker(1);'>Open Window 1</a>
<a href='#' onclick='return clicker(2);'>Open Window 2</a>
<a href='#' onclick='return clicker(3);'>More Windows...</a>
Richard Williams