I've got a very simple animation happening that when I try to wrap in a delay method that I found here, the last process does not work (animation opacity 1). Any ideas, pointers? $.fn.delay = function(time, callback){ // Empty function: jQuery.fx.step.delay = function(){}; // Return meaningless animation, (will be added to queue) return this.animate({delay:1}, time, callback); }$('#map').delay(500, function(){ $('#mapper').attr('style', 'background: url(' + this.src + ');'); $(this).stop().animate({opacity: 0}, 0); $(this).attr('src', '/public/images/team/map0.jpg'); $(this).stop().animate({opacity: 1}, 600); });
I'm trying this tutorial to get a sweet looking menu. [URL] I've followed all the steps but I seem to be missing something, because the transition is just a simple hover transition.
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 want the navigation dropdown to work just like this iXLink | The Neutral Business Exchange for Telecom. on this site ReStore why the animation doesn't seem to be firing.
I use Accordion into a tab and I have a particular problem just on FF.. When I click an accordion header the whole layout move on the left side ... This is the page, so you can see my problem: [URL]
I just wonder if there is a jquery plugin or something that enable me to create a html pagelayout with drag n drop.
Lets say i have a blank page with a div container, then i have a couple of layout elements that i can drag into that container, like 2 coulmn, 1 column, 3 column.
I hope you understund what i mean. something like sitefinitys template builder but in a light version.[URL]
I subcontracted a programmer who replaced my jquery.js with a different version of jquery. This version breaks my function, but my version breaks the layout. I have a function that works with
Code: jquery.tools.min.js But not with Code: jquery.js?ver=1.4.2
Here's is my function: Code: <SCRIPT type="text/javascript"> $(document).ready(function(){ $('.theVideoLink').click(function(e){ e.preventDefault(); $('#VideoContent').load($(this).attr('href')); }); }); </script>
I need this code to work with Code: jquery.js?ver=1.4.2 But it doesn't. It works with Code: jquery.tools.min.js But this jquery.tools.min.js breaks the layout in IE7&8.
I have scroll and pagination jQuerys for a website that I am developing for a company. The jQuery works fine on all browsers until I updated firefox to 3.6.3. On FF 3.6.3 the page loads fine but once the scroll or pagination is clicked on to change pages, the entire content shifts up 200px. I was unable to find any known bugs with FF and jQuery except for certain jQuery pages not being able to load but that seems to have been resolved. I am stumped with this problem and was hoping that maybe someone would know how to resolve this. I have tried using JavaScript to detect the browser and version to load a different css but that caused the page to load weird and jQuery fixed it after scroll or pagination was activated.
I was able to deduce that the problem must be with the two columns float left and right which are position relative, but still am unable to figure out why once the pagination or scroll is clicked the columns should shift... Let me know if more information is needed, such as page source. (I will do my best to disclose all relevant information to the extent permitted by the company).
I'm trying to create a horizontal layout for a client, the problem is that the width isn't predetermined, it changes depending on how many divs there are.
You can see what I mean here: [URL]
I'm thinking that somehow I need to calculate the widths of all of the combined .post divs, then use that total width calculation and set it as the width for the #content div, but I really don't know how.
I have this very simple code and if I focus on the textfield or button the backgrond color changes to red. If I click submit, the page refreshes and the red background color is no more.
How can I keep this background color after a page refresh or submit? The php in the head with the parse thing is just to load some jquery and css files your can replace it with '<script src="jquery-1.4.2.min.js" type="text/javascript"></script>' etc to test the code.
This is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
I'm using the load function to inject a page into my layout. It works fine, however after it loads the page the layout changes dramatically and eliminates pretty much all of the CSS in the HTML file.
The page im loading is a PHP page, could that be why? Is there something I have to insert into the PHP file to stop the display from changing upon loading?
I've been developing my beta site (not yet live) and I am integrating a live last.fm stream of the songs I am listening to by using javascript to parse the API's JSON and then place into tables (works very well): [URL]
Now, the trouble begins, I currently have the data layed out all nice and neat in a table: Screenshot
The "I'm Listening To" section is the section I wish to tab out like this: [URL]
So that on hover over the Image the relevant meta data will move in,
The problem I'm now having is that apparently JQuery wont let me do this with tables, thus completely nullifying most of my scripting and I need to reformat the parsed data into nested DIVs rather than tables, and maintain the same layout...
The problem is, I CAN manage to create the parent DIVs that contain the images but cannot get the JSON data to be parsed into the child DIVs,
All DIVs are being created dynamically,
My code so far:
Code:
//Calculates date text function calculateDateAgo(secAgo) { var agoString, agoRange, agoScaled; if(secAgo >= (agoRange = 60*60*24))
I have created some code that alerts me the contents of all the child divs inside a main div
function CheckEventLayout(){ //check all divs in area and resize overlapping divs var RunOnce; if( RunOnce != true ){ var StartTimes = new Array(); var EndTimes = new Array(); var i = 0; $("div#day-view-overlay").children("div.day-view-appointment").each(function(){ var DoOnce; if( DoOnce != true ){ alert($(this).html()); ..... CheckEventLayout();
The problem is this code is on a page that is loaded via post and if you go off the page and then back onto it jquery seems to attach the function again so it runs twice. So need to unbind this function before the script runs again.
I've been desperately searching for a horizontal scroll plugin for my clients site but there always seems to be something that prevents the plugin from working with the layout of the site. Here's what I'm looking for:
-smooth horizontal scroll with no horizontal scroll bar
-scrolls div container which has nested divs (no width/height restrictions and only one container viewable at any given time)
-external navigation, fixed navigation preferred
-navigation should be text i.e. home / about / contact etc.
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.
<html>
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.
it's possible to bind a function to an element that is fired if that element is 'moved'/repositioned via the browser.
For a more specific example what I have is a function that calculates height and width of certain elements to allow them to all fit nicely on the page without having scroll bars, and this is bound to the window onresize event. It works nicely most of the time but occasionally something will change the height of one of the elements and this effectively bumps one element right off the page.
So I'm wondering if its possible to have an event bound to an element that is fired when an elements position is moved/recalculated by the browser? Short of polling every second or so, to see if it has moved/recalculate layout.
I am hoping to use a 3rd party script for a simple JQuery photo slider for my WP blog. But the script creator says: "If you are trying to 'include' this into a blog template then you will need to have a good knowledge of the template structure and how it is pulling the information from the database. The files that I supply are intended for use in a normal xhtml page where you would just add the javascript calls and stylesheet links to the page head, then embed the xhtml into the web page or use a simple php 'include' to add this at run time." He couldn't help further. The blog theme I purchase comes with a photo slider but I wasn't happy with it 100%. I took the code from the new one and put it in as best as I could where the original one was formatted. I am not a programmer though and I know that clearly I did not do it right, as I used "a" ids like you would in HTML and I know they don't belong in PHP. However, it magically is working somewhat! All the graphics are showing, it's pulling images, and they are sliding. I just need to clean it up a bit. Here is a page where it is on:
i want to write a script through which the color of some text changes whenever a mouse is passed over it. the text is basically a heading. this part comes in the script in the <head>
function mouse1() { document.getElementById("b").style="color:red"; } function mouse2() { document.getElementById("b").style="color:white"; }
and this comes in the main body:
[Code]...
as you can see, the default color should be white, and whenever the mouse passes over it, it should turn red. however, it is not doing so, the text remains white when the mouse passes over it.
I got different looks in firefox and IE by using same code. I made a sign up form. If it's browsed by firefox, the elements will misplace. If using IE, not problem at all. BTW, I am using DW to make the form. Any hint?:thumbsup: