Widget:Frontpagegallery: Difference between revisions
From CSDMS
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
<!--Widget:Frontpagegallery--> | <!--Widget:Frontpagegallery--> | ||
<style type="text/css"> | <style type="text/css"> | ||
.galleryview { font-size: 12px; font-family: Arial, Helvetica, sans-serif; width: | .galleryview { font-size: 12px; font-family: Arial, Helvetica, sans-serif; width: 620px; height: 320px; } | ||
.galleryview .panel-overlay h2, .panel-overlay p { margin: .3em 0 !important; } | .galleryview .panel-overlay h2, .panel-overlay p { margin: .3em 0 !important; } | ||
.galleryview .panel-overlay h2 { border-bottom: none; line-height: normal; } | .galleryview .panel-overlay h2 { border-bottom: none; line-height: normal; } | ||
Line 21: | Line 21: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
if ($.browser.msie) { theme = "gif"; } else { theme = "light"; } | if ($.browser.msie) { theme = "gif"; } else { theme = "light"; } | ||
$('#photos').galleryView({ panel_width: | $('#photos').galleryView({ panel_width: 620, panel_height: 320, transition_interval: 7000, border: "1px solid #CCC", pause_on_hover: true, nav_theme: theme }); | ||
$('#photos').css("margin", "0 auto"); | $('#photos').css("margin", "0 auto"); | ||
}); | }); | ||
Line 29: | Line 29: | ||
<div class="panel" style="display:none;"> | <div class="panel" style="display:none;"> | ||
<a href="/wiki/Models" onclick="pageTracker._trackEvent('Front Page Gallery', 'Click', 'CSDMS Modeling Tool (CMT)');"> | <a href="/wiki/Models" onclick="pageTracker._trackEvent('Front Page Gallery', 'Click', 'CSDMS Modeling Tool (CMT)');"> | ||
<img src="/mediawiki/images/CSDMS_Modeling_Tool.png" width="620" height=" | <img src="/mediawiki/images/CSDMS_Modeling_Tool.png" width="620" height="503" alt="CMT modeling Tool" /> | ||
</a> | </a> | ||
<div class="panel-overlay"> | <div class="panel-overlay"> |
Revision as of 10:27, 4 August 2010
This widget displays a gallery of images for the main page.
Dependencies:
/mediawiki/skins/csdmsskin_new/js/jquery/jquery-galleryview-1.1/*