HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... float or stay on top status for module
float or stay on top status for module
  View type:
I love this program helps me alot. I would like to make modules that will stay on top of other web pages for tutoral purposes. I want the students to have a module that is a tutoral that will stay on top of a remote web site that they open

thanks
 
What your trying to do is to force the OS into abandoning its usual behaviour of shifting focus onto the active or a child window in browsers and bringing it to the front. Effectively you want to modify the z index of the application.
In windows there's two obvious ways to do this one is to patch the system and the other is to modify the application itself.
Firstly you could patch your system with something like Elias Fotinis Deskpins. http://users.forthnet.gr/pat/efotinis/programs/deskpins.html this will let you optionally keep a specific window at the top of the display stack.
Or you can modify the window and child windows that Courselab itself opens.
Adding a little bit of script to the file start in the folder 1 of the module should help.
The script is
<script type="text/javascript" language="javascript">
onblur = function() {
setTimeout('self.focus()',100);
}
</script>
It should be put somewhere inbetween the HEAD tags.
What it does is whenever the window is blurred (not selected and in focus) it brings it back into focus. This means you cover it and it pops back up to the top of the pile.
 
 
LOL Forgot that would happen !!

"<script type="text/javascript" language="javascript">

onblur = function() {
setTimeout('self.focus()',100);
}

</script>"
 
 
 
Xscript type="text/javascript" language="javascript"Y

onblur = function() {
setTimeout('self.focus()',100);
}

X/scriptY

Replace the X's with < and the Y's with >
Subject:
Message options
No additional options