[Solved] How to fade animate background images (full size) [closed]

This is how I would do it with a couple of jQ lines: var $bg = $(‘#bg’), $bgDIV = $(‘div’, $bg), // Cache your elements n = $bgDIV.length, // count them (used to loop with % reminder) c = 0; // counter (function loopBG(){ $bgDIV.eq(++c%n).hide().appendTo($bg).fadeTo(3000,1, loopBG); }()); // start fade animation *{margin:0; padding:0;} body{ width:100%; … Read more

[Solved] why animate() doesn’t work well with data()?

My guess is that you should be using $(this).data(), not $(‘div’).data(), so that each DIV will keep track of its own animation state. $(‘div’).click(function () { var data = $(this).data(‘animate’); if ( data == 10 ) { $(this).animate({ height: 100 }, 200); $(this).data(“animate”,”100″); } else if ( data == 100 ) { $(this).animate({ height: 10 … Read more

[Solved] Javascript not working with jquery library 1.9.1

FIRST, try this JAVASCRIPT – Part 1 $(document).ready(function () { $(‘a.head’).click(function () { var a = $(this); var section = a.attr(‘href’); section.removeClass(‘section’); $(‘.section’).hide(); section.addClass(‘section’); if (section.is(‘:visible’)) { section.slideToggle(); /* ===== <– 400 is the default duration ===== */ } else { section.slideToggle(); } }); }); JAVASCRIPT – PART 2 $(document).ready(function () { $(‘.rate_widget’).each(function () { … Read more

[Solved] “if (x == 100) alert” not working in combination with keydown function?

You should put the code inside the callback function, otherwise the nummer will just be 0. $(document).keydown(function(e) { switch (e.which) { case 38: $(“#object”).stop().animate({ top: “10” }); nummer = 0; break; case 40: $(“#object”).stop().animate({ top: “200” }); nummer = 100; break; } if (nummer == 100) { //do something it does have the protected class! … Read more

[Solved] i want the typewriter effect like the website i have given link [closed]

i think you are searching jquery plugin like this http://www.mattboldt.com/demos/typed-js/ here is another few plugins you might help http://www.jqueryrain.com/?Rz1vxvW8 http://www.jqueryscript.net/demo/Simple-Text-Typing-Effect-with-jQuery/ http://lea.verou.me/2011/09/pure-css3-typing-animation-with-steps/ i think this is you search this same as you search try download http://www.jqueryscript.net/text/Terminal-like-Text-Typing-Effect-with-jQuery-Teletype.html solved i want the typewriter effect like the website i have given link [closed]