Say i want the alert message "hello" appear every 90 seconds, how can
i do it ?
Thanks for help, with your suggestion, I made it work.
Im trying to remove parent of at the click event, and the function
remove needs to be within the if statement.
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 },
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_n
Can make behave as ?
For exmaple, I have Home, I want to go to homepage when i click
b.
YEah i works right on! Thank you, Michel, for helping me debug that
stuff.
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(){
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">
$(functi
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 ?
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 f
cool, but that leads to another problem
The computer now thinks 15,000 is just 15 instead of fifteen thousands
How can i make 1500 look like 15,000,000
and 1500.00 look like 15,000,000.00 ?
I see it is used in many plugins. I try to find document about it but
no help.
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)
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
Do you know where i can jquery code of ebay type menu select, menu
that let you select item categories dynamically and progressively ?
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) {
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(){
Hi,
$('div', this) what does that mean ?
Thank you everyone.
@Liam: thats very neat fix.
@Robg: I can learn alot form your solution.
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 regardin
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 $.
&
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
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 {
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
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.
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 ?
Hi,
I want to stop class error added to input element, how to do that
please ?
Owsome Benn. But i don't understand why "i" is used there ?
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 ?
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
Thank you, do as you said and it works.
make the curwidth and curheight variables global, could you help me?
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).wid
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 ?
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 wid
thank you, I don't see that in other plugin, acutually so far i've not
yet see the same plugin structure.
ah one more thing
in o = $.extend({ afterEnd: null }, o || {});
the o || {} means ?
thank you so much
thanks man
how about $("ul", div)
(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,
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 ?
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
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 retu
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:
>
> &
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;
>
, 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 t
> /* 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 p
In cycle plugin, ss there way to switch images by keyboard arrows
instead of clicking "next, prev"
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});
appr
I want to align an absolute positioned image horizontally center
inside its parent element.
Is there any script or guide to do that ?
Hi,
I see this line in a plugin
var $thisCell, $tgt = $(event.target);
does that mean:
var $thisCell = $(event.target);
var $tgt = $(event.target);
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'});
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.
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
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 ?
Hi,
method addClass and toggleClass do pretty much the same thing, what is
the true difference between them ?
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 webalb
59 matches
Mail list logo