PDA

View Full Version : Insert Banner into php


Kato
01-31-2003, 04:01 PM
Itīs a simple problem but Iīm not smart enough to fix it :( .
I want to put a html-banner-code into a php document .
The code is the following :


<!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK -->

<SCRIPT LANGUAGE="javascript" TYPE="text/javascript" SRC="http://banners.webmasterplan.com/view.asp?site=1382&ref=35352&type=html&hnb=4&js=1"></SCRIPT>
<NOSCRIPT><A HREF="http://partners.webmasterplan.com/click.asp?ref=35352&site=1382&type=b1&bnb=1" TARGET="_top">
<IMG SRC="http://banners.webmasterplan.com/view.asp?site=1382&ref=35352&b=1" BORDER="0"></A></NOSCRIPT>

<!-- END PARTNER PROGRAM -->


I tried to insert it into a table that was set to 640 width and 68 height but whenever I inserted the code into that table it became larger than the preset values . There is always a line under the banner and 2 lines above. Itīs impossible for me to put this f***** banner into a atable that perfectly fits itīs borders . :O@ .
I tried it with a different banner that didnīt include any java stuff in it and that works :mad: .

I have put 2 files as attachment to this posting. The first one is the php file without any editing and the second one is the working one with the banner that was on and wich iīd like to replace with the one on top of this posting. By the way the image on the left is 226x85 pixels .

DA Master
01-31-2003, 05:03 PM
I think I know what you mean. Some banner exchanges are bigger than the regular banner size. They sometimes have a small bar below the banner add. If anything is bigger than a preset guide the guide (in this case a table) will just expand. So the table will expand to fit it's contents.

scoutt
01-31-2003, 05:55 PM
so what does this have to do with php?

do you have a url that we can see?

Kato
01-31-2003, 06:08 PM
Itīs the header of a php-Forum . Just like this (http://www.cs-hacked.com/forum/forum.htm).

Btw does anyone know about a good bannerrotating script that doesnīt need a database ? .

scoutt
01-31-2003, 06:15 PM
but it isn't php that is messing up, it is because the banner is to big. show me the banner that is making it mess up, url?

if you ahve a forum why not have a banner rotator that works with a db?

Kato
01-31-2003, 06:25 PM
Ok here is the banner .
On top itīs just the plain banner
and as second itīs the banner inside a table that is set to 460x60 . But as you can see the table is larger than 460x60 .

scoutt
01-31-2003, 06:33 PM
of course it has nothing to do with the fact you inserted a block level element in the table code

<p align="center">

take that out then make everything on one line.

<td>stuff</td>

not like this

<td>
stuiff
</td>

Kato
01-31-2003, 08:41 PM
I finally found out what the problem was . It was that java part inthere . The banner is a bit bigger than it looks like .
Here is the code that shows the java applet or whatever it is :" http://banners.webmasterplan.com/view.asp?site=1382&ref=35352&type=html&hnb=4&js=1

Thanx anyway .

scoutt
01-31-2003, 10:11 PM
did you just not read what I posted????

if you take the <p> tag out the table fits rigth around the image. hmmmmm go figure