JQuery :: PrettyPhoto: Stop It From Shrinking To Fit?

Jan 14, 2011

I'm using prettyPhoto for a gallery on my page. I'd like to keep it the same size independent of the photo size. So if the image is too big, the image shrinks down to the size of the box (although I don't mind the way it currently works of mostly filling the window). More importantly, I'd like it to not shrink to fit smaller images. It would be best if it would just center a too-small image.

Unfortunately, one of the images that is in the gallery is only 200x150, while most are around 800x600.

[Code]...

Somehow, I just now realized that the default dimensions don't seem to apply to anything (or at least they're not limiting anything as far as I can tell).

Perhaps something from how it works for iframe? The images don't thumbnail properly for the gallery if I put the width/height in the anchor href...

View 1 Replies


ADVERTISEMENT

Centering A Shrinking Image?

Nov 24, 2011

I have a large image which is centred horizontally and is 300px from the top of the web page. I have some code which will shrink the image, but am struggling to know how to ensure that the image remains centred as it shrinks, and also moves to the top of the page. Can anyone point me in the right direction? The code I have so far is...

Code:
window.onload = function(){
$("#logo").animate({width: "-=400", height: "-=200"}, 5000);
};

View 1 Replies View Related

Move Images Growing And Shrinking

Feb 6, 2009

I have been trying to change some code for an animated planet diagram and have found that the planets are growing and shrinking

how to stop it from growing & shrinking or how to make it grow and shrink less[code]...

View 5 Replies View Related

JQuery :: PrettyPhoto Compatibility With Newsticker?

Nov 14, 2011

I'm implementing prettyPhoto into my site which already contains a jquery newsticker from [URL]... There is a compatibility issue between this two, I can only manage to make one to work, but I really need both of them.

View 2 Replies View Related

JQuery :: PrettyPhoto, WordPress And IE Not Playing Nice With Each Other?

Sep 2, 2011

I'm having an issue with PrettyPhoto not working in IE. It works great in all other browsers. In IE, it will start to open, show a really small box and then no content. Here is a link to the site that I'm working on:[URL]..

View 3 Replies View Related

JQuery :: Versions Conflict - Code For PrettyPhoto ?

Aug 12, 2010

I have a site which uses a version of jQuery that might be an older version and when I try to add the code for PrettyPhoto which uses jQuery version 1.4.2 the site breaks. The earlier version of jQuery is used to implement the accordion effect and the background resizing effect.

Can someone peek at the multiple versions of jQuery in my code and tell me more about what is going on and how I can fix it?

Here is a link to the site in question: [url]

View 2 Replies View Related

JQuery :: Display PrettyPhoto Lightbox In Parent From Iframe?

Feb 2, 2010

I have been trying to get some assistance with this issue for a while now. I know this issue has been discussed before but I can't seem to get it to work. I have a master html page with an iframe on that page. I am using jquery prettyphoto and I was wondering how I can get the light box to display in the parent window when I click on the link in the iframe?[code]...

View 1 Replies View Related

JQuery :: Implemented The ScrollTo And PrettyPhoto Plugin - Internet Explorer - Not Working

May 27, 2009

I'm sure this is a very trivial and probably simple thing to fix, but unfortunately I've run into a massive wall with it!

(Vague disclaimer - i'm new to Javascript and jquery, but learning slowly.)

I've implemented the scrollTo and prettyPhoto plugin on my websites, both work brilliantly on everything but Internet Explorer: [url]

I've used the following code to initialize the jquery:

I've followed instructions for both plugins pretty well down to the T, so i can't see where i've gone wrong here.

View 5 Replies View Related

JQuery :: PrettyPhoto Plugin Display Larger Size Versions Of Photos

Jul 7, 2011

I have a site that I am developing where I use the prettyPhoto plugin to display larger size versions of photos. I have everything configured as per the directions on the plugin page here: [URL] I am experiencing a weird issue however. When I mouseover my anchor image, the mouseover is only on the top and bottom half of my image. The whole middle section of my anchor image is getting no mouseover effect. Meaning my cursor only changes to a pointer on the top & bottom parts of the image. It changes back to a regular cursor when directly in the middle of the image. The anchor image (the image I'm using to link to the larger version) is sized 333px wide by 500px tall and I am linking to jQuery version 1.5 as hosted on the Google api server.

prettyPhoto is working perfectly except for this mouseover issue. I do have a caption telling the user to click the picture to see the larger version, however if they mouseover directly in the center and don't see the mouseover effect they may think something is wrong. Does anyone know what I may be doing wrong and how I could fix the issue?

View 1 Replies View Related

JQuery :: Lightbox Or PrettyPhoto Or Fancybox Break When Submitting Content With JEditable Plugin?

Sep 25, 2009

i have a site that uses a lightbox based image viewer and the jeditable plugin. basically my site has a photo gallery and below each gallery i have the option to set a caption to the photo.

i have done the caption using jeditable and i've also tried using the ajaxForm plugin for jquery to see if jeditable caused the problem. but whichever method i use, approximately 20% of the time a photo caption is submitted, if you then click on the photo to view full size using lightbox (so far i've used fancyBox, prettyPhoto and Lightbox itself, and all break in the same way) it gets stuck at "loading", whereby the overlay appears, the inital empty box and animated gif appear, but then it just spins forever and never loads the image, as if it cant access the URL. weirder still, the FIRST time i do a page refresh to try and fix the problem, it doesnt work (something in the cache i expect), but if i do a second refresh or a shift + refresh, it resets and works again. it's very difficult to eliminate all variables because the problem is so sporadic, but it seems that the most likely way of breaking lightbox is to do the following:

[Code]...

View 3 Replies View Related

Jquery :: Conflict - Prettyphoto Popup - Works Fine In Firefox And Safari But Not In Any Version Of IE

Aug 7, 2009

The following code is needed for the prettyphoto javascript popup. It works fine in Firefox and Safari, but not in any version of IE.

<script>
jQuery.noConflict();
$(document).ready(function(){
jQuery("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>

View 1 Replies View Related

PrettyPhoto Gallery Not Working?

Nov 17, 2009

I have the page linked below. The first three thumbnails are videos and have a working tag of rel="prettyPhoto" but the next table of thumbnail images have a tag of rel="prettyPhoto[1]" that is not working.

LINK- [URL]

View 5 Replies View Related

Disable Scroll Behind PrettyPhoto Lightbox?

Apr 17, 2010

I have a prettyPhoto lightbox plugin on my site. When I click the thumbnail, the lightbox window opens. The problem is that when I scroll, the lightbox shakes violently. I have tried every available option through CSS positioning and none of them suit my situation. I need to be able to DISABLE all scrolling while the lightbox is open.

I tried this:

<SCRIPT type="text/javascript" language="Javascript">
var stop_scroll = false ;
function scrolltop(){
if(stop_scroll ==true){

[Code]....

This does nothing unfortunately and I imagine I am either approaching this incorrectly or I have some kind of syntax error.

View 1 Replies View Related

Prettyphoto Will Not Work With A Certain Slideshow Script?

Nov 10, 2011

I have a variety of scripts on my webpage... I have multiple slide shows that require javascript... out of the three 2 of them work fine with pretty photo but the one I need does not....

Does anyone know why prettyphoto conflicts with this certain script?

You prolly need the code but I thought this could be a common problem and i figure there maybe an easy solution..

View 4 Replies View Related

Closing A Video In (prettyphoto) Lightbox, On A Timer?

Dec 4, 2011

I had a code I found on google a few weeks ago that did this function well, but as I redesigned a few parts I deleted the code, and I cannot find it again :

The one thing I didn't like about the code was that the timer was not set in minuets or seconds it was set in hundreds ex. 800 would be equivalent to IDK I would have to guess and it wasn't very accurate.

Ex. of the lightbox and video to give you a better picture can be found here: www.VisumDesignz.com the second slideshow image has a play button on it click that and the video will appear in a prettyphoto lightbox.

View 4 Replies View Related

Confirm Doesn't Stop On Cancel / Stop It?

Nov 3, 2011

I m trying to make a person stay on same page on cancel, but the confirm takes the user to the next page like they press ok. how can i stop it? code...

View 1 Replies View Related

Add A Stop Button To Stop The Clock?

Oct 19, 2010

How do I add a stop button to stop the clock. Here is my code below.

<HTML>
<HEAD>
<script language="Javascript1.2">
<!--

[Code]....

View 3 Replies View Related

JQuery :: Animation With No Stop

Dec 9, 2010

I have 2 div blocks next to each other.

Whenever the mouse enters block1, an animation is started.

Now when I move the mouse from block1 to block2, the first animation needs to stop and the animation for block2 needs to start.

So I have a function:

and then:

The problem is now, as soon as the mouse leaves block1, the animation stops for a second before it starts the animation triggered by mouseenter into block2.

What I need is a smooth transition with no stop of the animation. Is there a way to realize that with jquery?

View 2 Replies View Related

JQuery :: Best Use Of Stop() For Animations?

Sep 20, 2010

What's the best use of fadeIn particularly the stop() Function?Here is my code:

$('.hireMe').mouseover(function(){
$(this).stop().animate(
{backgroundPosition:"(0 -25px)"},
{duration:200});

[code]....

And what this is doing is when a mouse is put over my div 'hireMe', the background position is animated upwards and in fades in my text with an id of 'resume'. However if halfway though the FadeIn you move the mouse out of the container, it will permantly be stuck in this limbo world and will never return to 100% opacity again. Am I utilizing the stop() properly?

View 4 Replies View Related

JQuery :: Re-starting After Stop()?

Mar 20, 2011

How to re-start an animation after it's been stopped ?

function breathe() {

{ breatheIn();setTimeout('breatheOut()',6400); }
setTimeout( function() { breathe() }, 19200);
}
components:
function breatheIn() {

[Code]...

View 2 Replies View Related

JQuery :: Stop A DIV From Reloading?

Nov 18, 2011

I am just starting out with jQuery (slowly reading through my book)

I am trying to find a way to stop a DIV from reloading with the rest of the page content.

I have a fixed position div at the bottom of the browser with image thumbnails. I am trying to figure how I can get this DIV to NOT refresh when a link inside it is selected. This will allow the scroll position in this div will remain in the correct location.

View 4 Replies View Related

JQuery :: Stop A Script From Loading Only In IE?

Jan 11, 2011

I have a site that look great in all browsers except IE. There are some hover effects on the menu and a few other items on the page that look terrible in IE but if I disable the scirpt that calls the hover effects then the items look great.How can I use jQuery to stop another jQuery script from loading on my site in IE only?

View 1 Replies View Related

JQuery :: Stop A SetInterval On Hover?

Jul 28, 2010

Here is my problem broken down:I have some animation inside a function like this:

function doAnimation() {
$('div.nav').animate({left: 15}, 200, 'swing')
$('div.nav').animate({left: 10}, 200, 'swing')

[code]....

View 5 Replies View Related

JQuery :: Stop And Restart A Transition?

May 9, 2010

I have been able to have a series of images fade in and out with the following Jquery code:

$(function(){
$('.fadein img:gt(0)').hide();
setInterval(function(){
$('.fadein :first-child')

[Code]....

However, I want to add two buttons: Stop and Resume. I would think that interval needs to be stopped and restarted, but I do not know where or how to add that.

View 2 Replies View Related

JQuery :: Stop Animation In Version 1.1.3 ?

Dec 12, 2011

how to stop the animation in jqueryversion1.1.3 ?in 1.2 and higher version has thefunctioncalled "stop()",which is notavailablein 1.1.3 ?

View 17 Replies View Related

JQuery :: Key Events Stop Working?

Mar 4, 2010

I have this code in a website I'm making:

$(document).ready(
function () {
$('body').keyup(function(event){
console.log(event.which);

[Code].....

But the event isn't working all the time. It stops working after I change to another window and come back to the browser window.

View 1 Replies View Related







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