I need put a video (preference "flv") in a non-obstrusive pop-up.
Anyone knows a plugin for this?
Thanks,
Celso
one of the carousel plugins could do it for you.
http://sorgalla.com/jcarousel/
http://www.gmarwaha.com/jquery/jcarousellite/
depending on your project specific needs.
best.
Jon
2009/10/6 Kevin Jones
>
> bump
>
> On Oct 1, 10:43 am, Kevin Jones wrote:
> > http://www.nd.edu/
> >
> > Their ho
bump
On Oct 1, 10:43 am, Kevin Jones wrote:
> http://www.nd.edu/
>
> Their homepage has a carousel-ish type of feature. Does anyone know if
> this exists already with a jQuery plugin? I don't know if our project
> has the allotted time for me to make one from scratch, so I was
> curious if it ex
http://www.nd.edu/
Their homepage has a carousel-ish type of feature. Does anyone know if
this exists already with a jQuery plugin? I don't know if our project
has the allotted time for me to make one from scratch, so I was
curious if it existed or could be easily adapted from somewhere else.
If
Hello,
I have the following:
if (subject == '---') {
if(!$('label[for="Subject",class="Error"]').length) {
$('#Subject').parent().after('Required field');
}
}
I need to check if a label with for="Subject" and class="Error"
exists:
if(!$('label[for="Subject",class="Error"]').l
I think this is a valid request and the apply() plugin might be what
you're looking for.
http://plugins.jquery.com/project/jquery_apply
perhaps:
jQuery.fn.exists=function(fn){
if(this[0]) fn(this)
return this
}
On Aug 22, 3:45 pm, James <[EMAIL PROTECTED]> wrote:
> The use case I was looking at was along the lines of:
>
> $("div#navigator").exists(function(matches) {
> $.getScript("scripts/navigator.js", function() {
>
The use case I was looking at was along the lines of:
$("div#navigator").exists(function(matches) {
$.getScript("scripts/navigator.js", function() {
matches.makeNavigator();
});
});
Regards,
James
On Aug 22, 2:25 pm, James <[EMAIL PROTECTED]> wrote:
> OK fair point. To me though:
>
>
>
> Brandon's point is that the "if" is implicit. You can do this
> regardless of whether or not there are any images on the page:
>
> $('img').doSomething();
Yes that's fine - but doSomething() has to be defined as a method on
the jQuery object. I want to call an anonymous method (or one define
> OK fair point. To me though:
>
> $("img").exists(function(matches) {
>
> });
>
> is a bit more of an elegant solution and a bit more readable (and
> saves you repeating the selector that might be quite long), but that's
> probably because $(img).length > 0 doesn't sound particularly
> intuitive
OK fair point. To me though:
$("img").exists(function(matches) {
});
is a bit more of an elegant solution and a bit more readable (and
saves you repeating the selector that might be quite long), but that's
probably because $(img).length > 0 doesn't sound particularly
intuitive to me.
I guess if
Is there a particular method/plugin you are wanting to write this for? Most
jQuery methods and plugins operate on 0 or more matched elements.
--
Brandon Aaron
On Fri, Aug 22, 2008 at 7:54 AM, James <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I can't seem to find anything that does the following:
>
> $
a quick plugin to do a simple if statement?
if ($(img).length > 0) {
$(img).doSomething();
}
Hi,
I can't seem to find anything that does the following:
$("img").exists(function(matches) {
/* do something with matches */
});
the difference between "exists" and "each" being it is only run once
and supplies all the matches as an argument.
The long-hand way of doing this is something alo
14 matches
Mail list logo