home *** CD-ROM | disk | FTP | other *** search
/ business-86-101-185-173.business.broadband.hu / business-86-101-185-173.business.broadband.hu.zip / business-86-101-185-173.business.broadband.hu / trans / sqlncli2005_x64.msi / sqlncli.chm.91A5E41F_8A38_40FB_BC6E_28CA47D512BD / local / script.js < prev    next >
Text File  |  2005-08-01  |  570b  |  18 lines

  1. // updated from DevDiv
  2. var jsPath = scriptPath();
  3.  
  4. writeCSS(jsPath);
  5.  
  6. function scriptPath() { 
  7. //Determine path to JS-the CSS is in the same directory as the script
  8.     var spath = document.scripts[document.scripts.length - 1].src;
  9.     spath = spath.toLowerCase();
  10.     return spath.replace("script.js", "");
  11. }
  12.  
  13. function writeCSS(spath) {
  14.     document.writeln('<SCRIPT SRC="' + spath + '\script_loc.js"></SCRIPT>');
  15.     document.writeln('<SCRIPT SRC="' + spath + '\script_main.js"></SCRIPT>');
  16.     document.writeln('<SCRIPT SRC="' + spath + '\script_fb.js"></SCRIPT>');
  17. }
  18.