The Scrolling Header

51 posts1, 2, 3, 4
User avatar
Gender Male
Points 9907
Reviews 506
Update to IE7 or (better yet) get your hands on Firefox. Both are far superior to IE6.
I wrote the above just for you.




User avatar
Gender Male
Points 9907
Reviews 506
Hey - Nate's fixed it! :)
I wrote the above just for you.




User avatar
Gender Male
Points 11542
Reviews 426
This bug is getting worse! I don't know how or why, but there's a link to turn it off now at the top of every page.




User avatar
Gender Female
Points 1090
Reviews 87
Oh noes! Could it be a haxor?

>.>
Last edited by Perra on Tue May 13, 2008 9:54 pm, edited 1 time in total.
YWS gives me carpal tunnel.

Need a Critique?

Evil lurks everywhere, often in plain sight...Can you lurk in plain sight? Or is that just walking?




User avatar
Gender Male
Points 9907
Reviews 506
Nate, you're getting much to good at this.
I wrote the above just for you.




User avatar
Gender Female
Points 2999
Reviews 438
I'm not upgrading - I love my IE! :wink:

And it still won't give it to me, even when I click 'enable the scrolling headbar.' :(

It doesn't like me, or my amazing IE.

~JFW1415




User avatar
Gender Male
Points 9907
Reviews 506
Well, the enable button doesn't work for me in firefox, but works just fine in IE7.
I wrote the above just for you.




User avatar
Gender Female
Points 1075
Reviews 344
It's gone on mine...bugs are awful things. There was a huge one in my bathroom this morning.
We are all in the gutter, but some of us are looking at the stars.

Oscar Wilde.




User avatar
Gender Female
Points 1090
Reviews 87
The enable button's working on my Firefox, although it wasn't working a few minutes ago.

You know, there are times when I really want to see YWS's code and see what everything does. This is one of those times.
YWS gives me carpal tunnel.

Need a Critique?

Evil lurks everywhere, often in plain sight...Can you lurk in plain sight? Or is that just walking?




User avatar
Gender Male
Points 9907
Reviews 506
Code
<script type="text/javascript">
window.onscroll = function()
{
   var x = readCookie('ywsscrollcookie');
   if (x != 1)
   {
   if( window.XMLHttpRequest ) { // IE 6 doesn't implement position fixed nicely...
      if (document.documentElement.scrollTop > 15) {
         $('content_sub').style.position = 'fixed';
         $('content_sub').style.top = '0';
      } else {
         $('content_sub').style.position = 'relative';
         $('content_sub').style.top = 'auto';
      }
   }}
}
</script>


^_^
I wrote the above just for you.




User avatar
Gender Male
Points 11542
Reviews 426
What Sureal has provided is about half of it. To find out more, go here:
http://www.derekallard.com/blog/post/co ... y-sidebar/

I'm using it on TWS too for the user menu on the front page.

The only change I made from the original code is the
Code
{
   var x = readCookie('ywsscrollcookie');
   if (x != 1)

part. When you click on the "Stop" or "Enable" links, a cookie gets passed to your browser. Clicking stop sets the cookie to 1. Clicking enable sets it to 0.

By the way, if you plan on using it on your site, you have to include mootools.js (just do a google search for it). The author of the above article neglected to mention that...


IE 6 Users
You will now see an upgrade link. PLEASE USE IT. You have no idea how frustrating it is to have to make everything work on IE 6, which sucks. Plus, every single browser out there, including IE 7, is better than IE 6. This is not a joke, and please don't treat it like one. If you don't want to update, then don't update, but don't say something like "IE 6 is awesome," because it's not. By continuing to use that browser, you are holding the development of the Internet back, you are exposing your computer to numerous hacker attacks, and you don't get as much out of the Internet as other users do. For yours and everyone else's sake, please update! :P
Last edited by Nate on Tue May 13, 2008 10:36 pm, edited 1 time in total.




User avatar
Gender Female
Points 2999
Reviews 438
Nate wrote:IE 6 Users
You will now see an upgrade link. PLEASE USE IT. You have no idea how frustrating it is to have to make everything work on IE 6, which sucks. Plus, every single browser out there, including IE 7, is better than IE 6. This is not a joke, and please don't treat it like one. If you don't want to update, then don't update, but don't say something like "IE 6 is awesome," because it's not. By continuing to use that browser, you are holding the development of the Internet back, you are exposing your computer to numerous hacker attacks, and you don't get as much out of the Internet as other users do. For yours and everyone else's sake, please update!


I tried, but it messed up my computer. Froze everything...

Maybe I'll just let it go while I sleep, when I'm not typing a story only to be rudely interrupted. *Shakes fist at IE 7*

~JFW1415




User avatar
Gender Male
Points 9907
Reviews 506
Firefox is best. :) Lots of nifty add-ons and themes to download, and it's more secure than IE. It's only downside is that it takes a couple more seconds to open than IE does.
I wrote the above just for you.




User avatar
Gender Male
Points 11542
Reviews 426
JFW1415 wrote:
I tried, but it messed up my computer. Froze everything...

~JFW1415


That's IE 6 for you! ;)

You might want to try this... http://www.ie7.com It's a better link...




User avatar
Gender Female
Points 2999
Reviews 438
I have Firefox!

This is my last post as an IE 6 user. You have served me...all right, IE 6.

:roll:

Thanks for the link, Sureal!

~JFW1415



Look closely. The beautiful may be small.
— Immanuel Kant, Philosopher