Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2003-12-08, 06:51 PM   #1
mpahlca
I'm going to the backseat of my car with the woman I love, and I won't be back for TEN MINUTES
 
mpahlca's Avatar
 
Join Date: Apr 2003
Location: Vancouver B.C. Canada
Posts: 89
Question Determine size of browser windows?

Hi, does anyone know if there is a way to have a title image change size for different browser window sizes? like an 800pixel width graphic for an 800x600 window, and say an 1024pixel width graphic for the 1024x768 window!

Is this even possible?
__________________
michael@twistys.com ICQ: 348682342
mpahlca is offline   Reply With Quote
Old 2003-12-08, 07:43 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Flash can do that. I don't know of anyway to have a jpg or gif do that.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-12-08, 07:45 PM   #3
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
Flash or javascript.. but either way too much effort..

Build for 800

DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Old 2003-12-08, 08:52 PM   #4
mpahlca
I'm going to the backseat of my car with the woman I love, and I won't be back for TEN MINUTES
 
mpahlca's Avatar
 
Join Date: Apr 2003
Location: Vancouver B.C. Canada
Posts: 89
Quote:
Originally posted by DangerDave
Flash or javascript.. but either way too much effort..

Build for 800

DD
Will try Flash then, I'm building a new tgp and want the title graphic to resize foreach type of browser...oh well if i figure out another way will let the world know.
__________________
michael@twistys.com ICQ: 348682342
mpahlca is offline   Reply With Quote
Old 2003-12-09, 05:08 AM   #5
urb
All the way from Room 101
 
urb's Avatar
 
Join Date: Aug 2003
Posts: 3,557
Send a message via ICQ to urb
You can do this in a few ways...

With Javascript you need to detect what the resolution is with something like this...
http://www.pageresource.com/jscript/jscreen.htm

Then you need some "if" statements which will select a different graphic for 800x600, 640x480 and then an "else" statement for 1024x768 + any other res.

Another option would be to redirect by resolution using php. Either by selecting an include for the graphic based on what the php reads from the browser.

But if I was you, I would create a graphic which is about 700 wide and then stick it inside a table with a background color (inside the table cell) to match the graphic, so you can't see the join. Then set the table width to "100%" instead of specifying a pixel width. Then the page will look filled, no matter what res you view it with.
__________________
urb is offline   Reply With Quote
Old 2003-12-09, 10:23 AM   #6
mpahlca
I'm going to the backseat of my car with the woman I love, and I won't be back for TEN MINUTES
 
mpahlca's Avatar
 
Join Date: Apr 2003
Location: Vancouver B.C. Canada
Posts: 89
Thanks alot urb,

I'm doing the table idea (i thought along the same lines!) The reason i was asking was i thought for bigger type sites(such as linklists, tgp, and premium avs sites i would like to alter the size of graphics displayed to maximize the sales pitch for each browser!

Anyway i really appreciate the forward on the javascript page!
__________________
michael@twistys.com ICQ: 348682342
mpahlca is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:25 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc