Since Moodle does not fully support SCORM 2004 and with SCORM 1.2 SCOs are completely unaware of each other, it seems unlikely that navigation within your SCO would do any good. Luckily for us, Moodle provides navigation buttons for us to get us from one SCO to the other. This navigation is still outside the SCO though. Let's say you wanted have the SCO open in a new window and have the navigation buttons inside that popup, well with a bit of clever javascript, you can.
Make sure "Hide navigation buttons" is set to "No" inside your SCORM activity and drop this code inside your HTML resource that your SCO references.
<script type="text/javascript">
var p;
var n;
var e;
window.Xonload= function() { //Should be window.onload not window.Xonload, not sure what this text editor is doing
init();
}
function init() {
p = window.opener.document.getElementsByName("prev");
if (p.length == 1) {
p[0].style.visibility = "hidden";
document.getElementById("lbBack").className = "";
}
n = window.opener.document.getElementsByName("next");
if (n.length == 1) {
n[0].style.visibility = "hidden";
document.getElementById("lbNext").className = "";
}
var elements = window.opener.document.getElementsByTagName("div");
for (i = 0; i < elements.length; i++) {
if (elements[i].className == "navbutton") {
elements[i].style.visibility = "hidden";
e = elements[i].getElementsByTagName("a")[0].href;
i = elements.length;
}
}
setComplete();
}
function next() {
n[0].click();
}
function previous() {
p[0].click();
}
function exit() {
window.opener.location.href=e;
window.close();
}
</script>
The javascript finds the buttons, stores them, hides themand then "clicks" them when you click your buttons inside your SCO.
Pretty cool eh?