hello..
newbie want to ask.. :)
how to make floating ads with flash or image content in the top and also in the bottom of the website screen? when website page is scrolled, the ads will not move from their place, not even a bit..
you know i'ts hard to explain, for the real example go to this website..
could it be done only with CSS or also need javascript?
because i've tried with only CSS but the flash content wont be centered..
sorry for my bad english and thanks for the help..

Hi,

This is rather simple to do...

#adTop {
left:0;
position:fixed;
text-align:center;
top:0;
width:100%;
}

Then just add the following inbetween your body tags

<div id="adTop"><img src="images/myad.jpg" alt="Ad here"/></div>

Hi macneato!

Thats right!!..

but

position:fixed;

is not work in IE6...

Welcome to IE, what does work in IE 6.

Javascript

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.