NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page A little bit of code...

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 04-08-2005, 01:11 PM THREAD STARTER               #1 (permalink)
Made in the U.K.
 
.Mike's Avatar
Join Date: Mar 2005
Location: Gods country
Posts: 931
.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all
 



A little bit of code...


Does anybody know any HTML code that automatically re-sizes the page to suit the resolution of the screen it is being viewed on? (so you don't get half the page on a small screen - that sort of thing)


Thanks for the help
__________________
:music:
.Mike is offline  
Old 04-08-2005, 02:05 PM   #2 (permalink)
New Member
Join Date: Mar 2005
Posts: 9
squeaky14 is an unknown quantity at this point
 



I don't think you will acheive that with only html
squeaky14 is offline  
Old 04-08-2005, 02:51 PM THREAD STARTER               #3 (permalink)
Made in the U.K.
 
.Mike's Avatar
Join Date: Mar 2005
Location: Gods country
Posts: 931
.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all
 



Thanks squeaky14, I am developing the site in frontpage ( ) and corel (again )... do you have any suggestions? It is just about finished and I am happy with it, but it really spoils the look if you only see half a page when it comes up - is there something I could export it too when its done to add this feature before I upload it?

Cheers, Mike
__________________
:music:
.Mike is offline  
Old 04-08-2005, 03:21 PM   #4 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by auntystatic
Does anybody know any HTML code that automatically re-sizes the page to suit the resolution of the screen it is being viewed on? (so you don't get half the page on a small screen - that sort of thing)
????: NamePros.com http://www.namepros.com/programming/81221-a-little-bit-of-code.html


Thanks for the help
Try this: (A nice little script from http://javascript.internet.com)


When users visit your page, JavaScript will determine their screen's resolution and redirect them to the page of your site that you wrote for that screen size!

Code:
<!-- THREE STEPS TO INSTALL RESOLUTION PAGE:

   1.  Paste the coding into the HEAD of your HTML document
   2.  Add the last code into the BODY of your HTML document
   3.  Be sure to update the resolution pages to ones on your site  -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function redirectPage() {
var url640x480 = "http://www.yoursite.com/640x480";
var url800x600 = "http://www.yoursite.com/800x600";
var url1024x768 = "http://www.yoursite.com/1024x768";
if ((screen.width == 640) && (screen.height == 480)) 
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<center>
<form>
<input type=button value="Enter!" onClick="redirectPage()">
</form>
</center>

<!-- STEP THREE: Don't forget to update the URLs in the code above!  -->
Eric is offline  
Old 04-12-2005, 01:00 PM THREAD STARTER               #5 (permalink)
Made in the U.K.
 
.Mike's Avatar
Join Date: Mar 2005
Location: Gods country
Posts: 931
.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all.Mike is a name known to all
 



Originally Posted by Version2
Try this: (A nice little script from http://javascript.internet.com)
????: NamePros.com http://www.namepros.com/showthread.php?t=81221


When users visit your page, JavaScript will determine their screen's resolution and redirect them to the page of your site that you wrote for that screen size!
Thanks Version2 - Sorry for not coming back earlier I just realised you had posted!. I'll give it a go - sounds like a solutions to me though!
__________________
:music:
.Mike is offline  
Old 04-26-2005, 10:24 PM   #6 (permalink)
Account Closed
Join Date: Apr 2005
Posts: 27
genious is an unknown quantity at this point
 



With Just HTML that's not possible.
genious is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic HTML Tutorial webgear Webmaster Tutorials 8 04-02-2005 02:20 PM
2 Huge Name Forsale Vegas Entertainment Domains For Sale - Make Offer 9 09-21-2004 02:37 PM
CorePimps Code Is For Sale! contemptx For Sale / Advertising Board 2 07-20-2004 09:24 AM
Free Source Code Protector! getthis For Sale / Advertising Board 7 05-10-2004 03:14 PM

 
All times are GMT -7. The time now is 02:51 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger