Home › Forums › JavaScript › Jquery Div Changer Help
- This topic is empty.
-
AuthorPosts
-
February 17, 2011 at 6:45 pm #59684noahgelmanParticipant
You can just toss it onto the end of your jquery.main.js. After all that plugin code.
February 17, 2011 at 7:04 pm #59686PeretzMMemberThanks for all your help, but it doesnt seem to be doing anything, i uploaded the latest files…
February 17, 2011 at 7:59 pm #59640noahgelmanParticipantI dont see the script I wrote. Did you take it back down? Where did you place it?
Try this:
$(document).ready(function() {
$('slideshow').mouseout(function() {
$('.switcher li').first().addClass('active')
$('.switcher li').first().siblings().removeClass('active');
$('.slide-holder li').first().addClass('active').css('display', 'list-item')
$('.slide-holder li').first().siblings().removeClass('active').css('display', 'none');
});
});February 17, 2011 at 8:12 pm #59641PeretzMMemberIt’s at the bottom of the main.js
btw, did u get my message to your inbox?
February 17, 2011 at 8:49 pm #59627noahgelmanParticipantI dont see it at the bottom of the main.js when I view the source
And I just now noticed the inbox message. There isn’t a very large icon notifying you
February 17, 2011 at 8:51 pm #59628PeretzMMemberTry again, uploaded with the latest script u sent… thanks
February 17, 2011 at 8:57 pm #59629noahgelmanParticipantAh, there the code is. I had a cached old version. I had to clear my cache.
Try switching out .mouseout(function() { with .mouseleave(function() {February 17, 2011 at 9:54 pm #59612soapParticipantcan’t you just do
$('.active').show();
$('.thing2').hover(function() {
$('.duder2').fadeIn(300);
}, function() {
$('.duder2').fadeOut(300);
});
I’m being lazy but do you get the point or am I completely missing the point? If you’re trying to do what I think you’re trying to do then it should be very easy and accomplished several ways.
What say you, sir? Let me know if I’m totally off as to your objectives.
:)
February 18, 2011 at 10:48 am #59522liborMemberNice, but i need CSS too. Thanks for an answer.
February 18, 2011 at 12:22 pm #59448February 18, 2011 at 12:30 pm #59450PeretzMMembernope, I’m confused too. i think maybe he wants to accomplish the same thing…
February 18, 2011 at 12:38 pm #59451noahgelmanParticipantMaybe he posted in the wrong forum discussion by accident? Either way, there seems to be little code confliction if my above code didn’t work.
Also, I figured out why my code didn’t work. There WAS a typo.
$('slideshow')
Should be:
$('.slideshow')
I forgot the period designating it as a class. Totally my fault. I forgot it on both of my suggestions.
February 18, 2011 at 2:20 pm #59462PeretzMMemberStill no go, let me know if you would like me to send you the files…
February 18, 2011 at 2:40 pm #59465noahgelmanParticipanthmm… I don’t see it changed in the javascript.
Yeah, try sending me the files.
[email protected] -
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.