I'm not sure what you have in mind but, here is a working example of what I think you are talking about using javascript:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.dir {
visibility:hidden;
}
</style>
<script type="text/javascript">
var thepoll, thewin, unseen=1, count=0, thepages=['some.htm', 'another.htm', 'more.htm', 'additional.htm'];
function goPage(dir){
if(dir==1)
count=count<thepages.length-1? count+1 : 0;
else if (dir==-1)
count=count>0? count-1 : thepages.length-1;
else
count=0
thewin=window.open(thepages[count],'mywin','width=300, height=300, top=200, left=100');
thewin.focus();
thepoll=setInterval("pollThewin()", 700)
}
function unHide(el){
if(unseen)
for (var i_tem = 0; i_tem < document.links.length; i_tem++)
if (document.links[i_tem]==el){
document.links[i_tem-1].style.visibility=document.links[i_tem+1].style.visibility='visible';
el.style.visibility='hidden';
unseen=0;
}
}
function pollThewin(){
if (typeof thewin.name=='string')
return;
clearInterval(thepoll)
for (var i_tem = 0; i_tem < document.links.length; i_tem++)
if (document.links[i_tem].className=='dir'){
document.links[i_tem].style.visibility=document.links[i_tem+1].style.visibility=document.links[i_tem+2].style.visibility='';
unseen=1;
break;
}
}
</script>
</head>
<body>
<a class="dir" href="javascript:goPage(-1);">Previous</a> <a href="javascript:goPage(0);" onclick="unHide(this);return true;">Begin</a> <a class="dir" href="javascript:goPage(+1);">Next</a>
</body>
</html>
Bookmarks