I'm new on jQuery. I'm developing an intro transition for a website. I've already done the FadeIn - FadeOut code for the page, here the example [URL].. but I've a little problem.When I click on the home button the animation restart.
I've been messing with this code to make a fade in animation with setTimout. The only thing is addition isn't working on the fade in. A subtraction on a negative works though. This seems strange to me.
changeit.style.opacity -= -0.01; works but when it's changed to changeit.style.opacity += 0.01; there's no fade in. It's the only thing I change. My intuition says to me it should work with addition, but maybe there's something I'm not understanding.
changeit.style.opacity -= -0.01; if this is set to changeit.style.opacity += 0.01; it doesn't work. What?
Of course this is all just for Firefox for now. If I put this in something useful I'll change it so it'll work in other browsers later.
I'm using the following piece of code to create a link that, when clicked, uses jquery animation to slowly display a paragraph of text. The trouble is that the animation goes both vertically and horizontally, making it look a little too busy/cluttery. How can I tweak my code to make it only animate vertically?
I have a button which is animated with a rollover effect, obtained through jQuery of course. I wish to open a lightbox clicking that button and I tried with a simple, self-made lightbox and with FancyBox but in either case the lightbox is displayed without animation.I post the code for my buttons and the lightboxHTML for buttons:
I use scriptaculous to retrieve the hotel names and area names from database in this page. My question is where it says step 3, Search for hotel, chain or location!. Type in syd for example and you see how it retrieves the values from database and shows them underneath. It works fine and the list is generated beautifully. Now I have to add the next step which is filling this text box (from step 3 where you typed syd in) with the value (of the item clicked on). For example once you typed sydney, if you click on Sydney, I want the text field to be filled with value sydney.
I have a series of functions I need to run in order.The functions use a lot of scriptaculous effects and I need to que up the functions so that they only run when the previous one, with all of its functions, have finished running. Cause of the nature of what I'm trying to do, I can't use the queue that comes with scriptaculous.
I am working on a site that must drag and drop items, I use scriptaculous 1.8.2, effects, dragdrop.js.But now I am lost, I kan drag, i can drop and invoke the onEnd or on Drop event, but can't find it out to get the data from the dragged and the dropped element together.What are I am trying:
1) Have element that is dragable, and and element that is dropable 2) The data of the dragable must be put in an ajax request(already coded) so I can update the mysql database so that:(1)The data at the position of the dragable gets removed(2)and the position of the dropable gets filled with that dataWhat do I ask: 1) How can I call the data of the dragable? 2) How can I call the data of the dropable?
I found this script that uses Prototype and Scriptaculous to display imagesCan someone tell me if I'm able to set this so it automatically slides between images using the [sliderright] function effect.