This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2005 > A Layer that scroll's with the page...?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
A Layer that scroll's with the page...?
|
|
| JimmyRiddle99 2005-02-28, 6:27 pm |
| I'm looking for a tutorial on how to create a layer (if that's how it's
done) that will snap to the 'viewable' window as the user scrolls up/down
the page.
I've seen this done + would like to use it to put a menu in.
Many Thanks,
JimR99
| |
| Al Sparber- PVII 2005-02-28, 6:27 pm |
| Navigation links in fixed position elements are problematic. On IE5 Mac,
the links will be broken. Gecko browsers have various anomalies, IE PC
does not support it, Safari and Opera are perfect. What you can do,
however, without conventional scripts, is to use an IE expression, which
will get you covered in the majority of computers. Other browsers will
see the menu as normal.
Use this style:
<style type="text/css">
<!--
#myfixedelement {
margin-top:
expression(parseInt(document.body.parentNode.scrollTop)+"px");
}
-->
</style>
substitute "myfixedelement" with the ID of the DIV you want to be fixed.
--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/
"JimmyRiddle99" <jimr99@hotmail.com> wrote in message
news:cvvi5j$nbc$1@forums.macromedia.com...
> I'm looking for a tutorial on how to create a layer (if that's how
> it's done) that will snap to the 'viewable' window as the user scrolls
> up/down the page.
>
> I've seen this done + would like to use it to put a menu in.
>
> Many Thanks,
>
> JimR99
>
| |
| Murray *TMM* 2005-02-28, 6:27 pm |
| It can be pretty annoying since some browsers will scroll it much faster/slower than others. But check Marja Ribbers-de Vroed's site
http://www.flevooware.nl/dreamweaver - persistent layer.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|