-
AuthorPosts
-
nzslashman Friend
nzslashman
- Join date:
- July 2013
- Posts:
- 27
- Downloads:
- 61
- Uploads:
- 0
- Thanks:
- 11
- Thanked:
- 3 times in 1 posts
October 26, 2013 at 12:01 am #191713In the instructions it says to add or remove img.greyscale to remove the fade to colour effect in the Ja Content Popup module.
It is not the right coding as it says something like ja.gotcolour and I dont want to change the opacity manually for every image from 0 to 1 to stop the transition.
How do I globally force colour for images when using the module to display category images?
Thanks,
Aaron.
nzslashman Friendnzslashman
- Join date:
- July 2013
- Posts:
- 27
- Downloads:
- 61
- Uploads:
- 0
- Thanks:
- 11
- Thanked:
- 3 times in 1 posts
October 28, 2013 at 1:21 am #510322How can I do this it is not very professional to have the instructions say one thing that are not related at all to the problem in the guides.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 28, 2013 at 8:44 am #510366You can remove greyscale jacontentpopup module with my suggestion
Open templates/ja_onepage/js/script.js file
Line 166 and 187 and change it from
Grayscale(this);
to
/*Grayscale(this);*/
2 users say Thank You to Ninja Lead for this useful post
nzslashman Friendnzslashman
- Join date:
- July 2013
- Posts:
- 27
- Downloads:
- 61
- Uploads:
- 0
- Thanks:
- 11
- Thanked:
- 3 times in 1 posts
October 29, 2013 at 6:32 am #510484Thank you for your simple fix. I played with the timings and opacity levels also but I had no idea this script.js file was called when the template loaded. now I do thanks.
March 4, 2014 at 12:53 pm #525286Sorry to Bump this thread, but how do you reverse the effect?
As in start with color and when hover over it , it it gets the greyscale ??
kind regards
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
March 6, 2014 at 8:29 am #525607Please open the file: /templates/ja_onepage/js/script.js, then find and edit the value in red:
$('img.img-grayscale, .img-grayscale img, .ja-cp-image img').each(function () {
$(this).wrap('<div style="display:inline-block;" class="gs-wrap"></div>')
.clone().addClass('gotcolors').css({'position': 'absolute', 'opacity': 1}).insertBefore(this);
Grayscale(this);
}).parent().hover(
function () {
$(this).find('.gotcolors').css({
left: Math.round($(this).find('.gotcolors').siblings('img').position().left),
top: $(this).find('.gotcolors').siblings('img').position().top
}).stop(true).animate({opacity: 0}, 700);
},
function () {
$(this).find('.gotcolors').stop(true).animate({opacity: 1}, 500);
}
);Let me know how it goes.
1 user says Thank You to Nazario A for this useful post
March 6, 2014 at 2:50 pm #525661it workt perfectly !!!
thank you very much !:)
-
AuthorPosts
This topic contains 8 replies, has 5 voices, and was last updated by erhan60 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum