Efectos jQuery con "title archor" y fundido de imágenes.

git-svn-id: https://192.168.0.254/svn/Proyectos.OriginalHouse_Web/trunk@37 54e8636e-a86c-764f-903d-b964358a1ae2
This commit is contained in:
David Arranz 2011-07-14 17:46:02 +00:00
parent ce270ae524
commit d3b17da09f
8 changed files with 36 additions and 11 deletions

View File

@ -28,9 +28,11 @@
<?php if (has_post_thumbnail()) {
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
$thumb_size = array($woo_options['woo_thumb_w'],$woo_options['woo_thumb_h']);
$description = the_title('', '', false);
if ( strlen($description) < 2 ) { $description = ''; }
$attrib = array('title' => $description);
$title = the_title('', '', false);
if ( strlen($title) < 2 ) { $title = ''; }
$description = get_the_content();
$attrib = array('title' => $title);
?>
<a rel="lightbox" href="<?php echo $large_image_url[0]; ?>" title="<?php echo $description; ?>" class="size-<?php echo $image_size; ?>">
<span></span>

View File

@ -87,7 +87,7 @@
-ms-interpolation-mode: bicubic;
-webkit-box-shadow:none;
box-shadow:none;
display: hidden;
display: none;
opacity: 0.5;
filter: alpha(opacity=50);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

View File

@ -3,16 +3,39 @@
-------------------------------------------------------------------------------------*/
jQuery(document).ready(function() {
if ( jQuery( '.tcp_product_thumb a img' ).length ) {
jQuery( '.tcp_product_thumb a img' ).fadeIn("slow");
if ( jQuery( '.post_container .posts .post .entry a' ).length ) {
jQuery('.post_container .posts .post .entry a').each( function() {
var $this = jQuery(this);
$this.data('title',$this.attr('title'));
$this.removeAttr('title');
});
jQuery('.post_container .posts .post .entry a').click( function() {
var $this = jQuery(this);
var $title = $this.data('title');
$this.attr('title', $title);
});
}
if ( jQuery( '.post_container .posts .post .entry a' ).length ) {
jQuery('.post_container .posts .post .entry a').each( function() {
var $this = jQuery(this);
$this.data('title',$this.attr('title'));
$this.removeAttr('title');
});
jQuery('.post_container .posts .post .entry a').click( function() {
var $this = jQuery(this);
var $title = $this.data('title');
$this.attr('title', $title);
});
}
if ( jQuery( '.post a img' ).length ) {
jQuery( '.post a img' ).fadeIn("slow");
}
if ( jQuery( '.tubepress_thumb a img' ).length ) {
jQuery( '.tubepress_thumb a img' ).fadeIn("slow");
if ( jQuery( 'a img' ).length ) {
jQuery( 'a img' ).fadeIn('slow');
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB