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:

</head>

<body>
<table cellspacing="0">
<tr id="header">
<td id="headerlogo">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="500" HEIGHT="110" id="logo" align="middle" hspace="150">
<PARAM NAME=movie VALUE="http://www.ipmanaira.org.br/banners/logo.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="http://www.ipmanaira.org.br/banners/logo.swf" quality=high bgcolor=#FFFFFF WIDTH="500" HEIGHT="110" NAME="logo" align="middle" hspace="150" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>
</td>

</tr>
<tr>
<td id="headerbar" colspan="2">&nbsp;</td>
</tr>
</table>


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('<BODY background="imgages/fdacc800.jpg" leftmargin=0 topmargin=0 bgproperties=fixed>');};
if ((
screen.height>600)&&(screen.height<=768)) {document.write('<BODY background="imgages/fdacc1024.jpg" leftmargin=0 topmargin=0 bgproperties=fixed>');};
if (
screen.height>768) {document.write('<BODY background="images/fdacc1280.jpg" leftmargin=0 topmargin=0 bgproperties=fixed>');};
</
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

236 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

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

Latest GitHub Commits