|
Posted by Jonathan N. Little on 06/03/05 17:33
SpaceGirl wrote:
> Merlin wrote:
>
>> Hi there,
>>
>> I am wondering how it would be possible to place a graphic on the
>> browser which sticks to the top, no matter how far you scroll down. I
>> recently saw a banner and do wonder how they did this.
>> Have a look http://www.spiegel.de
>> Is this a DHTML, Flash or JS thing? I was not able to find out.
>>
>> Thank you for any hint.
>>
>> Merlin
>
>
> It uses two things; In IE it uses JS to do it. In Mozilla/FireFox is
> uses CSS (which is far simpler).
>
You can us CSS to place the element upon page rendering, but how can you
reposition upon a scroll event. That would would be a behavior and
require JavaScript, right? The only pseudo behavior that is CSS
trappable that I am aware of is 'hover'. In my site the menus 'flyout'
with CSS using pseudo hover class (except IE with JS hack) but the whole
navbar uses JavaScript to float with the page scroll....
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|