Click to See Complete Forum and Search --> : resizing pages
zenmango
03-14-2003, 08:51 PM
i am wondering how to set my pages to resize to the individual sytem being used...i beleive that javascript is the answer but i am not sure what program i need or anything about javascript...
could someone please point me in the direction to solving this little problem...if it is possible at all...
thanks from zenmango....
You mean if they're using Windows, resize the window to..., if they're using Macintosh, risize the window to..., something like that?
zenmango
03-16-2003, 10:11 PM
i am mainly trying to get my background images to resize to the individual screen size being used...
whether 15,17 or 19 inch for instance...
i know there are various html options for selecting 100% screen size etc...
but they seem to not really adjust the image if it is a background image...
the page i am trying to build is for a friend who wishes the layout in that format...tho i would rather keep the background simple they do not want it to look any other way...so i am trying my best to give them a quality look but when i view the page on different screen sizes it has rejoin/mirror effect happening on the biggest screens...
someone suggested javascript was the answer am i on the right path or just wasting my time...????
the page in question is the index page of...
www.blissmusic.biz
hope this gives you all the necessary info to help me here...
thanks
zenmango
Here is a script that I wrote a while back to set a background based on the screen resolution (size has nothing to do with it)
<script language="javaScript" type="text/javascript">
var Pic = new Array()
Pic[0] = '1.gif' //640x480 or less
Pic[1] = '2.gif' //800x600
Pic[2] = '3.gif' //1024x768 or more
if(screen.width<=640)
{
document.body.background = Pic[0];
}
else if(screen.width==800)
{
document.body.background = Pic[1];
}
else
{
document.body.background = Pic[2];
}
</script>
zenmango
03-16-2003, 11:48 PM
thanks heaps for the script...and quick reply...
but yeah i am such a novice at this i am not really sure how to add the script to the page...
is it best in the plain html editor...just copy & paste...or thru the normal mode of frontpage...i am using frontpage as the host has extensions making it quick to touch up the site while on the road travelling etc...
what do you recommend...
thanks again pyro (just checked your site pretty inspiring on the production/programming side)
zenmango
Using FrontPage, what you will need to do is copy the script that I gave you into a plain text editor. (notepad, wordpad, etc) and then copy from there into the code view of FrontPage. The code goes in your <head> section.
Glad you liked my site! :D
zenmango
03-19-2003, 03:59 PM
thanks for the help pyro...but she still has this edge mirrored on the highest resolution...
i pasted into the head...right next to: <HEAD>
and before <TITLE>
tried <script> in uppercase...still no work...
any suggestions???
thanks
zenmango
Yeah, you will have to make more images...
Add more else if commands in to detect for 1024, etc... and let the else be for the largest screen res that you want to worry about....
zenmango
03-21-2003, 07:34 PM
ok i am getting to understand this a bit better...
but i still have had no luck...
with the general background image in the <body> where it lists the original background image do i replace that
with
pic ???? or do i remove the line altogether...
zenmango:confused: