masterquest
07-18-2011, 11:05 PM
Hello, I hope someone take a hand.
I want to implement opacity to these images but I have no success ...
This is the code that implements the alpha to the images, using jQuery.
<script type="text/javascript">
$(document).ready(function() {
$(".thumbs img").fadeTo("slow", 0.6);
$(".thumbs img").hover(function() {
$(this).fadeTo("slow", 1.0);
}, function() {
$(this).fadeTo("slow", 0.6);
});
});
</script>
The problem is not put in any image, because if I get in any normal image. What happens is I put it on a slide ... specifically this...
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm
I have tried to implement it, as it should normally be
leftrightslide[0]='<a href="#" class="thumbs">
<img src="dynamicbook1.gif" border=1></a>'
But do not get results ... I do not know why ... scriptaculous had used before and that if I worked perfectly with this code... this.
leftrightslide[0]='<a href="#"><img style="opacity:0.6;filter:alpha
(opacity=60)"onmouseover="new Effect.Appear(this, {from:0.6, to:1.0});"
onmouseout="new Effect.Appear(this, {from:1.0, to:0.6});"
src="dynamicbook1.gif" border="0"></a>'
I do not want to use scriptaculous, because on my page I have jQuery and I'm in some ways conflicts
I hope someone can help ... they are grateful.
Regards and excuse my English
I want to implement opacity to these images but I have no success ...
This is the code that implements the alpha to the images, using jQuery.
<script type="text/javascript">
$(document).ready(function() {
$(".thumbs img").fadeTo("slow", 0.6);
$(".thumbs img").hover(function() {
$(this).fadeTo("slow", 1.0);
}, function() {
$(this).fadeTo("slow", 0.6);
});
});
</script>
The problem is not put in any image, because if I get in any normal image. What happens is I put it on a slide ... specifically this...
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm
I have tried to implement it, as it should normally be
leftrightslide[0]='<a href="#" class="thumbs">
<img src="dynamicbook1.gif" border=1></a>'
But do not get results ... I do not know why ... scriptaculous had used before and that if I worked perfectly with this code... this.
leftrightslide[0]='<a href="#"><img style="opacity:0.6;filter:alpha
(opacity=60)"onmouseover="new Effect.Appear(this, {from:0.6, to:1.0});"
onmouseout="new Effect.Appear(this, {from:1.0, to:0.6});"
src="dynamicbook1.gif" border="0"></a>'
I do not want to use scriptaculous, because on my page I have jQuery and I'm in some ways conflicts
I hope someone can help ... they are grateful.
Regards and excuse my English