IT Community - Software Programming, Web Development and Technical Support

How to resize a visitor's browser?

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-27-2007, 11:29 PM
jeyaprakash.c jeyaprakash.c is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 228
jeyaprakash.c is on a distinguished road
Question How to resize a visitor's browser?

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-29-2007, 12:46 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Smile Re: How to resize a visitor's browser?

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!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-06-2007, 04:53 AM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Smile Re: How to resize a visitor's browser?

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>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-06-2007, 05:55 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: How to resize a visitor's browser?

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!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-14-2007, 09:20 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: How to resize a visitor's browser?

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);
}
}
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


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


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0