Permalink
Browse files

added wmode value option

  • Loading branch information...
Mottie committed Oct 3, 2010
1 parent c85c0f8 commit 3dd3c668711f4ac5274a79e108a0c2a4ef847dd7
Showing with 30 additions and 16 deletions.
  1. +5 −0 README.textile
  2. +8 −1 index.html
  3. +5 −3 js/jquery.anythingslider.js
  4. +12 −12 js/jquery.anythingslider.min.js
View
@@ -60,6 +60,8 @@ h2. Default Options
animationTime : 600, // How long the slideshow transition takes (in milliseconds)
easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin
+ // Misc options
+ addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
maxOverallWidth : 32766 // Max width (in pixels) of combined sliders (side-to-side); set to 32766 to prevent problems with Opera
});</pre>
@@ -95,6 +97,9 @@ h3. Formatting Navigation Text
h2. Changelog
+h3. Version 1.42
+* Added <code>addWmodeToObject</code>. When a slider has an embedded object (like a youtube video), the script adds a wmode parameter with the value from this option ("opaque" by default).
+
h3. Version 1.41
* Added <code>theme</code> option and several themes. Themes can now be added to individual AnythingSliders (although they are based largely on CSS).
* Added <code>tooltipClass</code> option which adds the assigned class name to the navigation and play/stop button only if the text is hidden (negative text-indent). The tooltip plugin must be added separately.
View
@@ -196,7 +196,9 @@ <h2>Default Options</h2>
delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)
animationTime : 600, // How long the slideshow transition takes (in milliseconds)
easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin
-
+
+ // Misc options
+ addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
maxOverallWidth : 32766 // Max width (in pixels) of combined sliders (side-to-side); set to 32766 to prevent problems with Opera
});</pre>
</blockquote>
@@ -250,6 +252,11 @@ <h2>Usage</h2>
<h2>Changelog</h2>
+ <h3>Version 1.42</h3>
+ <ul>
+ <li>Added <code>addWmodeToObject</code>. When a slider has an embedded object (like a youtube video), the script adds a wmode parameter with the value from this option ("opaque" by default).</li>
+ </ul>
+
<h3>Version 1.41</h3>
<ul>
<li>Added <code>theme</code> option and several themes. Themes can now be added to individual AnythingSliders (although they are based largely on CSS).</li>
@@ -1,5 +1,5 @@
/*
- AnythingSlider v1.41
+ AnythingSlider v1.42
By Chris Coyier: http://css-tricks.com
with major improvements by Doug Neiner: http://pixelgraphics.us/
@@ -78,10 +78,10 @@
base.$objects.each(function(){
if ($(this).find('[src*=youtube]').length){
$(this)
- .prepend('<param name="wmode" value="transparent"/>')
+ .prepend('<param name="wmode" value="' + base.options.addWmodeToObject +'"/>')
.parent().wrap('<div id="yt-temp"></div>')
.find('embed[src*=youtube]').attr('src', function(i,s){ return s + '&enablejsapi=1&version=3'; })
- .attr('wmode','transparent').end()
+ .attr('wmode',base.options.addWmodeToObject).end()
.find('param[value*=youtube]').attr('value', function(i,v){ return v + '&enablejsapi=1&version=3'; }).end()
// detach/appendTo required for Chrome
.detach()
@@ -531,6 +531,8 @@
animationTime : 600, // How long the slideshow transition takes (in milliseconds)
easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin
+ // Misc options
+ addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
maxOverallWidth : 32766 // Max width (in pixels) of combined sliders (side-to-side); set to 32766 to prevent problems with Opera
};

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 3dd3c66

Please sign in to comment.