JQuery :: Children Disappear With FadeTo / Opacity Effects?

Sep 26, 2009

I have this html:

<div class="foo parent">
<div class="child"></div>
</div>

with some css:

.foo{
position:absolute;
left: -117px;

[code]....

...works fine on the parent but the child disappears.Including both the parent and the child in the selector also give the same problem:

$(".parent, .child").fadeTo('fast',0.50)

...does the same thing. It think someone must have run into this before.

View 1 Replies


ADVERTISEMENT

JQuery :: .fadeTo Not Working With Just An Opacity Number?

Oct 25, 2010

according to the api, the fadeTo method can now be called with just an opacity in 1.4.3, no duration, however, i cant get it to work. here's a jsbin with what i've tried: [URL]if i modify .fadeTo(0) to .fadeTo('slow',0) it works.

View 3 Replies View Related

JQuery :: .hover Not Working On .fadeto Menu Opacity?

Jun 1, 2011

The JS file works and the menu fades but theres not change on hover, heres the code i'm using for the js:

$(document).ready(function(){
if ($.browser.version = jQuery.browser.msie &&
parseInt(jQuery.browser.version) == 6) {

[code]....

View 8 Replies View Related

JQuery :: FadeTo() Internet Explorer?

Sep 20, 2011

I have a link which when clicked either fades up a full screen overlay and a popup box ontop or fades them both down. This works perfect in every browser except IE7 and IE8. The popup box fades in and out OK but the overlay just appears or disappears with no fading (which is bizarre!)

[Code]...

View 1 Replies View Related

JQuery :: FadeTo() On Whole Paragraph But One Word?

May 30, 2010

I have a div with some content in it, within the content there's an anchor and when you click it all the content but the anchor itself should fadeTo('slow', 0.2);

What I have now is;

$("p a#somelink").click(function()
{
$(this).parent().parent().children("p").fadeTo("slow", 0.2);
return false;
});

Which obviously just fades all paragraphs. Is it possible to do what I want and with which selection string would I achieve it?

View 2 Replies View Related

JQuery :: Combining Live With FadeTo Event

May 17, 2011

I am trying to bind the live event to the fadeTo(). I am doing so because after the page is loaded, I am adding new elements to the page through ajax and need them to come in as faded. This is what I currently have.
$('.work').fadeTo('fast',.35);
This is what I have tried to do.
$('.work').live(fadeTo('fast',.35));
Above does not seem correct, but I have searched for more info/documentation on using live() with fadeTo but have found nothing.

View 4 Replies View Related

JQuery :: FadeTo And Hide Aren't Very Stylish?

Feb 26, 2010

When I call FadeTo or Hide, the fontstyling on my elements seems to get lost. This happens with both1.3.2 and 1.4.1 on IE8, running IIS6 on my local Windows machine. The attachment illustrates the problem. Click the Hide/Show button to toggle between the states. With minor and obvious modifications in the source code you can switch back and forth between the FadeTo and Hide/Show techniques. Both are set to happen slowly, so thatyou can see that the problem begins immediately as soon as the function is called. The font style on the screen visibly changes, and remains corrupted afterwards as you toggle back and forth. My own classes on the elements, linked to the embedded CSS,remain unchanged througout the scenario.The attachment is named test.txt because, of all things, this site doesn't seem to allow htm files to be attached. Rename it to test.htm (youwill also have to adjust the path to your jquery file) and give it a run.I'm a noob,so I fully expect that there's a simple explanation for this. I look forward to it.

View 3 Replies View Related

JQuery :: FadeTo() Not Working For Dark Colors In IE

Jul 8, 2010

I have the exactproblem explained here: [url] but I cannot seem to find a solution.

View 9 Replies View Related

JQuery :: IE7 Not Completing FadeTo Whilst 'keydown'?

May 18, 2009

I currently have 3 jQuery events assigned to the document keydown, keyup and click.

Here is my code:

var logkeydown = false;
$(function(){
$(document).keydown(function(e){
var key; e?key=e.keyCode:key=event.keyCode;

[Code].....

They toggle the boolean value of whether the keyboard key 'e' is currently pressed. If so, when the user clicks any of the site, I have a Thickbox fading in. This works great in Firefox and Safari, but IE7 begins to fade in the Thickbox (btw, I slightly altered the thickbox code to fade it in/out) but halts half-fade until the 'e' key is released.

View 1 Replies View Related

JQuery :: FadeTo() - Delay In The Availability Of The Effect?

Sep 7, 2011

I'm having trouble with the fadeTo() function. I'm doing it on rollover on a series of thumbnails that loads based on featured images of pages in a Wordpress site. I've got things working, but there seems to be some delay in the availability of the effect. The effect doesn't happen until a few seconds after the page is loaded, even in local testing. And even then, it seems to only seems to happen kind of one at a time, down the line of thumbnails. Here's the code I'm working with:

[Code]....

View 5 Replies View Related

JQuery :: Get All Ids Of Children Of A Particular Element

Jun 27, 2009

i want to get the ids of all the children of id 'top' and store it in an array in the order listed above. so final output in this case would be:

arr[0] = 1
arr[1] = 2
arr[2] = 3

is there a function or simple procedure that help me do this?

View 1 Replies View Related

JQuery :: How To Get Width Of Children Of DIV

Dec 16, 2010

I have a div containing many children all very different, each one as a different width. I need to get the width of all the children. I mean child1.width() + child2.width() + child3.width() etc... Of course as a new child can be added anytime I can not use the kind of things I put above.

I tried that among other things :
$("div.mydiv").children().width();
But I only get the width ofthe first child.

View 2 Replies View Related

JQuery :: Get Opacity Of A Div?

Sep 12, 2011

Is there anyway to get the value of the opacity of a div using javascript. I tried to use the following syntax but it returns and undefined value code...

View 3 Replies View Related

JQuery :: Select A Tags With No Ul > Li >a Children?

Oct 7, 2010

I have about 13 ul li a items in a list and some have nested lists within them e.g. ul li ul li a and some don't. I want to prevent the default action on only a elements that have nested lists within them but not prevent default action for ones that don't. Here's an example of the markup.

[Code]...

However, instead, is there a way to tell jQuery to only apply this preventDefault to ul li a elements that have ul li a descendants/children (not sure of correct terminology here) so I can have the list items in any order?

View 3 Replies View Related

JQuery :: :contains Selector To NOT Search In Children?

Nov 26, 2010

just wondering if there is any way for the :contains to not look in children to find something? Tried $(':contains("$")');, but it returns everything. Was thinking of something like $(":not(':parent')").filter(':contains("$")');, but the console returns null (and even then it would exclude elements that have children and their text includes "$".)

Trying to make a script that looks through a page and finds the price on any page. The only way I could think of doing this relatively accurately is to search for all elements with "$" in the text, then get the one that has the largest height/width (That's problem #2, I think -- will deal with it once i get there :)

View 3 Replies View Related

JQuery :: Get HTML Of Element And Children

Jul 9, 2009

I'm trying to get an unordered list and its children as an HTML string on a mouseout event, but html()only selects the child elements:var theHtml = $('ul', this).html();I've tried using andSelf(), but that doesn't return the result I want:var theHtml =$('ul',this).and Self(). html();I can't choose $(this).html() as I need only the list.

View 2 Replies View Related

JQuery :: Reference Specific Set Of Children?

Oct 28, 2010

I have:

<dt><a href="javascript:void(0);">Menu 1</a>
<dd>
<....>

[code]....

View 1 Replies View Related

JQuery :: Selecting First Level Children Only

Feb 13, 2010

Given the following markup
<div id="menu">
<ul>
<li><a id="home" href="#">Home</a></li>
<li>
<a id="about" href="#">About</a>
<div>

About sub menu
</div></li><li>
<a id="products" href="#">Products</a>
<div><h2>Books</h2>
<ul><li>ColdFusion</li>
<li>jQuery</li>
<li>CSS</li>
<li>HTML</li>
<li>Groovy</li>
<li>Hibernate</li> .....

How can I grab only the 1st level children of my node? I want direct decendents of menu only. My code below is grabbing all <li> which is going to be a problem.
(function($){
$.fn.extend({
myplugin: function(options){
return this.each(function(){
// the object we are working with
var obj = $(this);
// get a list of menu items
var menuItems = $('li',obj);
});
}});
})(jQuery);

View 2 Replies View Related

JQuery :: Selecting Immediate Children Only In Object

Feb 12, 2010

Taking the following markup
<div id="menu">
<ul>
<li><a id="home" href="#">Home</a></li>
<li>
<a id="about" href="#">About</a>
<div>

About sub menu
</div>
</li>
<li>
<a id="products" href="#">Products</a>
<div>
<h2>Books</h2> .....

How can I grab the immediate li children only and not all of the li that fall in this object. The following gives me every single <li> which is not what I am looking for.
(function($){
$.fn.extend({
myplugin: function(options){
return this.each(function(){
// the object we are working with
var obj = $(this);
// get a list of menu items
var menuItems = $('li',obj);
});
}});
})(jQuery);

View 2 Replies View Related

JQuery :: Showing Children In A Menu

Nov 27, 2009

I'm a beginner at using jQuery for website interaction and I needed to create a simple sidebar menu. Here is the HTML code:

Code HTML4Strict:
<ul id="sidenav">
<li><a href="#">2010</a>
<ul>
<li><a href="#">January</a></li>
<li><a href="#">February</a></li>
[Code]...

It basically works, but only if I remove the code part where I first hide the children of the sidenav, but doesn't work when I want at default all children of the sidenav to be hidden and showed only if clicked a particular parent menu. 1. How can this be accomplished? 2. Also how can I hide the children of previous clicked parents when I click on another parent to chow it's children?

View 2 Replies View Related

JQuery :: Div To Disappear When Clicking Outside It?

Apr 21, 2010

So, I have a content div and a floating sidebar (that's draggable). When I click on the content div, I want another div (with id #formatting) to appear inside the sidebar. This is already working.When I click outside the content div I want the #formatting div to disappear — but if I click inside the #formatting div it also disappears. How can I get it to stay there when I click inside the sidebar?Should I use an if statement, or are there other options?

$('#content').focus(function() {
$('#formatting').show('fast', function() {
//

[code]....

View 3 Replies View Related

JQuery :: Draggables Disappear In New Div?

Aug 23, 2011

I have a problem with my draggables disappearing. They behave properly, correctly firing their function when the drop and correctly highlighting their droppable when they are dragged in. They are just not visible when they cross the Div dividing line.

View 1 Replies View Related

JQuery :: Animate Opacity PNG In IE?

Jan 27, 2010

here is my [URL].. Basically when mouseover I animate the opacity. Works well in Firefox but in IE 8, the shadow appear on the text. Is there anything I miss out or is there any problem with my PNG file?

View 4 Replies View Related

JQuery :: Apply 50% Opacity To A Div?

Jan 29, 2010

I was trying to apply an alpha of 50% to a div but using opacity with CSS but it is not validated in CSS 2.1.

View 5 Replies View Related

JQuery :: Getting Plugin To Fix IE6 Opacity Bug?

Aug 2, 2010

I originally tried this but found it to be quite problematic: [URL]I don't think it's jQuery 1.4 compatible either.I then went on to try a JavaScript script that I found elsewhere, but that also brings up new problems!All I need is a simple bug-free jQuery plugin that will fix the opacity bug in IE6.

View 2 Replies View Related

JQuery :: Dialog Opacity With IE8?

May 13, 2010

I am seeing a weird issue where the dialog opacity does not work with IE8 browsers controlled by settings under a Windows Group policy. I can run IE8 from my house and the dialog opacity works fine. Does anyone know what Group Policy setting might turn off opacity in IE8?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved