/    Sign up×
Community /Pin to ProfileBookmark

screen resolution problem – please help…beginner here

hi..im having a problem with a new website i have made, the address is [url]www.kingstoncustoms.co.uk[/url]. when viewed with a screen resolution of 800×600 its fine…but when viewed over the internet by anyone with a higher resolution, the background images and menus etc are much smaller and there is white around the images….hope someone can help me because im pulling my hair out, i thought i had done a good job of my first site, till my friend went on an spotted this…thank you Dan

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYDec 18.2005 — fix the size in pixel would be a quick fix
Copy linkTweet thisAlerts:
@kingstoncustomsauthorDec 18.2005 — only problem with this is that when viewed with a lower screen resolution, scroll bars appear...i cant have this as im using frames and the background images together make up a larger image...any ideas?...thanks, Dan
Copy linkTweet thisAlerts:
@kingstoncustomsauthorDec 22.2005 — hi all...this is a script i found after hours of searching...it will check the screen resolution of the users screen and redirect to the appropriate page on your site....didnte end up using it in the end tho...redesigned the whole site using CSS... www.kingstoncustoms.co.uk ...if anyond who knows more than me can see any problems on the site please let me know...thanks, Dan

<script language="JavaScript1.2">

<!--

/*

Screen Size Redirect script (By Robert @ http://members.tripod.com/technological_tinker/)

Submitted to Dynamicdrive.com to feature script in archive

For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com

*
/


if (screen.width==800||screen.height==600) //if 800x600

window.location.replace("http://www.netscape.com")

else if (screen.width==640||screen.height==480) //if 640x480

window.location.replace("http://www.microsoft.com")

else if (screen.width==1024||screen.height==768) //if 1024x768

window.location.replace("http://www.dynamicdrive.com")

else //if all else

window.location.replace("http://freewarejava.com")

//-->

</script>
Copy linkTweet thisAlerts:
@felgallDec 22.2005 — Funstions to return the actual window size (since not everyone has their browser maximized):

<i>
</i>function pageWidth() {return window.innerWidth != null? window.innerWidth: document.documentElement &amp;&amp; document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:null;}
function pageHeight() {return window.innerHeight != null? window.innerHeight: document.documentElement &amp;&amp; document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;}
×

Success!

Help @kingstoncustoms spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...