Link to home
Start Free TrialLog in
Avatar of Bateman
Bateman

asked on

Flash ad banners messing up html

Hi, wondered if anyone could help as I have been troubled with this problem for ages and am running out of ideas so I am giving a huge points score for anyone who can solve it!! What it is whenever an advertiser shows a flash ad on one of my sites it resets all the borders to 0 making
the design all mess up. Gif ads are fine but it only happens with every flash ad. So I thought it must be my page so i made a really simple page with just the ad code and a logo (http://www.city-dining.com/test.asp) but
it also happens with this, it also happens over all ad networks so it isn't just one. I just can't work it out.

I have also tried putting it in a layer: (http://www.city-dining.com/test2.asp) but still no luck.

Any ideas?!
Avatar of Bateman
Bateman

ASKER

Sorry, a couple more comments, it seems to be faulty under IE for the PC, Opera (the only other browser I have) seems to be fine. Also if you get to the link and it shows a gif ad keep refreshing it!
What is it supposed to look like then?

If I view the source and look at the page, I see not that many strange things...which "borders" are you talking about...there are no borders set as far as I can see in the page.

Please elaborate so I can help you better...

Thanks,
Max.
Avatar of Bateman

ASKER

Sorry, there should be a (roughtly) 10 pixels of 'air' around the edges, look at http://www.london-eating.co.uk which is working fine. At the mo with the flash ads everything is flush to the edges
ASKER CERTIFIED SOLUTION
Avatar of DreamMaster
DreamMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bateman

ASKER

I thought that however I have 3 advertising providers all using different ads and codes and it happens on all 3 and only with flash ads.
I have refreshed 50 Times... .. let me see when will i get a FLASH Add.. all these are Gif..s

:P
Avatar of Bateman

ASKER

Bugger, I wonder if it is doing region targeting and only serving up flash to uk sites. Is there a way I can grab the ad and put it in so everyone can see?
Me too...all I got was GIF banners...and they have the same problem as the Flash banners you mention....there is not the same space between the banner and the edge of the page on either....

Max.
Just make a screenshot of it so we can actually see it happening on your screen...

Max.
Avatar of Bateman

ASKER

Will do, how can i post screenshots here, can i use html them in this comment box
bateman upload the Screen Shots in any of the places and give us the URL..

Yes U Could Even.. Paste the htmlhere in the Comment Box.. but we prefer. . to see the SnapShot
bateman upload the Screen Shots in any of the places and give us the URL..

Yes U Could Even.. Paste the htmlhere in the Comment Box.. but we prefer. . to see the SnapShot
Avatar of Bateman

ASKER

OK, the grabs are at

http://www.astwood.com/experts.asp
Hmmm....

I'm going to have a look at that include file...

Could be that the Flash file has the settings to be at the top...but I doubt that...

Max.
Damn...I can't...that sucks...

Well, in that case...

Just try and see what happens if you set margins higher then 10, try a strange value like 100 see what happens...if still it doesn't move, the calling of the Flash banner for some reason positions it at the top, thereby destroying your margins...

Max.
BORDER !! ! ! !  thats  A MARGIN . I Got Confused all the time.. thinking.. of  BORDER of the image.

Jayanth

Avatar of Bateman

ASKER

Sorry! Always used that term!
That's why I asked which borders he was talking about jayanth.. :)

Max.
Check this out./.

www.JayanthOnline.com/movie1.html

I didnt get any problem.. when the Flash Movie was Placed.. OFCOURSE HARD CODED. Have u TRIED  .. that.. Does it still look the same?
Avatar of Bateman

ASKER

Just tried and that appears to be fine, http://www.city-dining.com/test4.asp

However I am confused, if this happens with only one ad supplier then I would think, OK it is something to do with their code, but it happens with 3 seperate suppliers, all showing a vast range of ads.
Like I said, probably something to do with the flash parameters then....have you tried setting a very high page margin to see if it affects the page at all??

Max.
Avatar of Bateman

ASKER

Have done one but I can't get a flash ad to be served at the mo! Have turned off all ads but flash ones but it takes 10 mins or so to filter down.
Good luck waiting then.. :)

Max.
How do you get the ads? Do the Flash ads send you the HTML page they generate out of Flash? If so, that's the problem -- you'll have TWO body tags, and the last one will be what's used. If it's out of Flash, it will have no margins.
Avatar of Bateman

ASKER

I get some code from the ad companies such as:

<!-- VC active -->
<SCRIPT LANGUAGE="JavaScript">
<!--
// ValueParameters
ValueHost = "hs0237692";
ValueLoaded = false;
ValueID = "valueid";
ValueVersion = "1.1";
ValueWidth = 468;
ValueHeight = 60;
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="http://oz.valueclick.com/jsmaster"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (ValueLoaded) ValueShowAd();
//-->
</SCRIPT>

or

<!-- Start of Adviva adServe v2.0 Banner Display Code -->
<SCRIPT LANGUAGE="JavaScript">
<!--
var timestamp = (new Date()).getTime();
document.write("<IFRAME SRC=\"http://ads.adviva.net/adserve.cgi?200&li=873&as=1&me=2&ui=" + timestamp + "\" WIDTH=\"468\" HEIGHT=\"60\" FRAMEBORDER=\"0\" BORDER=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\" HSPACE=\"0\" VSPACE=\"0\" SCROLLING=\"NO\">");
document.write("<A HREF=\"http://ads.adviva.net/adclick.cgi?200&li=873&me=1&ui=" + timestamp + "\" TARGET=\"_blank\"><IMG SRC=\"http://ads.adviva.net/adserve.cgi?200&li=873&as=1&me=1&ui=" + timestamp + "\" BORDER=\"0\" WIDTH=\"468\" HEIGHT=\"60\"></A>");
document.write("</IFRAME>");
//-->
</SCRIPT>
Avatar of Bateman

ASKER

I am using the top code for the mo, haven't used the adviva for ages now but put it in to show
I must be missing something, but why do you want to see the ads at all?
As you get better acquainted with your firewall, you can taylor it to reject ads.
Before deleting them, look at cookies.  Usually ads have a common format, including words like

click, ads

Make entries in your firewall program to reject these sites.
Avatar of Bateman

ASKER

Ads are wonderful things that get us to buy lots of lovely, useful products ;-)

Every site has gotta cover its hosting costs these days...
Avatar of Bateman

ASKER

hey, changing the marghins to 100 worked, however i can't obviosuly keep them that big!
Hmmm...that means they are not being messed up by the flash banners...that illiminates that idea...and what happens when you set them to 0? It should make you have no space around anything...maybe the 10 it says it displays IS in fact the 10...and the other pages are wrong?

Max.
Avatar of Bateman

ASKER

DreamMaster, you say it can't be caused by the flash banners, however the problem only appears when flash banners are displayed, gif banners are fine...

If I set it to 0 then it is all flush to the borders.
If it is all flush to the borders when it is set to 0, then there is nothing wrong with your margins...there is something else that's different from using either Flash or GIF...

It's just a little hard to tell what that could possibly be...I'll see if I can find anything...

Max.
Avatar of Bateman

ASKER

I have changed it to 15 at the mo, There is prob a magic number between 10 and 20 where is starts/stops working. It is just painfully slow because just my luck there aren't many flash ads running at the mo! (unlike last week where every ad was flash!)
Yeah, I noticed...tried it myself and only get GIF banners..

If all of that fails...I suggest you just ask the people that create these banners (or make them available) how this can happen and what to do to solve it..they're bound to know a solution...

Max.
Avatar of Bateman

ASKER

Have tried that, the only thing they said was to put the margin code on, other than that they are stumped. It is also the fact that it happens with 3 seperate companies, fastclick, adviva and advertising.com
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Cd&
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to DreamMaster

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
Avatar of Bateman

ASKER

Only prob is that the question hasn't been answered properly. The margins are still not working :-(
Well Bateman, you'll have to admit that it's kinda hard solving a question about margins on flash banners, when all you get is GIF banners...

Max.
Avatar of Bateman

ASKER

True, only prob I don't know what else to do! I think the flash ones must be a UK thing!
Have you contacted the people that provide those banners about that? It could very well be that you are right, and if so...most of the time that is easily changed by setting a parameter, to make it visible for others as well...

Good luck and I hope you figure this out... or that I am able to HELP you figure this out, I tried...but as I said...it's hard to help when you can't see what's wrong...

Max.
Avatar of Bateman

ASKER

Hi Max, yeah I contacted all 3 of the ad providers who all are stumped over it! Appreciate all your help with this, I think I may as well hang up my boots and admit defeat though!!!
Well, I think it's unacceptable that the banner providers themselves cannot think of any reason for this, your HTML was not exotic or something....they should have a solution, so I guess the best thing you can do, is let them implement it, if they are the banner providers they should be able to get you a working page. I'd say this is now more their problem then yours, just say you'll get your business elsewhere if they cannot get it right..

Max.
Bateman,

I understand that you are not happy that the problem still exists.  Clearly, the problem is related to the flash you are getting from the ad server, and there very is nothing that Max can do about that.  However he did work you through it, to narrow down the cause, and should be awarded the question.

Cd&
Question asked, significant guidance provided and helped you narrow the scope and go where you need to fix the problem.

Finalized by Moondancer - EE Moderator