Redimensionner frame automatiquement
Bonjour à tous,
J'ai une application qui est scindée en 2 parties.
Pour les 2 parties malheureusement la taille des frames doit être différente.
Dans ma page index voici comment je détermine mes frames
Code:
1 2 3 4 5 6 7 8 9
| <FRAMESET cols='150,650,*' frameborder='no' border='0'>
<FRAME name='frMenu' src='html/mcic/menublank.html' noresize scrolling='no' />
<!--<FRAMESET rows='210,*' frameborder='no' border='0'>-->
<FRAMESET rows='280,*' frameborder='no' border='0'>-->
<FRAME name='frCenter' noresize scrolling='no' src='/MCIC/LogOracle?urlRedirect=/MCIC/Init' />
<FRAME name='frDown' noresize scrolling='auto' src='html/mcic/blank.html' />
</FRAMESET>
<FRAME name='frMenuRight' src='/MCIC/WebContent/html/mcic/blank.html' scrolling='auto' frameborder='0' />
</FRAMESET> |
Jusque là pas de problème.
J'arrive dans ma page ou je dois modifier la taille des frames, voici mon code javascript :
Code:
1 2 3 4 5
| function Frame_resizor()
{
window.parent.document.body.cols="150,900,*";
window.parent.document.body.rows="500,*";
} |
Aucun problème pour la frame en colonne, mais impossible d'augmenter la frame ligne.
Auriez-vous une petite idée
D'avance merci à tous
Merci pour ta réponse Bovino
Bonsoir,
j'appelle mon script au chargement de mon body
Merci pour le teste, je vais essayer demain matin et je vous tiens au courant
Bonne soirée à tous
Comment cibler la bonne Frame ????
Au fait j'ai l'impression que je ne cible pas la bonne Frame.
Pourriez-vous me dire comment cibler la bonne Frame
D'avance merci