What is it? It is a simple plugin allowing you to control some things which the javascript cannot normally do, like getting the content of the home directory! I do this simple; each function comes with an explanation and a usage example.
hideControlBox
Code: Select all
jsYossGeneral.hideControlBox(true);
Call with false to make them show regardless of any mouse movements.
hideMouse
Code: Select all
jsYossGeneral.hideMouse(true);
You could probably get this working with some hideous javascript calls, but this is easier!
Call with false to always show mouse pointer.
getHomeDirectoryFiles
Code: Select all
var imgs = jsYossGeneral.getHomeDirectoryFiles("*.jpg|*.png|*.gif");
fileNames = imgs.split(";");
The search-pattern can be used to filter specific file format(s).
Example:
Code: Select all
var files = jsFileLoader.getHomeDirectoryFiles("*.html|*.js");
First the html files, then the js files, the order you specify in the search pattern.
See screen saver yoss_slideshow.js for a working example!