BackNext
3.6 Hide the forward buttons for a prescribed amount of time |
To hide the forward bottom for a prescribed amount of time:
- Here is the code to hide the forward buttons for a prescribed amount of time.
- On the page where you want to put this into effect, click on the Advanced button.
- This code goes between the <head> and </head> elements.
<style type="text/css">
#fwdbtntop {display:none;}
#fwdbtnbot {display:none;}
</style>
<script type="text/javascript">
function getElem(nam) {
if(document.all) {
return document.all[nam];
} else if(document.getElementById) {
return document.getElementById(nam);
} else {
for (iLayer = 1; iLayer < document.layers.length; iLayer++) {
if(document.layers[iLayer].id == nam)
return document.layers[iLayer];
}
}
return null;
}
function ShowFwd() {
var fwdbtn = getElem("fwdbtntop");
if (fwdbtn) {
fwdbtn.style.display = "inline";
}
var fwdbtn = getElem("fwdbtnbot");
if (fwdbtn) {
fwdbtn.style.display = "inline";
}
}
setTimeout("ShowFwd()", 5000);
</script>
- Timing is in milliseconds. The "5000" found at the bottom of the code will hide the forward button for five seconds. Change this number if you want the right arrow to be hidden for more time.