Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

different images for different resolutions?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-06-2003, 12:58 PM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default different images for different resolutions?

is it possible to have two separate images for the top two screen resolutions and have the correct image used, depending on the resolution? -Reuben
__________________
version: 4.4.1 Gold [Unix]
Reply With Quote
  #2  
Old 12-06-2003, 01:57 PM
 
jpsowin jpsowin is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 459
 

Default

It might be possible through a javascript detection routine, but it would probably become complicated quick.

I would suggest learning how to code correctly in html and css so it displays correctly on all browsers, resolutions, and platforms.
__________________
Joshua Sowin
...taking things one TPL at a time.
Reply With Quote
  #3  
Old 12-06-2003, 03:37 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

have javascript detect the screen res then write out the image url on the fly, keep images in two seperate folders so the javascript would write one res using say folder thumbs800/blah.gif and then thumbs1024/blah.gif.

It seems alot of hassle to go to for little effect though, why not just design for the middle ground? If your routine slipped up it may not accesss the screen variables on all browsers in which case it would display nothing but broken images.

Also means you have to test all pages in all resoloutions too. Remember different machines and cards use a very wide range of screen sizes and you can't always detect if the browser uses sidebars and other such like.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #4  
Old 12-06-2003, 03:45 PM
 
jpsowin jpsowin is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 459
 

Default

I'm also suprised at how many people don't have their browser full-screen

Can really mess sites up!
__________________
Joshua Sowin
...taking things one TPL at a time.
Reply With Quote
  #5  
Old 12-07-2003, 08:28 AM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default

thats' what i decided to do last night, groovico-design it in between the two most popular sizes. thanks guys, Reuben
__________________
version: 4.4.1 Gold [Unix]
Reply With Quote
  #6  
Old 12-08-2003, 01:39 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

Quote:
Originally Posted by jpsowin
I'm also suprised at how many people don't have their browser full-screen

Can really mess sites up!

Opera users love their speed bar at the side, it takes up a huge chunk of screen real estate, same with IE favourites side bar, really dont understand why they dont make it slide out instead over the website.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #7  
Old 12-08-2003, 11:06 PM
  kangus's Avatar 
kangus kangus is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 160
 

Default

Modify your product_thumbnail.tpl and use exif_thumbnail() this GD library function extracts a thumbnail of a file based image, you tell it what size and there is the problem: To nail the true size you need to call Windows API to find the users DPI settings........ Of course SVG images will solve everything real soon now
Reply With Quote
  #8  
Old 12-09-2003, 12:27 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Quote:
Originally Posted by jpsowin
I'm also suprised at how many people don't have their browser full-screen

Can really mess sites up!

That depends on the design obviously. I prefer full screen width designs, but if a design is highly graphic it normally adjusts to a specific size to make it look better (800 x 600 in most cases).
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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
Forum Jump


All times are GMT -8. The time now is 05:18 AM.

   

 
X-Cart forums © 2001-2020