updating to new WineHQ design

This commit is contained in:
Jeremy Newman
2008-12-05 16:44:29 -06:00
parent e738a6d58e
commit acccbed63a
30 changed files with 597 additions and 285 deletions

23
utils.js Normal file
View 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