Re: skyscraper ad staying on current page
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: skyscraper ad staying on current page

From: RobG <rgqld@iinet.net.au>
Date: Tue Jan 31 2006 - 02:53:46 CET

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
Received on Tue Feb 7 21:28:17 2006