Jump to content


Photo

Limitar Tamanho Da Foto No Lightbox


  • Faça o login para participar
19 replies to this topic

#1 kurt_rp

kurt_rp

    12 Horas

  • Usuários
  • 140 posts
  • Sexo:Masculino
  • Localidade:Rio Grande do Sul
  • Interesses:Programação web e designer.

Posted 22/11/2009, 12:29

Alguem sabe como faze para limitar o tamanho de uma foto no lightbox?
Tipo.. se ao abrir a foto e ela for muito grande, nao dx ela passar da visualização da tela, ou seja, limitar o tamanho da foto.

Obs: Digo isso qdo ela é aberta e nao a miniatura.

Alguem sabe como resolver isso???

Edição feita por: kurt_rp, 20/11/2009, 15:34.

|| PLUG CIDADE || - O portal turistico do vale do Rio Pardo
http://www.plugcidade.com.br

|| PLUG BALADA || - O portal de festas do vale do Rio Pardo
http://www.plugbalada.com.br

#2 FelipeGabriel

FelipeGabriel

    Normal

  • Usuários
  • 66 posts
  • Sexo:Masculino
  • Localidade:Patrocínio - MG

Posted 22/11/2009, 23:41

Bem, no lightbox não e possivel,
você pode limitar o tamanho da imagem com php, redimencionando a imagem, asim o lightbox já ira pegar a imagem do tamanho que vc definir.

#3 kurt_rp

kurt_rp

    12 Horas

  • Usuários
  • 140 posts
  • Sexo:Masculino
  • Localidade:Rio Grande do Sul
  • Interesses:Programação web e designer.

Posted 23/11/2009, 08:56

Ok Felipe!
Td bem, mas acontece que eu ja tenho um portal todo pronto e la ja te varias imagens cadastradas, ai agora vai ficar ruim fica arrumando uma por uma o tamanho das imagens.
Por isso que eu queria algo que pudesse limitar o tamanho na hora de aumentar a imagem mesmo se ela ficar um pouco destorcida, pq vao ser poucas imagens que ira ficar no tamanho maior da tela, e se ficar muito ruim dai eu posso arruma e manda denovo, mas agora arrumar todas, dai nao dá.

Sera que nao tem outro script parecido com esse do lightbox que possa fazer isso? e que funcione nessa droga de IE??
Pq tenho um aqui que ja faz isso, que fiz umas mudanças no site e agora nao tem jeito de funciona direito nesse IE.

Se alguem souber de algo, por favor, me de um tok.
|| PLUG CIDADE || - O portal turistico do vale do Rio Pardo
http://www.plugcidade.com.br

|| PLUG BALADA || - O portal de festas do vale do Rio Pardo
http://www.plugbalada.com.br

#4 FelipeGabriel

FelipeGabriel

    Normal

  • Usuários
  • 66 posts
  • Sexo:Masculino
  • Localidade:Patrocínio - MG

Posted 23/11/2009, 21:36

Você pode redimencionar a imagem em PHP, idependente do tamanho, veja exta classe:

http://www.daviferre...imagem-php.html

Você informa o diretorio da imagem, e ele redimenciona ela no momento, sem necessidade de hospedar a imagem já no tamanho...

Forte Abraço.

#5 midtec

midtec

    Novato no fórum

  • Usuários
  • 1 posts
  • Sexo:Não informado

Posted 02/03/2010, 23:23

Bem, no lightbox não e possivel,
você pode limitar o tamanho da imagem com php, redimencionando a imagem, asim o lightbox já ira pegar a imagem do tamanho que vc definir.


Desculpem ressucitar o tópico,é que encontrei a solução :
No arquivo lightbox.js
Imediatamente depois dessa linha:
"Element.setSrc('lightboxImage', imageArray[activeImage][0]);" adicionar o seguinte:


if (imgPreloader.height > 480)
{
imgPreloader.width = parseInt((480/imgPreloader.height) * imgPreloader.width)
imgPreloader.height = 480
}
else if ( imgPreloader.width > 480)
{
imgPreloader.width = 480
imgPreloader.height = parseInt((480/imgPreloader.width) * imgPreloader.height)
}

Element.setWidth( 'lightboxImage', imgPreloader.width - (borderSize * 2));
Element.setHeight( 'lightboxImage', imgPreloader.height - (borderSize * 2));

Mudar o tamanho trocando o valor 480 pro tamanho desejado.
Abraços.

#6 djboss

djboss

    Novato no fórum

  • Usuários
  • 1 posts
  • Sexo:Masculino
  • Localidade:riogrande

Posted 16/03/2012, 11:15


Bem, no lightbox não e possivel,
você pode limitar o tamanho da imagem com php, redimencionando a imagem, asim o lightbox já ira pegar a imagem do tamanho que vc definir.


Desculpem ressucitar o tópico,é que encontrei a solução :
No arquivo lightbox.js
Imediatamente depois dessa linha:
"Element.setSrc('lightboxImage', imageArray[activeImage][0]);" adicionar o seguinte:


if (imgPreloader.height > 480)
{
imgPreloader.width = parseInt((480/imgPreloader.height) * imgPreloader.width)
imgPreloader.height = 480
}
else if ( imgPreloader.width > 480)
{
imgPreloader.width = 480
imgPreloader.height = parseInt((480/imgPreloader.width) * imgPreloader.height)
}

Element.setWidth( 'lightboxImage', imgPreloader.width - (borderSize * 2));
Element.setHeight( 'lightboxImage', imgPreloader.height - (borderSize * 2));

Mudar o tamanho trocando o valor 480 pro tamanho desejado.
Abraços.


bem respondendo o topico estavaa procura disto e acabei resolvendo aqui muito obrigado e belissima resposta sobre o topico funcionou perfeitamente
eder

#7 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 02/10/2017, 02:58

Viagra Samples From Pfizer Levitra Lasting Time viagra Cialis Achat Moins Cher Amoxicillin Dog Blood In Stool Buy Tamoxifen No Prescription
Cialis Achat En Belgique Como Tomar Compra Kamagra viagra online Amoxicillin Dose Pedriatic Where To Purchase Stendra
Generique Amoxicillin Pharmacie En Ligne En Suisse Generique Achat cialis Gimmepills
Direct Pyridium Usa With Doctor Consult cialis Best Buy Fedex Shipping Bentyl Anticholinergic Cialis Espagne Cialis Canada Pharmacy Online
Clomid Mais Enceinte Cialis Uso Frequente Cialis Tadalafil Tabletas best prices for on line levitra Acquisto Viagra Line Italia Viagra Bestellen Deutschland Where Can I Order Alli From
What Does Keflex Treat Ordering Viagra From Cananda Discount Generic Amoxicilina Free Shipping Store buy 10 mg levitra online Online Pharmacy No Dr Prescriptions
Assunzione Levitra Buy A Viagra Pills viagra online prescription Get Levitra Preisvergleich Viagra 25mg Viagra Efectos Negativos
Cipro And Amoxicillin Toghter Buy Viagra Online Without Prescription viagra Prezzo Cialis Da 5 Mg Prezzo Levitra In Italia
Quanto Costa Il Cialis In Italia Isotretinoin Skin Health Zoloft For Sale viagra online pharmacy Zithromax Dental Infections
Alli Weight Loss In Stock Cost Propecia 1 Mg Buy Viagra Online Canada Vipps Pharmacy viagra online Cialis Soft Mastercard Best Price On Cialis Coupon
Cvs Pharmacy Cialis Coupon Methocarbamol Germany levitra overnight delivery Is Cephalexin A Penicillin
Viagra Farmacia Barcelona Acheter Cialis Discount France Effets Secondaires Cialis Viagra viagra prescription Cialis Effet Avis Zithromax High Dose Viagra 100 Mg Comprime
Pentagesic levitra canada free shipping Saleonlinedrugs
Clomid Et Anovulation viagra online prescription Cialis Black Market Price 274 100mg Viagra For Male And Female
Toradol Online Without Prescription Us Cialis In Offerta buy viagra Keflex And Holy Basil
Cialis Tabs cialis online Is There Penicillin In Amoxicillin
Jnj Priligy Levaquin Purchasing Price With Next Day Delivery viagra Cialis Carrefour Kamagra Autorise En France
Achat Viagra Pilules cheap viagra levitra cialis Cheap Tadalis

#8 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 11/10/2017, 15:41

Buy Real Zithromax Vendita Priligy On Line Uk Research Chemicals Clomid online pharmacy Buy Levitra 20mg Viagra Rezeptfrei Kaufen Hannover Se Vende Viagra Sin Receta Medica
10 Years Using Propecia Where To Order Elocon Mometasona With Free Shipping New Orleans viagra online Lowest Price Viagra 100mg Canada 2014
Priligy Cvs online pharmacy I Want To Last Longer
cheap accutane online Cialis Viagra Cual Comprar Buy Stendra Online costco pharmacy prices levitra 52 4rx Priligy Cialis Commander On Line Acticin Lyclear Purchasing Secure

#9 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 11/10/2017, 16:42

Buy Propecia Online With No Prescription viagra Viagra With Prescription In Usa Amoxicilina Direct Medicine Next Day Delivery Shop

#10 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 28/10/2017, 00:44

Viagra Cialis Ordonnance Discount Tadalafil Tablets viagra Viagra Dove Acquistarlo Cialis Hochste Konzentration Buy Celebrex Online Canada
Viagra Prix Ligne Amoxicillin Sife Effects Discount Generic Isotretinoin Website Mastercard Store Winston cialis price Clomid Mal Au Ventre
Doxycycline Epocrates Online Uso Del Viagra Controindicazioni Amoxicillin Dosing For Strep viagra Cialis Online Fast Delivery Zithromax Rash Child

#11 vapedlok

vapedlok

    Ativo

  • Usuários
  • 326 posts
  • Sexo:Feminino
  • Localidade:Bogota

Posted 28/10/2017, 05:30

Discounts! worlds best products progect12.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE 8A Brazilian Virgin Hair Body Wave 3 Bundles Mink Brazilian Hair 100% Human Hair Weave Virgin Brazilian Hair Extensions BodyWave ( 45.20 $)Kerui wireless wired burglar alarm systems security home alarme gsm alarm russianspanishenglish voice wireless password keypad ( 125.72 $)Lenovo ZUK Z2 Pro 4G Smartphone ( 430.16 $)nike duckbootGeorgia black leather top zip tote bag ( 179.74 $) Francesco BiasiaBrazilian grey full lace human hair wigs wavy silver gray glueless front lace wigs 180 density with comb and straps grey wig ( 137.75 $)Multicolor striped leather small picnic bag ( 829.17 $) Victoria Beckham1 pc uv gel brush gradient painting pen drawing brush white rhinestone handle manicure nail art ( 3.99 $)Soft 12 13 14 16 18 19 20 21 22 24mm Alligator Grain Strap Embossed Genuine Leather Watch Band for Tudor Bracelet for Hamilton ( 9.99 $)LeTV Leeco Le Pro 3 X720 4G Phablet-409.00 $HOMTOM HT3 5.0 inch Android 5.1 3G Smartphone MTK6580 Quad Core 8GB ROM 2.5D Screen Dual Cameras GPS WiFi Smart Gesture 67.59$Addis bluette embossed leather bootie ( 420.47 $) Zoe LeeNew arrivals best sales safe flip up motorcycle helmet with inner sun visor everybody affordable double lens motorbike helmet ( 48.15 $)Clever Canvas 1080P Smart WiFi Billboard Advertising Board-609.42 $Stainless Steel Cutout Rudder Pendant Necklace ( 158.40 $) 110bb.png
Discounts! best rated facial products

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Lux golden metal mesh bracelet wcrystals ( 353.06 $) Roberto Cavalli
nike lunar force flyknit
Free Shipping Universal Car Auto Remote Central Kit Door Lock Locking Vehicle Keyless Entry System New With Remote Controllers ( 9.98 $)
Moda 2016 mulheres pullover over fashion knitwear sweater women's female v neck loose autumn winter pullovers christmas sweate ( 18.99 $)
Internet-shop of professional cosmetics Spadream | Buy branded cosmetics from Moscow
Virgin Indian Hair Straight 7A Indian Virgin Hair 8-30inch Unprocessed Indian Straight Virgin Hair Bundle Cheap Human Hair Weave ( 53.80 $)
Malaysian virgin hair body wave 4pcs 8a unprocessed malaysian hair weaves virgin malaysian body wave #1b cheap malaysian hair ( 85.08 $)
Malaysian virgin hair body wave 3 bundle deals malaysian human hair weave sale 7a malaysian body wave virgin hair extensions ( 53.80 $)
Gel soak off remover high quality non acetone uv nail polish varnish gel cleaner degreaser 1 ( 9.50 $)
MOLIAM Fashion Design Small Huggie Hoop Earrings for Womens Cluster Paved Zirconia Crystal Stone Earing Jewelry 2016 E218 ( 4.99 $)
Internet electronics shop "Maximus"
Sexy round neck sleeveless bodycon backless women's dress ( 9.12 $)
Quartz watch with diamonds analog indicate pu leather watch band tower pattern for women ( 3.70 $)
2.5 inch bi xenon mini hid h1 projector lens w relay harness hilo beam controller for h4 h7 car styling light retrofits use h1 ( 24.99 $)
mobile phones +are getting


194.jpg
Discounts! best of beauty

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
установка фаз грм змз 406 +по транспортиру
LeTV Leeco Le Pro 3 X720 4G Phablet-409.00 $
Original converse classic all star canvas shoes men and women sneakers low classic skateboarding shoes 4 color ( 66.50 $)
Royadong 2016 backpack men pu leather fashion vintage travel men bag for teenagers ( 48.99 $)
Sale 5mm 600 piecelot FlatBack Acrylic Imitation Pearl beads For DIY Decoration jewelry accessories ( 0.99 $)
Reusable Adjustable Washable Soft Babies Diaper Pants ( $3.79 )
7a malaysian virgin hair straight 3 bundles malaysian straight virgin hair unprocessed malaysian hair cheap human hair weave ( 29.40 $)
Embossed Leather Patchwork Belt ( 90.72 $)
New 164pcs Mini Magnetic Designer Construction Set Model & Building Toy Plastic Magnetic Blocks Educational Toys For Kids Gift ( 78.99 $)
shoppinglive ru интернет магазин смотреть
гайка шкива коленвала
Multi-purpose Clip Type Rice Washing Sieve Drainer ( $2.44 )
Sweet boat neck spliced embroidered women's dress ( 18.57 $)
Signature Acetate Square Frame Sunglasses ( 190.00 $)
New fashion black and whiter blusas t shirt women korean style sexy v neck tops tee ( 2.66 $)


118bb.jpg
Discounts! makeup top

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Men jacket coat long section fashion trench coat jaqueta masculina veste homme brand casual fit overcoat jacket outerwear 5xl ( 62.28 $)
Cashmere winter warm jeans women with high waist black jeans for girls stretching skinny jeans elastic waist large size ( 23.50 $)
High Quality Half Metal Sunglasses Men Women Brand Designer Glasses Mirror Sun Glasses Fashion Gafas Oculos De Sol UV400 Classic ( 6.95 $)
какой комплект грм змз 406
Meizu Metal 16GB ROM 4G Phablet-175.39 $
энгри гоу играть
Multicolor Printed Box Clutch ( 178.00 $)
Blue stitch onesies pajamas cartoon animal cosplay pyjamas adult onesies costume party dress halloween pijamas ( 13.47 $)
Gold Plated Maritime Republics Button Covers ( 83.20 $)
Vintage casual small alligator chains hotsale ladies party purse women clutch famous designer shoulder messenger crossbody bags ( 17.00 $)
JAKEMY JM-6111 69 in 1 Screwdriver Hardware Repair Open Tools Demolition Kit Electronic Devices Eyeglass ( 35.88 $)
New Pair OD 76mm Car 39 LED SMD Lights Angel Eye Halo Ring Lamp For BMW Redbluewhite ( 7.35 $)
антицеллюлитный горячий скраб
Bff hair products malaysian virgin hair straight 8a mink malasian virgin hair wholesale grace human hair weave 3 bundleslot ( 60.08 $)
Muhammad Ali's son, ex-wife detained at airport


78bb.jpg
Discounts! best products catalog

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Curved fine leather wallet ( 191.29 $) Sophie Hulme
Televizionnij sezon 2013/14 (SShA)
Krosbi, Bing
grand theft auto liberty city stories
Afro Kinky Curly Clip In Human Hair Extensions Mongolian Virgin Human Hair African American Clip In Extensions 10""-26"" Clip Ins ( 55.50 $)
Inglourious Basterds Django Unchained Reservoir Dogs Kill Bill Quentin Tarantino Poster Videos ( 1.70 $)
Lomeou high quality makeup brows automatic eyebrow pencil with eye brows brush waterproof long lasting ( 2.76 $)
Velocifire VM01 Backlit Gaming Mechanical Keyboard-51.60 $
7a peruvian virgin hair body wave 3 bundles peruvian body wave virgin hair bundle deals remy human hair weave 6 ( 45.00 $)
бесплатный игра
Croco-Stamped Leather iPhone 3 Case ( 48.00 $)
nike air force 1 white
Retro style loft vintage industrial lighting pendant light with 3 lights pipe hanging light ,lamparas colgantes ( 123.73 $)
counter strike online через торрент
Free Shipping Integrated Circuit IRF1503SPBF MOSFET N-CH 30V 75A D2PAK 1503 IRF1503 3PCS ( 9.25 $)


45bb.jpg

#12 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 28/10/2017, 07:22

Mail Order Online Provera Clinofem Real Obtenez Priligy En Ligne Sur Ordonnance online pharmacy Amoxicillin Cures Best Prices For Viagra On Loine Orlando Cialis

#13 mapedlok

mapedlok

    24 Horas

  • Usuários
  • 453 posts
  • Sexo:Feminino
  • Localidade:West Lafayette

Posted 28/10/2017, 09:17

Discounts! men hair products progect12.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Ulefone U007 3G Smartphone-54.99 $Onlyou Luxury Brand Wrist Watches Women Men Quartz Watch Diamond Gold Steel Watch Clock Ladies Dress Watch Relogio Feminino 8677 ( 25.75 $)Brown Touch Screen Leather Mens Gloves ( 120.00 $)2016 winter warm thick velvet skinny jeans pants for woman plus size 34 33 blue demin trousers skinny ladies pant femme pantalon ( 19.98 $)TOKUYI TO — EPD Wine Cider Electric Decanter Pump for Home Bar Party Travel — Wooden Barrel Design-21.95 $Hot rechargeable foot care tool + 6 roller electric pedicure peeling dead skin removal feet care machine personal care for feet ( 36.85 $)Brazilian virgin hair loose wet and wavy virgin brazilian hair human hair brazilian loose wave cheap brazilian hair 4 bundles 7a ( 44.60 $)UMi LONDON Rugged Phone 3G Smartphone-74.11 $Metropolis diva giallo leather wicker mini crossbody bag ( 224.67 $) FurlaPeruvian virgin hair body wave 4 bundles peruvian body wave hair bundles human hair 7a unprocessed virgin peruvian hair weave ( 50.00 $)выпускной распредвал аккорд 8nike lunar force duckboot купитьRhinestone painting crystal home decor diy diamond painting moon wolf 3d cross stitch pattern diamond embroidery gt582 ( 13.60 $)Peruvian kinky curly virgin hair bundles queen hair products peruvian curly hair 4 bundles curly weave human hair extensions ( 63.00 $)Black studded leather clutch ( 318.29 $) DSquared2 1.jpg
Discounts! best beauty serums

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
затяжка болтов головки блока цилиндров
The elephant series style 4545cm square home decorative pillow music note printed throw pillows car home decor cushion cojines ( 7.59 $)
Yishidun 20,24 spinner wheel, women waterproof, shock travel suitcase, men trolley case,aluminum alloy frame rolling luggage bag ( 122.08 $)
DECAKER Miniature Laser Engraver 500mW DIY Printer 101.79$
AUKEY For Qualcomm Quick Charger 3.0 9V 12V 2 Ports Mini USB Car Charger for iPhone 6s iPad Samsung HTC Xiaomi QC2.0 Compatible ( 23.06 $)
Womens Black Leather Gloves w Knot ( 130.00 $)
Laconic pu leather and letter print design women's tote bag ( 21.57 $)
Buy one get one free ysecu 7 inch video door phone monitor intercom systemkit free doorbell camera(night vision 600tvl) ( 107.81 $)
шопинг лайф
nike dunk high женские
RFID - RC522 Practical RF IC Card Sensor Module for DIY ( $2.93 )
grand theft auto iv
Vkworld vk700 Pro 3G Phablet-85.99 $
Xiaomi Mi MIX Ultimate 4G Phablet-997.78 $
Peruvian virgin hair straight 4 bundles peruvian straight hair 7a unprocessed peruvian straight virgin hair human hair weave ( 50.00 $)


76bb.jpg

#14 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 28/10/2017, 23:11

Prix Cialis Soft Viagra Venta Madrid Vente De Viagra En Pharmacie viagra Cilais Lasix 100mg
Venta De Viagra Por Internet Discount Cheapeast Direct Elocon Worldwide Us Amex Online buy viagra Ceftin

#15 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 00:51

Viagra For Sales Cialis Viagra Farmacia Cialis Kaufen In Berlin viagra Cephorum Animal Tablets For Sale Cialis Plus Dapoxetine No Prescretion My Canada Pharmecy




1 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)


    Google (1)
IPB Skin By Virteq