aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2009-07-07 15:22:21 +0000
committerJason Oster <parasytic@users.sourceforge.net>2009-07-07 15:22:21 +0000
commitbc77101e73f5fdf8eeddf9bbb1d434fb396fb089 (patch)
treee29d6bf4c6a5afe823ec66895f37972c50e854af
parentf36d3298f0401e4fb1ca131d18d51d3d47e39818 (diff)
downloadphpicalendar-bc77101e73f5fdf8eeddf9bbb1d434fb396fb089.tar.gz
phpicalendar-bc77101e73f5fdf8eeddf9bbb1d434fb396fb089.tar.bz2
phpicalendar-bc77101e73f5fdf8eeddf9bbb1d434fb396fb089.zip
Move Nice-Title configuration variables to the top of the script
-rw-r--r--nicetitle/nicetitle.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/nicetitle/nicetitle.js b/nicetitle/nicetitle.js
index 62e3229..8fbc97d 100644
--- a/nicetitle/nicetitle.js
+++ b/nicetitle/nicetitle.js
@@ -3,16 +3,6 @@
* http://www.kryogenix.org/code/browser/nicetitle/
*/
-addEvent(window, "load", makeNiceTitles);
-
-
-// Get script self directory
-var src = document.getElementById("nicetitle").src.split("/");
-src.pop();
-src = src.join("/");
-
-// Pre-load background PNG
-(new Image()).src = src + "/ntbg.png";
// Start configuration
var SHOW_LINKS = false; // Set to false to disable showing link URLs
@@ -27,6 +17,17 @@ var MOUSE_OFFSET = 15; // Define the distance to place the title from the mouse
// End configuration
+// Let the magic begin...
+addEvent(window, "load", makeNiceTitles);
+
+// Get script self directory
+var src = document.getElementById("nicetitle").src.split("/");
+src.pop();
+src = src.join("/");
+
+// Pre-load background PNG
+(new Image()).src = src + "/ntbg.png";
+
var XHTMLNS = "http://www.w3.org/1999/xhtml";
var CURRENT_NICE_TITLE;
var browser = new Browser();

© 2014-2024 Faster IT GmbH | imprint | privacy policy