By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,650 Members | 1,785 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,650 IT Pros & Developers. It's quick & easy.

skyscraper ad staying on current page

P: n/a
Hi,
I am interested in javascript that allows a banner ad (a skyscraper) to
alwas stay on-page even if user scrolls down (so the banner slides down as
well). I googled for it alrady, but could not figure.

please help or provide url references to examples of this.
Jan 31 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"newb guy" <no**@noone.com> wrote:
Hi,
I am interested in javascript that allows a banner ad (a skyscraper)
to alwas stay on-page even if user scrolls down (so the banner slides
down as well). I googled for it alrady, but could not figure.

please help or provide url references to examples of this.


http://www.w3.org/Style/CSS/

look to the right

--
John MexIT: http://johnbokma.com/mexit/
personal page: http://johnbokma.com/
Experienced programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
Jan 31 '06 #2

P: n/a
newb guy wrote:
Hi,
I am interested in javascript that allows a banner ad (a skyscraper) to
alwas stay on-page even if user scrolls down (so the banner slides down as
well). I googled for it alrady, but could not figure.


You can use CSS position: fixed for browsers that support it. For those
that don't, there's script or frames. In general, such things are not
liked.

CSS position fixed:
<URL:http://www.w3.org/TR/CSS21/visuren.html#propdef-position>

Discuss frames in:
<URL:comp.infosystems.www.authoring.html>

Search the CLJ archives for script solutions using scrollTop and
pageYOffset - but you'll find they leave a lot to be desired.
<URL:http://www.quirksmode.org/viewport/compatibility.html>

[...]
--
Rob
Jan 31 '06 #3

P: n/a
Jim
What you're referencing is usually called a watermark done with dhtml.
The code and tutorial are found here:
http://echoecho.com/toolfloatinglayer.htm

Jan 31 '06 #4

P: n/a
RobG wrote:
newb guy wrote:
I am interested in javascript that allows a banner ad (a skyscraper) to
alwas stay on-page even if user scrolls down (so the banner slides down
as well). I googled for it alrady, but could not figure.
You can use CSS position: fixed for browsers that support it. For those
that don't, there's script or frames.


Or none of the above :)
In general, such things are not liked.
I beg your pardon?
CSS position fixed:
<URL:http://www.w3.org/TR/CSS21/visuren.html#propdef-position>
And for borken UAs:

<URL:http://jendryschik.de/wsdev/css/fixed/>
<URL:http://www.fabrice-pascal.de/artikel/posfixedie6/>

Sorry, I have no resources in English language about this, maybe Google
helps (even if it is only its translation service). But I think you get
the idea anyway.
Discuss frames in:
<URL:comp.infosystems.www.authoring.html>


Will not work, for it is no URL.

news:comp.infosystems.www.authoring.html (ciwah)

should work almost always. position:fixed and CSS in general can be
discussed in

news:comp.infosystems.www.authoring.stylesheets (ciwas)
PointedEars
Feb 15 '06 #5

P: n/a
Thomas 'PointedEars' Lahn wrote:
RobG wrote:

newb guy wrote:
I am interested in javascript that allows a banner ad (a skyscraper) to
alwas stay on-page even if user scrolls down (so the banner slides down
as well). I googled for it alrady, but could not figure.
[...]
In general, such things are not liked.

I beg your pardon?


Banners that stay fixed at the top of the window (or other places) are
annoying. I can understand why it has been added to the list of CSS
properties, but useful applications of it are limited. It's one of
those 'sounds like a good idea' things that in practice tend not to work.

[...]Discuss frames in:
<URL:comp.infosystems.www.authoring.html>

Will not work, for it is no URL.


Yes, dunno what I was thinking... :-)

[...]

--
Rob
Feb 17 '06 #6

P: n/a
RobG wrote:
Thomas 'PointedEars' Lahn wrote:
RobG wrote:
newb guy wrote:
I am interested in javascript that allows a banner ad (a skyscraper) to
alwas stay on-page even if user scrolls down (so the banner slides down
as well). I googled for it alrady, but could not figure.
In general, such things are not liked.

I beg your pardon?


Banners that stay fixed at the top of the window (or other places) are
annoying. I can understand why it has been added to the list of CSS
properties, but useful applications of it are limited. It's one of
those 'sounds like a good idea' things that in practice tend not to work.


You will find that _for example_ <URL:http://www.w3.org/Style/> disagrees.
PointedEars
Feb 17 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.