Just configured from Wine's GIT
svn path=/; revision=1
This commit is contained in:
23
utils.js
Normal file
23
utils.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
Misc JavaScipt for WineHQ
|
||||
*/
|
||||
|
||||
// include a file from js scripts dir
|
||||
function include_dom (script_filename) {
|
||||
var html_doc = document.getElementsByTagName('head').item(0);
|
||||
var js = document.createElement('script');
|
||||
js.setAttribute('language', 'javascript');
|
||||
js.setAttribute('type', 'text/javascript');
|
||||
js.setAttribute('src', script_filename);
|
||||
html_doc.appendChild(js);
|
||||
return false;
|
||||
}
|
||||
|
||||
// load and execute jquery IE6 PNG fix
|
||||
include_dom("jquery.pngfix.js");
|
||||
jQuery(function($) {
|
||||
$("img[@src$=png]").pngfix(); /* all img tags with .png extension */
|
||||
$("#tabs li").pngfix(); /* top tabs li backgrounds */
|
||||
});
|
||||
|
||||
// done
|
||||
Reference in New Issue
Block a user