oilarchive/oilarchive/static/js/archive.js
2007-03-30 16:06:06 +00:00

19 lines
No EOL
1 KiB
JavaScript

function mouseOver(id, view) {
if (view == 'IconLarge' || view == 'IconSmall')
document.getElementById(id).style.background = 'url(/static/images/item' + view + 'MouseOver.png)';
else {
document.getElementById(id + 'Left').style.background = 'url(/static/images/item' + view + 'LeftMouseOver.png)';
document.getElementById(id + 'Center').style.background = 'url(/static/images/item' + view + 'CenterMouseOver.png)';
document.getElementById(id + 'Right').style.background = 'url(/static/images/item' + view + 'RightMouseOver.png)';
}
}
function mouseOut(id, view) {
if (view == 'IconLarge' || view == 'IconSmall')
document.getElementById(id).style.background = 'url(/static/images/transparent.png)';
else {
document.getElementById(id + 'Left').style.background = 'url(/static/images/item' + view + 'LeftActive.png)';
document.getElementById(id + 'Center').style.background = 'url(/static/images/item' + view + 'CenterActive.png)';
document.getElementById(id + 'Right').style.background = 'url(/static/images/item' + view + 'RightActive.png)';
}
}