Update of /cvsroot/phpicalendar/phpicalendar/nicetitle
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2954/nicetitle
Modified Files:
nicetitle.js
Log Message:
Move Nice-Title configuration variables to the top of the script
Index: nicetitle.js
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/nicetitle/nicetitle.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** nicetitle.js 7 Jul 2009 14:48:29 -0000 1.1
--- nicetitle.js 7 Jul 2009 15:22:21 -0000 1.2
***************
*** 4,17 ****
*/
- 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
--- 4,7 ----
***************
*** 28,31 ****
--- 18,32 ----
+ // 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;
|