[jQuery] keep executing the script after a few seconds
Say i want the alert message "hello" appear every 90 seconds, how can i do it ?
[jQuery] Re: help fix syntax
Thanks for help, with your suggestion, I made it work.
[jQuery] Re: help fix syntax
Im trying to remove parent of at the click event, and the function remove needs to be within the if statement.
[jQuery] help fix syntax
syntax a: not working, the parent of current element not being removed $('a.del').click(function(e){ e.preventDefault(); $.post('/img/del.php') , {'img': img }, function(e){ if(e.status == 'deleted') {$(this).parent().remove();} }, 'json'); }); syntax b: work but its not doing things correctly. $('a.del').click(function(e){ e.preventDefault(); $.post('/img/del.php'), {'img': img }, function(e){ if(e.status == 'deleted') {} }, 'json'); $(this).parent().remove(); });
[jQuery] help fix syntax
syntax a: not working, but its what I have in mind. $('.del').click(function(e){ e.preventDefault(); $.post('', {ori: response.img_name , thumb: response.thumb_name }, function(e){ if(e.status == 'deleted') {$(this).parent().remove();} }, 'json'); }); syntax b: work but not doing thing correctly. $('.del').click(function(e){ e.preventDefault(); $.post('', {ori: response.img_name , thumb: response.thumb_name }, function(e){ if(e.status == 'deleted') {} }, 'json'); $(this).parent().remove(); });
[jQuery] imitate link
Can make behave as ? For exmaple, I have Home, I want to go to homepage when i click b.
[jQuery] Re: simeple drop down menu
YEah i works right on! Thank you, Michel, for helping me debug that stuff.
[jQuery] Re: simeple drop down menu
THanks Michel, changed the selector slightly, it works. But only half. The problem now, if i hover in and out multiple times the list will disappear permanently. http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js"> $(function(){ $('div').hover(function(){ $(this).children('ul').stop().fadeIn(333); }, function(){$('.news').children('ul').stop().fadeOut(333); }); }); NEWS> Real Estate Your Home Real Estate Your Home
[jQuery] simeple drop down menu
Hello Jquery, I'm making a simple 1lvl dropdown menu. So far this is what i've got. The problem is, I hover the link the ul shows, but i can't hover the list item, they disappears as long as i mouseout the main link. http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js"> $(function(){ $('a').hover(function(){ $('.news').children('ul').stop().fadeIn(333); }, function(){$('.news').children('ul').stop().fadeOut(333); }); }); NEWS> Real Estate Your Home Real Estate Your Home
[jQuery] jquery style carousel
Hi, I like the carousel in this home page very much: http://www.realtor.com/ Do you know where i can find and download something like that ?
[jQuery] Re: format number
cool, but that leads to another problem The computer now thinks 15,000 is just 15 instead of fifteen thousands. I need the formated number for later calculation, I have to make the computer think 15,000 is actually fifteen thousands Is there anyway to take the comma out before calculation or a function that can tell 15,000 is 15000 in my case
[jQuery] Re: format number
cool, but that leads to another problem The computer now thinks 15,000 is just 15 instead of fifteen thousands
[jQuery] format number
How can i make 1500 look like 15,000,000 and 1500.00 look like 15,000,000.00 ?
[jQuery] what is call()
I see it is used in many plugins. I try to find document about it but no help.
[jQuery] why plugin function need 2 parameter sometimes
I don't see how maxentries as parameter is need in this code jQuery.fn.pagination = function(maxentries, opts) in some plugins, i see everything works fine with just something like this jQuery.fn.pluginname = function(opts)
[jQuery] Re: array object
I try your code, the result is: [object Object] On Sep 30, 8:05 pm, Karl Swedberg wrote: > On Sep 30, 2009, at 1:00 AM, Poloman wrote: > > > > > Can I get value and text of an option and put them into an array > > object? > > > > > britney > > jackson > > > > > I'd like to have something like this arrayob = {c1:"britner", > > c2:"jackson"}; > > You could do something like this ... > > var arrayob = {}; > $('option').each(function() { > arrayob[this.value] = $(this).text(); > > }); > > --Karl > > > Karl Swedberg > > www.englishrules.com > > www.learningjquery.com
[jQuery] ebay type menu select
Do you know where i can jquery code of ebay type menu select, menu that let you select item categories dynamically and progressively ?
[jQuery] help read code
Hi, this code is from a dropdown box, where clicking on the "a.signin" will open or close the box. So I don't really get how the syntax below work $(document).mouseup(function(e) { if($(e.target).parent("a.signin").length==0) { $("fieldset#signin_menu").hide(); } });
[jQuery] simple click drop down menu
Hi, I need help to close the ul back up when i click on the white space or on the options link. This is what i've got so far http://www.w3.org/1999/xhtml";> http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js"> $(function(){ $('.menu').click(function(){ $(this).next('ul').css({'visibility':'visible'}); }); }); * {margin:0; padding:0;} .menu { position:relative;} ul { position:absolute; visibility:hidden; border:solid 1px blue } ul a {display:block;} options game music movie
[jQuery] what does this selector mean ?
Hi, $('div', this) what does that mean ?
[jQuery] Re: keepp getting NaN vlue
Thank you everyone. @Liam: thats very neat fix. @Robg: I can learn alot form your solution.
[jQuery] keepp getting NaN vlue
Hi, I'm making a calculator for freight customer It seems I'm on the right path. But there is two bugs i need help. The TOTAL TO PAY value always seem to appear as NaN at first instead of default 3. And the function of TOTAL TO PAY only work after checkbox is checkd, I need it work regarding to changing of input value not just checkbox. http://www.w3.org/1999/xhtml";> http://ajax.googleapis.com/ajax/ libs/jquery/1.3.1/jquery.min.js"> $(function(){ $('input[type="text"]').bind("keyup",calculate); calculate(); function calculate() { var firstkm = 3, nextkm = 1000; var distance = $('#distance').val(); if(distance > 1){$('.dresult').text(firstkm + nextkm*(distance-1) + 'USD');} else {$('.dresult').text(firstkm + 'USD');} var weight = $('#weight').val(), perkg = 5000; if(weight > 5) {$('.wresult').text((weight-5)*5000 + 'USD');} else {$('.wresult').text(0 + 'USD');} total(); } $('#priority').change(function(){ if ($(this).attr('checked') === true) { $('.presult').text('5000 USD'); } else { $('.presult').text('0 USD'); } total(); }); function total() { var r1 = parseInt($('.dresult').text()), r2 = parseInt($ ('.wresult').text()), r3 = parseInt($('.presult').text()); $('.grandtotal').text(r1 + r2 + r3); }; }); Distance first km is 30k USD, the next kms is 1k USD each Weight no extra fee for good under 5kg urgent urgent good 5k USD extra total to pay:
[jQuery] Re: remove anything thats not number
thank you very much On Sep 28, 4:26 pm, "ryan.j" wrote: > you said 99 or 100, parseFloat will give 99.99 from your example - if > you specifically wanted an integer you could parseInt( yourString ) > and that will round up. To round a number down use Math.floor on the > floating-point number parseFloat gives. > > On Sep 28, 10:22 am, "ryan.j" wrote: > > > parseFloat( yourStr ) > > > On Sep 28, 10:18 am, runrunforest wrote: > > > > Hi, > > > > I have a value that include word letter and some sign such as $. > > > > I want to remove all of them just keep the number. > > > > For example: i want "$99,99 USD" become "99" or "100" > > > > can someone please give the function
[jQuery] remove anything thats not number
Hi, I have a value that include word letter and some sign such as $. I want to remove all of them just keep the number. For example: i want "$99,99 USD" become "99" or "100" can someone please give the function
[jQuery] check if checkbox is checked dynamicallyH
Hi, I have a html like this 0 USD I want when checkbox is checked, the span will have 500 USD. When checkbox is unchecked the span will return 0 USD. This is what I've got, have no idea why not work. if ($('#priority').is(':checked')) { $('.presult').text('500 USD'); }else { $('.presult').text(''); }
[jQuery] Re: dans blog jquery calculate installment
it just not runs at all. Anyway, I managed to write my own function to do similar purpose. Thanks for getting back On Sep 28, 12:55 pm, RobG wrote: > On Sep 28, 1:26 pm, runrunforest wrote: > > > Hi, > > > I've got a script from dansblog (link > > herehttp://blog.pengoworks.com/index.cfm/2008/1/23/jQuery-Calculation-Plu...) > > > I copied and presented it as below, its doesn't work. What I've done > > incorrectly ? > > Most such scripts are worth what you pay for them, or less. > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > > http://www.w3.org/1999/xhtml";> > > > > > > > > $(function(){ > > // bind the recalc function to the quantity fields > > $("input[name^=qty_item_]").bind("keyup", recalc); > > Using the keyup event is not a good idea. You are running the listener > far more often that it needs to, you only need to run it when the user > has finished their input for a particular field (e..g. run it using > blur). > > > function recalc(){ > > // run the calc() method on each of the "total" fields > > $("[id^=total_item]").calc( > > Where is calc() defined? User input should always be validated - what > will happen if they input # instead of 3? > > > // the equation to use for the calculation > > "qty * price", > > // we now define the values for the variables > > defined in the > > Beware of those who talk about "we". > > > equation above > > { > > // instead of using a static value, we use > > a jQuery object which > > grabs all the quantities > > It grabs exactly the same set of inputs every single time the keyup > event occurs. Why would you do that except to waste CPU cycles? > > > qty: $("input[name^=qty_item_]"), > > // now we define the jQuery object which > > reads in the "price" from > > the table cell > > price: $("[id^=price_item_]") > > }, > > // this function is execute after the calculation > > is completed, > > which allows us to > > // add formatting to our value > > function (s){ > > // return the number as a dollar amount > > return "$" + s.toFixed(2); > > In some implementations, toFixed is buggy, though likely it doesn't > matter here. > > <URL:<a rel="nofollow" href="http://www.merlyn.demon.co.uk/js-rndg1.htm#toF">http://www.merlyn.demon.co.uk/js-rndg1.htm#toF</a>> > > > }, > > // once all calculations are completed, we execute > > the code below > > function ($this){ > > // now we get the sum() of all the values > > we just calculated > > var sum = $this.sum(); > > Where is sum() defined? Does it validate user input? > > > > > // now that we have the grand total, we > > must update the screen > > $("#grandTotal").text( > > // round the results to 2 digits > > "$" + sum.toFixed(2) > > If the values have already been rounded, their sum does not need to be > rounded again. > > > > > ); > > } > > ); > > }}); > > > > > > > > > > > > > > > > > > > > > > > > Qty > > > > > > Product > > > > > > Price > > > > > > Total > > > > > > > > > > > size="2" /> > > > > > > > > > > $39.99 > > > > Somewhere there must be a calc() function that takes an input element > and gets its value, then any other type of element and gets its text > content (or value perhaps), strips off the currency sign, multiplies > the two and returns the result. Maybe it does some checking of the > values it's been passed. Or not. > > It seems strange that a function called "sum" would not do rounding. > How is invalid input handled? > > -- > Rob
[jQuery] simple lightbox
Hi, I want a really simple hard coded lightbox. Can some one teach me how to trigger a div in the center of page, if i click the close button inside, it will close back up and if i click somewhere outside the div, it will also close. I guess just that simple as that.
[jQuery] trim string
Hi, I have an array like this cat=(com12, com1, cop233, com1.1, sap-12-1) I want to take out all the numbers and "." and "-" signs the desire result is cat=(com, com, cop, sap) how can i do that please ?
[jQuery] validation plugin
Hi, I want to stop class error added to input element, how to do that please ?
[jQuery] Re: get values from a select menu then assign them to an array variable
Owsome Benn. But i don't understand why "i" is used there ?
[jQuery] get values from a select menu then assign them to an array variable
Hi, I have a menu like this: vaio thinkpad nokia samsung Can I get all the values com1, com2, mob1 and mob2 then assign them to a variable ?
[jQuery] add class and remove class from perspective element
Hi, I have 3 image, in turn called img1, img2, img3. I need a code snippet that will add a border to the image when it is clicked, and if I click the other image, the border will disappear, the newly clicked image will have a border. For short, only image has border at a time and only the image that got click last will have border. Can you show me the technique to do this
[jQuery] Re: get hover function behave right
Thank you, do as you said and it works.
[jQuery] Re: get hover function behave right
make the curwidth and curheight variables global, could you help me?
[jQuery] get hover function behave right
Hi, I want to animate the width and height of image when hovering it, and when i stop the image's state back to normal. My problem is, the image's state not back to normal when mouseout. here is my code $(function(){ $('img').hover(function(){ var curwidth = $(this).width(), curheight = $(this).height(); var aimwidth = curwidth +20, aimheight = curheight +20; $(this).stop().animate({width:aimwidth, height:aimheight},400); }, function(){ $(this).stop().animate({width:curwidth, height:curheight},400); }); }); And HTML
[jQuery] event
if(o.btnGo) $.each(o.btnGo, function(i, val) { $(val).click(function() { return go(o.circular ? o.visible+i : i); }); }); Hi, I wonder whats the second parameter, val, in the function means ?
[jQuery] finction width(divs) is not defined
Hi, div { width:40px; height:40px; margin:10px; float:left; border:2px solid blue; } $(function(){ var divs = $('div','body'); var divSize = width(divs); console.log(divSize); }); I want to know the width of div, i do like this, why the console says width(divs) is not defined ? I see in some plugins just doing it this way with no problem at all
[jQuery] Re: can someone translate this syntax ?
thank you, I don't see that in other plugin, acutually so far i've not yet see the same plugin structure.
[jQuery] Re: can someone translate this syntax ?
ah one more thing in o = $.extend({ afterEnd: null }, o || {}); the o || {} means ?
[jQuery] Re: can someone translate this syntax ?
thank you so much
[jQuery] Re: can someone translate this syntax ?
thanks man how about $("ul", div)
[jQuery] can someone translate this syntax ?
(function($) { $.fn.jCarouselLite = function(o) { o = $.extend({ btnPrev: null, btnNext: null, btnGo: null, mouseWheel: false, auto: null, speed: 200, easing: null, vertical: false, circular: true, visible: 3, start: 0, scroll: 1, beforeStart: null, afterEnd: null }, o || {}); return this.each(function() { var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width"; var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible; }); }; })(jQuery); I don't understand this part var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width"; var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size (), v = o.visible; Can you fully translate it for me please.
[jQuery] cycle plugin image smallen itselft
Hi, I have used cycle plugin for one of my website, sometime images get small unpectedly, although all image has been photoshoped to fixed same size Wonder is there any known bug about image resizing itself like that ?
[jQuery] Re: FF3 really slow on a mousemove with lots of divs (more then 5000)
it crashes me, recommend you find alternative script. 30% of browser is FF On May 23, 4:12 pm, geronimo3 wrote: > I have someone else saying it too now So I still have this problem > > On 23 mei, 11:01, geronimo3 wrote: > > > Hmm thanks > > > damn then it is something with my FF then > > I use 3.0.10 btw > > > On 23 mei, 10:58, waseem sabjee wrote: > > > > I just opened it up in FF3. working well. no crash. > > > > On Sat, May 23, 2009 at 10:49 AM, geronimo3 wrote: > > > > > I can't figure out how i can improve the speed in my dolumap in FF. > > > > All other browsers seem to do a bit well at least. > > > > > It seems to crash all the time as soon as I mouseover a colored div. > > > > (Well it just starts lagging too much) > > > > > I wouldn't recommend opening this when you have other FF tabsor > > > > windows open it will most certainly crash.) > > > > >http://dolumar.225mb.com/dolumap/test/(Iwouldn'trecommend opening > > > > this when you have other FF tabs or windows open it will most > > > > certainly crash.) > > > > > or if i reduce the divs it works a bit better > > > > >http://dolumar.225mb.com/dolumap/test/?max=500
[jQuery] Re: cycle plugin with keyboard
I get it to work now, just change the selector "window" to "document", The IE really has no idea what "window" is LOL. The working code $(document).keydown(function(e){ if(e.which == 37){ $('.prev').click();} else if(e.which == 39){ $('.next').click();} }); On May 23, 8:34 am, runrunforest wrote: > its IE 7 > > On May 22, 9:13 pm, "ryan.j" wrote: > > > possibly keycode vs. charcode. did you try the keypress thingy on > > quirksmode to see what IE returns on keydown? > > > which version of IE isn't it working? > > > On May 22, 3:10 pm, runrunforest wrote: > > > > thanks > > > > I got this to work in all browser except... IE. > > > > The code i used > > > > $(window).keydown(function(e){ > > > if(e.which == 37){ $('.prev').click();} > > > else if(e.which == 39){ $('.next').click();} > > > }); > > > > What makes IE not understand this ? > > > > On May 22, 3:15 pm, "ryan.j" wrote: > > > > > take a look here ->http://www.quirksmode.org/js/keys.html > > > > > 37: left > > > > 38: up > > > > 39: right > > > > 40: down > > > > > irritatingly, i completely forgot the arrow keys are a special case, > > > > and won't trigger properly (or even consistently) the keypress event > > > > across different browsers. try keydown or keyup to catch the charcode, > > > > > On May 22, 5:19 am, runrunforest wrote: > > > > > > the all the arrow has charcode of "0" (zero). I know this by the code > > > > > > var key = e.which; > > > > > alert(key); > > > > > > So how the script which is right arrow which is left arrow. > > > > > > On May 21, 10:51 pm, "ryan.j" wrote: > > > > > > > yeah, stick this in document ready. > > > > > > > to simulate the click, get the id of element you'd normally click to > > > > > > advance the scroller (inspect it with the mozilla plugin firebug) > > > > > > and > > > > > > append .click() > > > > > > > On May 21, 4:45 pm, runrunforest wrote: > > > > > > > > could you give some further tip, how can I simulate, where should > > > > > > > I > > > > > > > put the code to (document.ready part ?). > > > > > > > > On May 21, 10:28 pm, "ryan.j" > > > > > > > wrote: > > > > > > > > > $(window).keypress(function (e) { > > > > > > > > if (e.which == 39 ) { > > > > > > > > /* keypress right */ > > > > > > > > } elseif (e.which == 37 ) { > > > > > > > > /* keypress left */ > > > > > > > > } else { > > > > > > > > return false; > > > > > > > > } > > > > > > > > > }); > > > > > > > > > if you can't figure out how to advance the cycle on your own, > > > > > > > > maybe > > > > > > > > try to simulate $('#scrollLeft').click() > > > > > > > > > On May 21, 2:48 am, runrunforest wrote: > > > > > > > > > > In cycle plugin, ss there way to switch images by keyboard > > > > > > > > > arrows > > > > > > > > > instead of clicking "next, prev"
[jQuery] Re: cycle plugin with keyboard
its IE 7 On May 22, 9:13 pm, "ryan.j" wrote: > possibly keycode vs. charcode. did you try the keypress thingy on > quirksmode to see what IE returns on keydown? > > which version of IE isn't it working? > > On May 22, 3:10 pm, runrunforest wrote: > > > thanks > > > I got this to work in all browser except... IE. > > > The code i used > > > $(window).keydown(function(e){ > > if(e.which == 37){ $('.prev').click();} > > else if(e.which == 39){ $('.next').click();} > > }); > > > What makes IE not understand this ? > > > On May 22, 3:15 pm, "ryan.j" wrote: > > > > take a look here ->http://www.quirksmode.org/js/keys.html > > > > 37: left > > > 38: up > > > 39: right > > > 40: down > > > > irritatingly, i completely forgot the arrow keys are a special case, > > > and won't trigger properly (or even consistently) the keypress event > > > across different browsers. try keydown or keyup to catch the charcode, > > > > On May 22, 5:19 am, runrunforest wrote: > > > > > the all the arrow has charcode of "0" (zero). I know this by the code > > > > > var key = e.which; > > > > alert(key); > > > > > So how the script which is right arrow which is left arrow. > > > > > On May 21, 10:51 pm, "ryan.j" wrote: > > > > > > yeah, stick this in document ready. > > > > > > to simulate the click, get the id of element you'd normally click to > > > > > advance the scroller (inspect it with the mozilla plugin firebug) and > > > > > append .click() > > > > > > On May 21, 4:45 pm, runrunforest wrote: > > > > > > > could you give some further tip, how can I simulate, where should I > > > > > > put the code to (document.ready part ?). > > > > > > > On May 21, 10:28 pm, "ryan.j" wrote: > > > > > > > > $(window).keypress(function (e) { > > > > > > > if (e.which == 39 ) { > > > > > > > /* keypress right */ > > > > > > > } elseif (e.which == 37 ) { > > > > > > > /* keypress left */ > > > > > > > } else { > > > > > > > return false; > > > > > > > } > > > > > > > > }); > > > > > > > > if you can't figure out how to advance the cycle on your own, > > > > > > > maybe > > > > > > > try to simulate $('#scrollLeft').click() > > > > > > > > On May 21, 2:48 am, runrunforest wrote: > > > > > > > > > In cycle plugin, ss there way to switch images by keyboard > > > > > > > > arrows > > > > > > > > instead of clicking "next, prev"
[jQuery] Re: cycle plugin with keyboard
thanks I got this to work in all browser except... IE. The code i used $(window).keydown(function(e){ if(e.which == 37){ $('.prev').click();} else if(e.which == 39){ $('.next').click();} }); What makes IE not understand this ? On May 22, 3:15 pm, "ryan.j" wrote: > take a look here ->http://www.quirksmode.org/js/keys.html > > 37: left > 38: up > 39: right > 40: down > > irritatingly, i completely forgot the arrow keys are a special case, > and won't trigger properly (or even consistently) the keypress event > across different browsers. try keydown or keyup to catch the charcode, > > On May 22, 5:19 am, runrunforest wrote: > > > the all the arrow has charcode of "0" (zero). I know this by the code > > > var key = e.which; > > alert(key); > > > So how the script which is right arrow which is left arrow. > > > On May 21, 10:51 pm, "ryan.j" wrote: > > > > yeah, stick this in document ready. > > > > to simulate the click, get the id of element you'd normally click to > > > advance the scroller (inspect it with the mozilla plugin firebug) and > > > append .click() > > > > On May 21, 4:45 pm, runrunforest wrote: > > > > > could you give some further tip, how can I simulate, where should I > > > > put the code to (document.ready part ?). > > > > > On May 21, 10:28 pm, "ryan.j" wrote: > > > > > > $(window).keypress(function (e) { > > > > > if (e.which == 39 ) { > > > > > /* keypress right */ > > > > > } elseif (e.which == 37 ) { > > > > > /* keypress left */ > > > > > } else { > > > > > return false; > > > > > } > > > > > > }); > > > > > > if you can't figure out how to advance the cycle on your own, maybe > > > > > try to simulate $('#scrollLeft').click() > > > > > > On May 21, 2:48 am, runrunforest wrote: > > > > > > > In cycle plugin, ss there way to switch images by keyboard arrows > > > > > > instead of clicking "next, prev"
[jQuery] Re: cycle plugin with keyboard
the all the arrow has charcode of "0" (zero). I know this by the code var key = e.which; alert(key); So how the script which is right arrow which is left arrow. On May 21, 10:51 pm, "ryan.j" wrote: > yeah, stick this in document ready. > > to simulate the click, get the id of element you'd normally click to > advance the scroller (inspect it with the mozilla plugin firebug) and > append .click() > > On May 21, 4:45 pm, runrunforest wrote: > > > could you give some further tip, how can I simulate, where should I > > put the code to (document.ready part ?). > > > On May 21, 10:28 pm, "ryan.j" wrote: > > > > $(window).keypress(function (e) { > > > if (e.which == 39 ) { > > > /* keypress right */ > > > } elseif (e.which == 37 ) { > > > /* keypress left */ > > > } else { > > > return false; > > > } > > > > }); > > > > if you can't figure out how to advance the cycle on your own, maybe > > > try to simulate $('#scrollLeft').click() > > > > On May 21, 2:48 am, runrunforest wrote: > > > > > In cycle plugin, ss there way to switch images by keyboard arrows > > > > instead of clicking "next, prev"
[jQuery] Re: cycle plugin with keyboard
could you give some further tip, how can I simulate, where should I put the code to (document.ready part ?). On May 21, 10:28 pm, "ryan.j" wrote: > $(window).keypress(function (e) { > if (e.which == 39 ) { > /* keypress right */ > } elseif (e.which == 37 ) { > /* keypress left */ > } else { > return false; > } > > }); > > if you can't figure out how to advance the cycle on your own, maybe > try to simulate $('#scrollLeft').click() > > On May 21, 2:48 am, runrunforest wrote: > > > In cycle plugin, ss there way to switch images by keyboard arrows > > instead of clicking "next, prev"
[jQuery] cycle plugin with keyboard
In cycle plugin, ss there way to switch images by keyboard arrows instead of clicking "next, prev"
[jQuery] binding
Hi, How can I bind this function to all image tag ? var img_width = $('#slide img:visible').width(); var frame_width = $('#slide img:visible').parent().width(); var target_width = (frame_width-img_width)/2; $('#slide img:visible').css({'left':target_width}); appreciate the help.
[jQuery] center align absolute positioned element
I want to align an absolute positioned image horizontally center inside its parent element. Is there any script or guide to do that ?
[jQuery] declare variable
Hi, I see this line in a plugin var $thisCell, $tgt = $(event.target); does that mean: var $thisCell = $(event.target); var $tgt = $(event.target);
[jQuery] css syntax
Hi, Can someone help me explain the meaning of these two lines var bgc = $(this).css('backgroundColor'); $(this).css({backgroundColor: bgc == '#ff' || bgc == 'rgb(255, 204, 204)' ? '#ff' : '#ff'});
[jQuery] fadeIn, fadeOut malfunction
Hi, I have a button hidden initially, when mouse hovers the parent element of the button, button will fadeIn, and when mouse out, the button will fadeOut ( disappear). the problem is when, you hover multiple time in a quick pace (6 hover ins outs in 1 second), the button will disappear forever. No what I want. Please have a look at it here: http://www.badede.com/op.html
[jQuery] Re: when use addclass and toggleclass
oh I understand thanks. On May 11, 8:40 am, Steven Yang wrote: > when you do addClass it literally only "add" the class to the element > when you do toggleClass it checks whether the element has the class or not, > if it does then it will "remove" the class if it doesnt then it will "add" > the class
[jQuery] why mouseover not mouseOver
Hi, I notice jquery name space used to capitalize the first letter of the second word of methods, why not do the same with events ?
[jQuery] when use addclass and toggleclass
Hi, method addClass and toggleClass do pretty much the same thing, what is the true difference between them ?
[jQuery] Jquery should have an image gallery slider UI
The image gallery with slider is one of the most used javascript plugin in the net, almost every web project would need one. Why don't we make an UI for this ? And should make a very standard one, I sussgest it should behave like the google webalbum's or the yahoo chat photosharing. google webalbum: http://picasaweb.google.com/lh/explore# yahoo photoshare: down load the yahoo messenger and try sharing photo.