aboutsummaryrefslogtreecommitdiffstats
path: root/nicetitle
diff options
context:
space:
mode:
Diffstat (limited to 'nicetitle')
-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