JQuery :: Images Resizing Not Working Properly?

Apr 20, 2011

I have a lot of images on a page and the have to be a little bit larger, so i dont want to change all of the css.I have made a couple of lines of code which doesn't give the right values back.The images have all diffrent sizes.

$('.imgbox').each(function(){
var getX = $(this).width();
var getY = $(this).height();[code]....

there's probably some thing wrong because it gives me very big values back.

View 2 Replies


ADVERTISEMENT

JQuery :: Resizing Images Of The Cycle Pager-Navigation?

Mar 18, 2010

I'm using the Cycle Plugin for a slideshow with a pager-nav .The AnchorBuilder gets the imagesource from "slide.src" - this is the same source as for the big image. Since I'm using rather big PNG's (500kb each) this double up the total pagesize. Is there a way to scale down these thumbs?I'm using Drupals Imagecache - so I do have access to scaled thumbs. But I dont know how the get Cycle to use them (printing a php array inside a javascript?).My script looks like this:

$(document).ready(function(){
$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) {
$(pager).find('li').removeClass('activeLI')[code].....

View 4 Replies View Related

JQuery :: Determine If The Images Are Fully Loaded Before Resizing The Image?

Dec 19, 2011

i just want to know if there is a way on how to determine if the images are fully loaded before resizing the images. I currently develop a slideshow that display images from the server. I just found out that if the images is not fully loaded it return wrong height and width. I just want to determine if the images are fully loaded before i resize it.Height and width is important to my application because i need it to adjust margin of the images.

View 9 Replies View Related

Jquery :: Transition Only Works Properly On Images

Jul 7, 2009

I'm new to jquery and am experimenting with implementing it into my existing work. I've got the cycle plugin working pretty well, only the 'turnDown' transition I want to use only appears to work on images. All other transitions seem to work fine with both content and images. I've done loads of searches on this but can't find anything specifically related to this...

Below is a link to where I'm at with it - the first 2 transitions are images and work as expected, giving that 'squashed' look as they slide in and out. The next 2 are divs, with an image, heading, and a paragraph inside - they seem to just 'drop' out which has a completely different effect and not what I want [URL]. Is there something in the plugin code itself I can tweak to make this happen, or is this particular transition intended for just images?

View 4 Replies View Related

Resizing And Caching Images On The Fly.

Nov 8, 2006

I have a function which caches images for a slideshow once the script has loaded. Here is an exerpt:

var base_ref = "http://www.example.com";
var images = new Array();
var tmp_images = new Array();
tmp_images[0] = "image1.jpg";
tmp_images[1] = "image2.jpg";
tmp_images[2] = "image3.jpg";
tmp_images[3] = "image4.jpg";
tmp_images[4] = "image5.jpg";

function cache_images () {
for (var i=0; i < tmp_images.length; i++){
var cacheimage=new Image();
var tmp_name = tmp_images[i];
var url = tmp_images[i] + ".png";
cacheimage.src=url;
images[tmp_name]=cacheimage;
}
}

As it is, the script whizzes through the for loop, and then moves on to the next function. The only trouble is that it moves on to the next function whilst it's still downloading the images from the server. Is there anyway to make the script wait until the downloading is completed, so that I can then go on to resize the images if it's needed?

View 2 Replies View Related

JQuery :: Code Not Working Properly In IE?

Mar 22, 2010

i have a select dropdown list working fine in firefox...but in IE it is not dynamically changing.i am using Jquery 1.32here is my code

$(function() {
$(document).ready(function() {
$('#provider').load("ajax/order.php?atask=getallproviders", {

[code]....

View 1 Replies View Related

JQuery :: Nth-child(5n) Is Not Working Properly?

Jul 6, 2010

[URL] why the 4th elements are getting selected by

$(".entry-summary:nth-child(5n)").addClass("last");

You can try the following code in Firebug console to debug:

$('.entry-summary').removeClass('last');
$('.entry-summary:nth-child(5n)').addClass('last');

View 2 Replies View Related

Image Resizing - Ignore 2 Certain Images That Are Part Of My Header

Nov 27, 2010

Im using the below javascript to resize images on a forum I have created but I want it to ignore 2 certain images that are part of my header. Heres the code

<script>
window.onload = resizeimg;
function resizeimg()
{
if (document.getElementsByTagName)
{
[Code]...

View 8 Replies View Related

Open Window Not Working Properly In Firefox But Is Working In IE

Feb 6, 2009

The Open Window in Javascript is not working properly in Firefox but is working in IE. What could the reason be?

[Code]...

View 1 Replies View Related

JQuery :: Buttonset() Span Not Working Properly With IE7?

Jul 19, 2011

I'm using the lastest version of jquery and I themed a list of checkbox with it. Im IE7 every time a user clicks on the buttonset span(which is pretty much the whole button as far as the users are concerned) the page gets scrolled up about 600pixels up.

This is really not a good thing, especially since those radios are located pretty far down a page with a scrolling bar, can you image the users who want to select 60 options? Having to scroll back down every time? How do I stop this infernal Jquery behavior? I literally use nothing else but this to these my radios:

$(".prettyme br").replaceWith(''); //fix RadioButtonList Bug
$(".prettyme").buttonset();

I really need some help on this, I spent hours trying to fix this.

View 4 Replies View Related

JQuery :: Date Picker Not Working Properly In IE 7?

Oct 18, 2010

The Date J query Date Picker Not working properly in IE 7

View 1 Replies View Related

JQuery :: Unbind (Keydown) Not Working Properly

Jan 26, 2010

I have a slight problem in FF3.5 that unbind('keydown'); is not working properly..
$("#q").unbind('keydown');
$("#q").keydown(function(e){
var code = (e.keyCode ? e.keyCode : e.which);
if(code==40 || code==38) {
var totalResults=$("#quick-search-results li");
var selectedResults=$("#quick-search-results li.qs-selected");
if(code==40) {
var nodeIndex=($("#quick-search-results li.qs-selected").length<=0) ? 0 : $("#quick-search-results").index('li.qs-selected');
alert(nodeIndex);
}}}); // end keydown

The above code alerts once on first keydown (with the down arrow key [code==40]), twice on the second, three times on the third and so on.. it worked fine in FF3 but a recent upgrade to FF3.5 seems to have broken the functionality..

View 3 Replies View Related

JQuery :: Jslider Not Working Properly On Webserver?

Oct 28, 2011

i m using jslider on my page working properly on my localhost server but after uploading files through ftp it is not working, only the left and right arrows have been shown.

View 1 Replies View Related

JQuery :: Toggle() On A Link In IE8 Not Working Properly?

Jan 18, 2011

I have ran into an issue, where the toggle() on a link is not toggling between the two.

$(".toggle a").click(function(event) {
event.preventDefault();
$('a', $(this).parent()).toggle()
});

[Code].....

When I click Existing members, it dissapears and Close Login appears. When I click Clos Login panel it dissapears but Existing Members does not re-appear.

I have tried using toggleClass() as well as using :hidden & :visible selectors. I am at wits end.

View 3 Replies View Related

JQuery :: Click Event Not Working Properly In IE

Sep 17, 2010

I have a div (#disclaimer) that has the css property of "display:none." The following jquery script is supposed to show it when the #test select option is clicked. The #quest,#comp,and #other divs are supposed to hide it again. It works fine in FF but does not work in IE. I have narrowed the reason down to the .click event on the select menu because it works fine on regular text.

[Code]...

View 2 Replies View Related

JQuery :: Short Function Not Always Working Properly

Apr 11, 2009

Looking at the sample code below, if you click the same link over and over, I get the desired result / animation of the revealed div. If however you click 'link 2' then any link except 'link 2' the animation is different. What do I need to change in my logic to always get the desired result despite which link was clicked?

[Code]...

View 2 Replies View Related

Jquery :: Lightbox Script Not Working Properly

Nov 20, 2009

I am having some issues with my lightbox. It won't work for a strange reason. Here is the site: [URL]. Here is the code for the site: [URL]. I get no errors in Firefox debug.

View 5 Replies View Related

Pre-loading Images Properly (IE + FireFox)

Oct 25, 2007

I am seeking a easy to maintain and more importantly *working* way to
pre-fetch images, so the pages I develop load smoothly without seeing
the images kick in flicker as they usually do. Important - I need
this to work on Internet Explorer 6.0+ and FireFox.

I am presently using at the head of the page,

pic100= new Image;
pic100.src="./imageme.gif";

However, it doesn't seem to work on FireFox at all. I've tried
different combinations with the URL path, but I don't know what I am
doing wrong. Can someone please assist me with this boggle?

View 23 Replies View Related

Why Ie Doesn't Preload Images Properly?

Jul 18, 2009

i am using the javascript Image object to preload images, on FF everything works fine but ie always reload the images so i get some flicking.

View 9 Replies View Related

JQuery :: Delay And Load Not Working Properly In Conjunction?

Jul 30, 2010

On this web site I'm developing for a client, he wants to have a simple search form on his main page, then, when the link for 'advanced' search is clicked, that form should be replaced by a more advanced search form. My solution works, but there's one problem. The advanced form can be seen before the simple form has been completely hidden, despite there being a delay function call before it. Any reason why delay doesn't seem to do its job here?

$('#search').hide('slow').delay(2000).load('search.php', '', function() {
$(this).show('slow');
});

View 5 Replies View Related

JQuery :: CycleAll Plugin Effect Not Working Properly In IE?

Aug 11, 2011

The jQuery 'cycleall' fade in effect does not work when I try it in IE. I've tried it in Chrome and Safari so far and it works fine. If I try another effect it seems to cut out half way through for some reason.

Here is the code:

<
scripttype
=
"text/javascript"
>

[Code].....

View 1 Replies View Related

JQuery :: Drop Menu Not Working Properly In IE And Firefox?

Jun 1, 2011

i am trying to create a very simple drop menu using jquery, bt when i am attaching the event to li's which have further ul inside it, it showing very strange behavior in firefox and in IE, it not showing propely the sub menu, zindex problem.

the complete code is here

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>
<style type="text/css">

[Code].....

View 1 Replies View Related

JQuery :: Slideshow Not Working Properly In Google Chrome?

Aug 23, 2011

I am using a jQuery Slideshow on a website homepage that I am helping to develop.

The homepage can be seen here: [URL].. This site is currently in production and I am trying to make some improvements at the moment. But I cannot understand why the slideshow isn't behaving correctly in Chrome. I'll tell you what it is supposed to do.

1) Page loads... slideshow begins to loop through 4 slides, each linking to an article on the website.2) When you click on a thumbnail on the right of the slideshow, it should bring that slide into focus - You can then click on the "Read More" link in the description at the bottom of the main photo to go to that article.

Now here is what it is actually doing. 1) Page loads - slideshow begins to loop through the 4 slides, this is working.2) Click on a thumbnail and it does focus on that slide but it only brings up the image... the section containing the information/description and the link to the article is missing.3) The slideshow then continues to loop through the slides as usual but each time it comes to the slide you previously brought into focus, the information at the bottom is missing.

I have checked in other browsers and this does not appear to be happening. I have also checked in earlier versions of Chrome and this did not happen - It is only happening with the latest version of Chrome.

View 1 Replies View Related

Jquery :: Cycle Through List Items Not Working Properly

Jul 1, 2009

I've been working with a little script from URL... but it doesn't seem to loop through the entire list.It works properly if I leave an empty list item in the UL - but that is not ideal.If i leave the count at 0, it leaves the final list item blank.

View 2 Replies View Related

Images Not Resetting Properly - Swap In And Out With Eachother

Apr 25, 2011

I have 3 images that I am trying to swap in and out with eachother. It starts off with the "Good Afternoon.gif" then I have a checkbox that changes it from and switches between the "Eyeball.jpg" and the "Smileys.gif" without going back to the "Good Afternoon.gif. That works perfectly fine and as intended. What does not work is my reset button, it unchecks the checkbox that I created as it should be does not set the image back to the "Good Afternoon.gif". I created goodAfternoon and a goodAfternoonFinal images because I am telling the code to to goodAfternoon.src=Eyeball.src; so I have the goodAfternoonFinal to change it back to the original pic.

[Code]....

View 3 Replies View Related

JQuery :: Cycler Not Working Properly When 20th Slide Added

Oct 23, 2011

I've now got my slideshow working with png captions flying in from the right. This was working perfectly but when I added the 20th slide the captions are no longer working properly, they seem to be disappearing behind the image. And when I add the 21st slide the captions stop working all together. Link below: [URL]

View 2 Replies View Related







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