Index: private/templates/header.tpl =================================================================== --- private/templates/header.tpl (revision 21246) +++ private/templates/header.tpl (working copy) @@ -28,6 +28,7 @@ } {/literal} +
|
-{html_image file="`$datadir`/`$mainlcd`/`$themes[td].shortname`/`$themes[td].sshot_wps`" href="`$datadir`/`$mainlcd`/`$themes[td].shortname`/`$themes[td].zipfile`"} +{if $themes[td].sshot_menu != ""} +{assign var="oversrc" value="`$datadir`/`$mainlcd`/`$themes[td].shortname`/`$themes[td].sshot_menu`"} +{else} +{assign var="oversrc" value=""} +{/if} +{html_image file="`$datadir`/`$mainlcd`/`$themes[td].shortname`/`$themes[td].sshot_wps`" href="`$datadir`/`$mainlcd`/`$themes[td].shortname`/`$themes[td].zipfile`" oversrc=$oversrc} Size: {$themes[td].size|siprefix}B Index: private/templates/TODO =================================================================== --- private/templates/TODO (revision 21246) +++ private/templates/TODO (working copy) @@ -2,7 +2,6 @@ MID TERM (add as soon as possible) - Validate .cfg files - Add a target detail editor - - Add a rollover switch to the menu picture (if available) LONG TERM (add later) - Allow uploaders to update themes - Forum login integration for admins (with the right badges) Index: public/rbscript.js =================================================================== --- public/rbscript.js (revision 0) +++ public/rbscript.js (revision 0) @@ -0,0 +1,54 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2009 by Maurus Cuelenaere + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +function addLoadEvent(func) +{ + var oldonload = window.onload; + if (typeof window.onload != 'function') + window.onload = func; + else + { + window.onload = function() + { + if (oldonload) + oldonload(); + func(); + }; + } +} + +function overSrcInit() +{ + var imgs = document.getElementsByTagName("img"); + for(var i=0; i |