From bc77101e73f5fdf8eeddf9bbb1d434fb396fb089 Mon Sep 17 00:00:00 2001 From: Jason Oster Date: Tue, 7 Jul 2009 15:22:21 +0000 Subject: Move Nice-Title configuration variables to the top of the script --- nicetitle/nicetitle.js | 21 +++++++++++---------- 1 file 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(); -- cgit v1.2.3