PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > macromedia.dyna.html > java script browser resize issue
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
java script browser resize issue

Réponse
 
LinkBack Outils de la discussion
Vieux 21/02/2008, 19h07   #1
oiruop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut java script browser resize issue

i'm building a website in dreamweaver for a friend and he wanted the browser to
resize to a specific size once the user goes to the site. the script i have now
works fine, but then when i go to another page, the browser bounces out and
then resizes. is there a script that would just keep the browser the same size
without having to bounce out? thanks.

here's the link to view the issue yourself. http://www.ohhello.tv/index2.html

and click on any of the left side nav links to see the browser quickly bounce
out and then resize. thanks.

<SCRIPT>

window.resizeTo(724,1000);

</SCRIPT>


<SCRIPT LANGUAGE="javascript">

var width = screen.width

var height = screen.height

document.write("<body onUnload=window.resizeTo("+width+ "," +height+")>")

</SCRIPT>

  Réponse avec citation
Vieux 21/02/2008, 19h09   #2
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: java script browser resize issue

How rude.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"oiruop" <webforumsuser@macromedia.com> wrote in message
news:fpki5e$2f5$1@forums.macromedia.com...
> i'm building a website in dreamweaver for a friend and he wanted the
> browser to
> resize to a specific size once the user goes to the site. the script i
> have now
> works fine, but then when i go to another page, the browser bounces out
> and
> then resizes. is there a script that would just keep the browser the same
> size
> without having to bounce out? thanks.
>
> here's the link to view the issue yourself.
> http://www.ohhello.tv/index2.html
>
> and click on any of the left side nav links to see the browser quickly
> bounce
> out and then resize. thanks.
>
> <SCRIPT>
>
> window.resizeTo(724,1000);
>
> </SCRIPT>
>
>
> <SCRIPT LANGUAGE="javascript">
>
> var width = screen.width
>
> var height = screen.height
>
> document.write("<body onUnload=window.resizeTo("+width+ "," +height+")>")
>
> </SCRIPT>
>


  Réponse avec citation
Vieux 21/02/2008, 19h32   #3
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: java script browser resize issue

..oO(oiruop)

>i'm building a website in dreamweaver for a friend and he wanted the browser to
>resize to a specific size once the user goes to the site.


He's the only one. Nobody else wants that, especially not the visitors
of his site. Do _them_ a favour and drop the script.

Additionally in many modern browsers such scripts won't work at all,
because the browsers prevent such rude manipulations of the user's
surfing environment. There are things you simply shouldn't touch.

>the script i have now
>works fine, but then when i go to another page, the browser bounces out and
>then resizes. is there a script that would just keep the browser the same size
>without having to bounce out? thanks.


I like my browser to stay in _my_ chosen size. And since it's a good
browser, it does exactly that.

> here's the link to view the issue yourself. http://www.ohhello.tv/index2.html


All I see are images. Where's the website?

Seriously: You should not only drop the script, but the entire site and
start again. There's not a single piece of usable content on that site!
Get a book and learn some basics of HTML and CSS first.

Micha
  Réponse avec citation
Vieux 21/02/2008, 19h45   #4
oiruop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: java script browser resize issue

i'm not the cd on this site. they just asked me to build it to their specs. i
told them that it should be redesigned but whatever. as far as content goes,
the site is still in build and not completed yet.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h16.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10465 seconds with 12 queries