You can attach the mouseenter event to the div like this:
$('div').mouseenter(function() { // Do stuff });
Documentation is at http://docs.jquery.com/Events/mouseenter
On Nov 15, 3:30 pm, Tom Lobato tomlob...@gmail.com wrote:
Hi,
in first, these days I started to play with jquery and I`m
of this.
HTH
Morten
-Original Message-
From: Shane Riley [mailto:shanerileydoti...@gmail.com]
Sent: Saturday, November 07, 2009 1:19 PM
To: jQuery (English)
Subject: [jQuery] Plugin Authoring Code Example Incorrect
I created a jQuery plugin for the sake of learning the process
() { /* do something */ });
2)
this.each(function() { /* do something */ });
return this;
--Karl
On Nov 8, 2009, at 12:56 PM, Morten Maxild wrote:
Exactly...looks correct:-)
-Original Message-
From: Shane Riley [mailto:shanerileydoti...@gmail.com]
Sent: Sunday, November 08, 2009 6:44 PM
You can place the images each in a container and use those containers
as the slides instead. Then the Cycle plugin isn't messing around with
the PNG filter applied by your iepngfix.htc. ie:
div id=slideshow
div class=slideimg src=./images/showcase.png alt= //div
div class=slideimg
Are you wanting to just hide the anchor element for link 4 but keep
links 4a to 4c visible? Here's a quick example of that scenario:
$(function()
{
$(ul#nav li ul).each(function(i)
{
$(a:first, $(this).parent()).hide();
I've got a simple each function that finds every subnav and assigns it
a vertical position equal to half of the subnav's height. This works
great in all modern browsers, but in IE6 I get errors from each of the
two lines within the function. Here's the problem function:
I've got a simple each function that finds every subnav and assigns it
a vertical position equal to half of the subnav's height. This works
great in all modern browsers, but in IE6 I get errors from each of the
two lines within the function. Here's the problem function:
Weird double post. Found the issue. For some reason declaring the
variable worked. So I changed it to:
var top = (parseInt($(this).height()) / 2) - 6;
On Sep 24, 7:31 am, Shane Riley shanerileydoti...@gmail.com wrote:
I've got a simple each function that finds every subnav and assigns
If you're using the latest jQuery, you can bind most events with .live
() to ensure that your events are attached when the new content is
loaded in. Note that this doesn't work for all events, though.
On Aug 11, 12:03 pm, cz231 cz2...@gmail.com wrote:
Hi,
I'm building an online application,
When calling this jQuery:
$(#homepage-slides img:eq(0)).fadeOut(300, function() {
$(#homepage-slides img:eq(1)).fadeIn(300, function() { $(#homepage-
slides img:eq(0)).remove(); });
});
I'm getting this warning in the Web Developer toolbar in Firefox:
Warning: Unknown pseudo-class or
).
In Internet Explorer the default value of Cycle's 'cleartype' option
is true in recent versions of the plugin.
So to use the undocumented option you would do this:
$('#slideshow').cycle({
cleartypeNoBg: true
});
Hope this helps with the problem you're having.
Mike
On Apr 22, 6:00 pm, Shane
You can use a number of Ajax functions built in to JQuery depending on
your specific needs. Check them out at http://docs.jquery.com/Ajax. If
all you're looking to do is insert one file into another, load is
normally the way to go, unless you're looking to place the loaded file
before, after, or
I've been using Mike Alsup's Cycle plugin on a large number of
projects, and one of the most recent ones is giving me trouble in IE.
In this example, the slide container seems to have a background color
applied to it, and there is neither a background property added to it
nor is there any
();}
});
how I can get for example content only from div with id=header2 ?
On 23 апр, 01:55, Shane Riley shanerileydoti...@gmail.com wrote:
You can use a number of Ajax functions built in to JQuery depending on
your specific needs. Check them out athttp://docs.jquery.com/Ajax
So what you're trying to do is ensure that the slideToggle is done
animating before you add/remove a class? If so, you'd do something
like this:
$('.open-post-info').click(function() {
var id = $(this).attr('id');
$('.post-info-' + id).slideToggle(medium,
There's definitely nothing wrong with the JQuery. Can you post a test
case so that we can see all of the pieces to the puzzle?
On Apr 22, 7:07 pm, Richard D. Worth rdwo...@gmail.com wrote:
Your code looks fine, and I wasn't able to reproduce what you're describing:
http://jsbin.com/ucaqi
-
I'm wanting to read in the exact string that's contained in an
anchor's href attribute in order to use it as the POST variable list
for an Ajax call to a PHP script, however in IE6 and 7 the string read
from the href attribute ends up being the absolute path, not just the
href attribute. Here's
think I'm going to have to move the contents of href to rel instead.
On Mar 25, 11:43 am, Martijn Houtman martijn.hout...@gmail.com
wrote:
On Mar 25, 2009, at 4:32 PM, Shane Riley wrote:
I'm wanting to read in the exact string that's contained in an
anchor's href attribute in order to use
the site (it's a backend system
for very specific clients). They want to add all sorts of animations
and effects like everyone wants to do once they see JQuery animations
in action.
On Mar 25, 12:14 pm, Martijn Houtman martijn.hout...@gmail.com
wrote:
On Mar 25, 2009, at 5:04 PM, Shane Riley wrote
Swedbergwww.englishrules.comwww.learningjquery.com
On Mar 25, 2009, at 12:21 PM, Shane Riley wrote:
Ha! I looked at your post too fast, and didn't notice that it was pure
Javascript. Sorry. I'll try it and see.
The way I currently have it will not work with javascript turned off
either. I'm doing
After replacing $(this).attr(href) with this.getAttribute(href, 2)
I get the same result. If I output the attribute, IE still shows the
absolute path.
On Mar 25, 2:21 pm, Shane Riley shanerileydoti...@gmail.com wrote:
Karl, I'm pretty sure I'm reading you right, but are you saying that
by all
with
javascript, they're both reporting the fully qualified URL.
Which version of IE are you testing in?
--Karl
Karl Swedbergwww.englishrules.comwww.learningjquery.com
On Mar 25, 2009, at 2:21 PM, Shane Riley wrote:
Karl, I'm pretty sure I'm reading you right, but are you
Right, it's not hard, it was just unexpected is all. I guess I've
gotten used to JQuery working the same in all browsers.
I've got it working now with some old-fashioned Javascript. Thanks!
On Mar 25, 3:20 pm, Shane Riley shanerileydoti...@gmail.com wrote:
Alright, so your example shows
This obviously is not a solid, permanent fix, but I found that if I
set the images to a fixed width and height in the CSS it didn't
exhibit this behavior.
On Mar 12, 7:32 am, Mike Alsup mal...@gmail.com wrote:
hi there, i got the same problem actually appearing on:
* windows vista home
That was my initial issue as well, however my client agreed to same-
height images. Does anyone know if a previous version has these
issues? I don't remember ever seeing this happen in the older
versions.
On Mar 12, 8:31 am, id404 ttarp...@googlemail.com wrote:
@shane: it's not so easy because
I've got an instance of Mike Alsup's Cycle slideshow working on the
homepage of a project I'm finishing up, and I'm having different
issues with it depending on the browser being used. All of the issues
seem to be happening in Mac only browsers. Here's the site I'm having
trouble with:
That looks to have done it. Thanks!
On Mar 8, 1:12 pm, Mike Alsup mal...@gmail.com wrote:
The first issue is in FF 3.0.7 on Mac. Occasionally, the first image
appears no problem, however the remaining images show up extremely
small. I tried setting a fixed width and height to the images,
Nevermind, I've changed it to toggle onclick instead.
On Mar 7, 9:12 am, Shane Riley shanerileydoti...@gmail.com wrote:
I've tried getting this to work properly in IE with a variety of
different methods, and none are working. The page in question is
here:http://elixir.biz/coders/marlins
Actually, now the client has said that the issue still appears in FF 3
on Windows. I'm installing a new copy on a virtual machine to test it
now, but is it possible there's still unresolved issues with the
sizing?
I've tried getting this to work properly in IE with a variety of
different methods, and none are working. The page in question is here:
http://elixir.biz/coders/marlins/incoming/photos.php
If you hover over the blue team text it will display a drop-down
menu. However, in IE6 and IE7 once you've
I've got a project where I've got two slideshows on one page, and
they're identical markup. Instead of adding IDs to each and making two
separate cycle references, I wanted to attach the next and previous
slide events on two specific links grouped with the slideshow
container. I'm wondering
Actually, I had figured out a solution almost like what you've got
here after your Twitter replies. Here's what I used to make it work:
$(.slideshow ul).each(function()
{
e = $(this);
p = $(p.controls, $(this).parent());
e.cycle(
I'm pretty sure this is going to require using string functions to
locate the background-color property for testing. You could use .css
(background-color) to read in the color attribute, but it will be in
RGB form as shown in the documentation's demo at
http://docs.jquery.com/CSS/css#name.
33 matches
Mail list logo