This is a discussion on How to resize a visitor's browser? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all, I'm redesigning a website. I want to resize itself according to each visitors browser. I have been ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all, I'm redesigning a website. I want to resize itself according to each visitors browser. I have been trying for more hours to solve this issue but have found nothing. Anyone with any advice would be greatly appreciated.
__________________ thanx n regards jeyaprakash.c |
| Sponsored Links |
| |||
| Resizing a users browser is very annoying and can easily be disabled. I suggest you use a fluid CSS layout instead.
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
| |||
| I used this script a long time ago, see if this is what you are after: Code: <head>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>
<script language="JavaScript1.2">
if (screen.width==1024||screen.height==768) {
window.location.replace("1024x768.html")
}elseif(screen.width==800||screen.height==600) {
window.location.replace("800x600.html")
}
</script> |
| |||
| I will check it out buddy.... ![]()
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
| |||
| if (parseInt(navigator.appVersion)>3) top.resizeTo(600,400); function resizeOuterTo(w,h) { if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { top.outerWidth=w; top.outerHeight=h; } else top.resizeTo(w,h); } } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auto Resize Applications in J2ME ? | itbarota | J2ME | 8 | 09-30-2008 03:44 AM |
| Stage and Background resize but other objects not to resize | aramesh | Flash Actionscript Programming | 1 | 08-22-2007 10:33 PM |
| Visitor's browser information | venkat_charya | PHP Programming | 2 | 07-19-2007 02:50 AM |
| visitor's IP Address | sivaramakrishnan | PHP Programming | 1 | 07-17-2007 07:01 AM |
| Which web browser do you use? | webmaster | The Lounge | 12 | 03-15-2007 09:18 AM |