Unstoppable Domains โ€” Get your daily AI drops report

A little bit of code...

SpaceshipSpaceship
Watch

.Mike

Made in the U.K.VIP Member
Impact
9
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 :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
I don't think you will acheive that with only html
 
0
•••
Thanks squeaky14, I am developing the site in frontpage ( :red: ) and corel (again :red:)... 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 :tu:
 
0
•••
auntystatic said:
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 :)

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!  -->
 
0
•••
Version2 said:
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!

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!
 
0
•••
With Just HTML that's not possible.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back