hi,
i build a menu with a background position animation plugin by Jonathan
Snook’s.
The mouseover and mouseout are correct, but i dont't know to put when
click to stop animation and dont run a onmouseout action.
the code:
HTM
Hi there! I have a background image I want to change position when I
press the arrow keys. I want the background to move 16 pixels for
every press in the direction I indicate. I can't get this to work,
however. I have jquery installed, as well as the background-position
plugin. Here's my code:
$(
BTW, I have a quesiton:
$(document).ready(function() {
$('.buttons a')
.mouseover(function() {
var index = $('.buttons a').index(this);
$(this).css({backgroundPosition: '-' + 200 * index + 'px -0'})
$(this).stop().animate({backgroundPosition:"(-" + 200 * in
Thanks so much!
I don't really understand the logic behind it. The .css() set the
value to 200px but why I need to use the same value in anumate
(200px) ? By the way, .css has a bigger priority than animate?
Thanks again! I appreciate your help!
On Jul 11, 3:51 am, Karl Swedberg wrote:
> You co
You could chain a .css() to it. Set the x axis first with .css() and
then the y axis with .animate() :
$(this)
.css({backgroundPosition: '200px 0'})
.animate({backgroundPosition:"(200px -50px)"}, {duration: 600})
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.c
Hi,
The background position plugin by Alexander Farkas rocks!!
But I have a question.. Is possible to remove the animation for the X-
axis ? For example:
$(this).animate({backgroundPosition:"(200px -50px)"}, {duration: 600})
I don't want to animate the X-axis. I don't need 1 2 3 4 200px..
I
Hi, I was messing around with jonathna snook;s article
http://snook.ca/archives/javascript/jquery-bg-image-animations/
I'm trying to set an active state once user clicks on link
this is what I have now works, i tried getting the selected state by
adding a click function.
$(document).ready(fu
Hi,
At first I'm very sorry for my english. If any sentence or word is a
little bit confusing, just ignore it.
The Problem:
I have to refresh a background-image of a element every x
seconds. It's a image which is generated of a PHP Script, so the image
changes. Unfortunately there were flickeri
Hi folks
I'm looking for a handy way to pan across an image; my theory is that if
you set the image as the background to a div and then, on mouse move,
change the background position, this would work pretty sweetly.
Is this possible with JQuery, and if so, does anyone have the
code/syntax t
How would I change the X axis of background-position only on Firefox?
I need to leave the Y axis alone, and only change the X.
Subliminal message to John Resig of Mozillabackground-position-x is a
good thing.
Glen
10 matches
Mail list logo