I need help!
I have created a very basic (still learning!)CBL template using DreamWeaver. Everything is going well except for the navigation bar. I am wanting to create a next and previous button, where they can literally go back one page and forward one page etc.
So I come up with the following code:
[b][COLOR=darkblue]
<SCRIPT LANGUAGE=”JavaScript”>
<!–
function go(prf) {
var text = self.location.href;
var pos = text.indexOf (prf);
var poslng = prf.length;
var num = text.substring(pos+poslng,pos+poslng+3) – 0 + dir;
num = (num < 10) ? “00” + num : ( (num < 100) ? “0” + num : num);
window.location.href = text.substring(0,pos+poslng) +
num +
text.substring(pos+poslng+3,text.length);
}
//–>
</SCRIPT>
From what I can tell – this will search dir with a number. eg fire001.htm, fire002.htm, fire003.htm and lets it advance by following the numbers up to 999.
Well.. it won’t work.. Every time I view it in browser – nothing happens when I click on link. ? Why?
Could someone please help me??
Thanks!