sIFR
1. Review at: http://www.mikeindustries.com/blog/sifr
1. Review at: http://www.mikeindustries.com/blog/sifr
To select PDF documents use the following selector:
$("a[href*=.pdf]")
For example the following will highlight PDF links with a yellow background:
$("a[href*=.pdf]").css("background", "yellow")
$(document).ready(function(){
$(".jcarousel-skin-tango .jcarousel-item").hover(function() {
$(this).animate({backgroundColor: "#bbccff"}, "slow");
}, function () {
$(this).animate({backgroundColor: "#ffffff"}, "slow");
});
});
// Opacity instead of colour. However, transition not too good in IE?
$(document).ready(function(){
$(".jcarousel-skin-tango .jcarousel-item").hover(function() {
$(this).animate({opacity: '1'}, "slow");
}, function () {
$(this).animate({opacity: '0.75'}, "slow");
});
});
<?php
drupal_add_js(
'$(document).ready(function(){
// Hide all paragraphs
$("p").hide();
// Fade them into visibility
$("p").fadeIn("slow");
});',
'inline'
);
?>