1
paulohsf
Resizing a flash banner
  • 2005/2/5 22:16

  • paulohsf

  • Just popping in

  • Posts: 10

  • Since: 2004/11/25


I have a flash banner in the header of my theme. I´d like to find a way that its size depends on the user´s monitor resolution.

See the part of my theme.html where the banner appears:












 



Paulo Figueiredo
Brasil

2
Montisarts
Re: Resizing a flash banner
  • 2005/2/5 23:37

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


you can try putting the width to 100%, but I expect that you are not gonna be happy with the height, but try it and find out. If the height becomes too high you can always play around with the height and see if your banner doesn't get deformed too much and try it on different resolutions.

greetz Frank

3
philou
Re: Resizing a flash banner
  • 2005/2/6 10:07

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


In my theme I do this :
<SCRIPT LANGUAGE=javascript>
if (
screen.height<=600) {document.write('');};
if ((
screen.height>600)&&(screen.height<=768)) {document.write('');};
if (
screen.height>768) {document.write('');};
SCRIPT>


You can probably adapt this peace of code to show differents size for your banner

4
Montisarts
Re: Resizing a flash banner
  • 2005/2/6 12:38

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


and then there was javascript...

5
paulohsf
Re: Resizing a flash banner
  • 2005/2/6 21:24

  • paulohsf

  • Just popping in

  • Posts: 10

  • Since: 2004/11/25


I still need help!

The solution of putting width to 100% doesn´t works because the banner become very deformed.

I´ve tried to put my code inside the other solution, but it doesn´t works too. I received a error message (it appears in portuguese, beu in english is something like "sequence constant not ended").

Please, more help!

Paulo Figueiredo
Brasil

Login

Who's Online

381 user(s) are online (265 user(s) are browsing Support Forums)


Members: 0


Guests: 381


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits