JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 15th, 2013, 05:41 PM
m-one m-one is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 m-one User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 17 sec
Reputation Power: 0
Other - Javascript resize certain images depending on browser resolution

Hey there

I know this is probably not the usual place to go to find talented people to build javascripts for me, but I don't know where else to look.

I'm currently building a site for use on desktop, tablet, and mobile devices. Everything is going great, apart from a little trouble with my logo image. I would like to know if anyone who has or can quickly whip up a script to detect browser resolution and then resize the logo images accordingly (and possibly the divs they are held in too) without affecting any other images.

I am fairly confident with editing pre-made javascript but my brain turns to mush whenever I get to coding from scratch with it so if anyone would be kind enough to help me out, your efforts would be much appreciated! c:

- Matt

Reply With Quote
  #2  
Old February 15th, 2013, 08:13 PM
web_loone08's Avatar
web_loone08 web_loone08 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Posts: 599 web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 40 m
Reputation Power: 69
Look into CSS3 Media Queries and use some type of utility/plugin; like Modernizr, to make it "some what" cross browser compatible. This is the best approach, for what you are trying to do.

Reply With Quote
  #3  
Old February 16th, 2013, 01:23 PM
m-one m-one is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 m-one User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 17 sec
Reputation Power: 0
Quote:
Originally Posted by web_loone08
Look into CSS3 Media Queries and use some type of utility/plugin; like Modernizr, to make it "some what" cross browser compatible. This is the best approach, for what you are trying to do.


Aha! Thank you very much Web_Loone08, I completely forgot about the added media queries in css3. Max-width is perfect for what I was trying to achieve.

Cheers!

- Matt

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Other - Javascript resize certain images depending on browser resolution

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap