473,657 Members | 2,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what makes this "slide" bar stay so solid? (never seen before)

Joe
usually slide bars move by "jumps" while scrolling which looks not
nice.
I came accress slide bar with price menu, ewnt through script/web
source code, and could not find anything that would case that wanted
effect :)

here you go:
http://www.shopping.hp.com/webapp/sh...isplay&v1=20.1
click on the left >Recommended config , a menu on the right will
show up, you see you scroll down, menu stays perfectly in the place

just wondering how it was acheieved.

any ideas??
Mar 23 '08 #1
7 1852
Joe meinte:
usually slide bars move by "jumps" while scrolling which looks not
nice.
I came accress slide bar with price menu, ewnt through script/web
source code, and could not find anything that would case that wanted
effect :)

here you go:
http://www.shopping.hp.com/webapp/sh...isplay&v1=20.1
click on the left >Recommended config , a menu on the right will
show up, you see you scroll down, menu stays perfectly in the place

just wondering how it was acheieved.
Upon scrolling position: relative is set to position: fixed for for the
div element with id "slider". Firebug helps.
any ideas??
I don't know which JS snippet is responsible for it, and since the
quality of the "code" on this site (like on so many other big corporate
sites) is perhaps even worse than jQuery, I won't bother to search for it.

Gregor

--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Mar 23 '08 #2
Joe
On Mar 23, 6:05*am, Gregor Kofler <use...@gregork ofler.atwrote:
Joe meinte:
usually slide bars move by "jumps" while scrolling which looks not
nice.
I came accress slide bar with price menu, ewnt through script/web
source code, and could not find anything that would case that wanted
effect :)
here you go:
http://www.shopping.hp.com/webapp/sh..._series.do?sto...
click on the left >Recommended config , a menu on the right will
show up, you see you scroll down, menu stays perfectly in the place
just wondering how it was acheieved.

Upon scrolling position: relative is set to position: fixed for for the
div element with id "slider". Firebug helps.
any ideas??

I don't know which JS snippet is responsible for it, and since the
quality of the "code" on this site (like on so many other big corporate
sites) is perhaps even worse than jQuery, I won't bother to search for it.

Gregor

--http://photo.gregorkof ler.at::: Landschafts- und Reisefotografie http://web.gregorkofle r.com*::: meine JS-Spielwiesehttp://www.image2d.com * * * ::: Bildagentur für den alpinen Raum
I am looking through IE and it is the same thing - it doesnt jump,
just slide...
Thanks anyways
Mar 23 '08 #3
Gregor Kofler wrote:
>here you go:
http://www.shopping.hp.com/webapp/sh...isplay&v1=20.1

I don't know which JS snippet is responsible for it, and since the
quality of the "code" on this site (like on so many other big corporate
sites) is perhaps even worse than jQuery, I won't bother to search for it.
I don't understand why some people feel the need to needlessly bash
jQuery every time it gets mentioned here.

jQuery is a *great* tool to simplify things which would be tedious at
best with pure javascript. It lowers the bar of creating usable
JavaScript-applications and while you seem to think it's a bad thing I
really can't see what's the harm in that. Sure, it may be fun to create
your own functions and librarys, some might say re-inventing the wheel,
but I really can't see that work being productive in a business sense.

And if the code quality behing jQuery isn't that great, which I'm not
saying it isn't, then so what? It doesn't even really matter to me if
and *when* it takes care of the browser differences in a reliable way
and makes JavaScript actually fun.

I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line. I'm
sure there are some parts in every JavaScript code, even in your own,
where people could jump in and point out potential problems. Heck,
pointing out other peoples errors isn't that difficult. Nor is it
productive.

Besides jQuery is getting better and faster after each release and if
and when there are bugs they will be fixed - it's that simple.

If you are really unable to see the benefit of using jQuery - well, then
I guess each of us makes decisions based on different merits, but it
still doesn't make jQuery "crap" even if you don't like it.

All of you who don't really know what this is even about - don't just
eat up the beliefs of some of the regulars but check out jQuery to make
up your own mind - http://jquery.org.

--
Joose Niemi
Mar 23 '08 #4
Joose Niemi wrote:
...check out jQuery to make
up your own mind - http://jquery.org.
Oops - it should have been http://jquery.com

--
Joose Niemi
Mar 23 '08 #5
Joose Niemi meinte:

[jQuery praise snipped]
I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line.
So what's your point?
I'm
sure there are some parts in every JavaScript code, even in your own,
where people could jump in and point out potential problems.
Sure. But I'm no "JS evangelist"...
Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Mar 23 '08 #6
Gregor Kofler wrote:
Joose Niemi meinte:

[jQuery praise snipped]
>I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line.

So what's your point?
I guess my point was that while the code may not be perfect it still
brings an obvious productivity boost for a common developer like myself.

Those are two different things - one being the internal code quality and
the other being productivity - and I don't understand how and why the
former cancels the latter.
>I'm sure there are some parts in every JavaScript code, even in your
own, where people could jump in and point out potential problems.

Sure. But I'm no "JS evangelist"...
So I guess you're referring to John Resig who is the lead-developer
behind jQuery.

Isn't an evangelist defined as a person who enthusiasticall y promotes or
supports something? So such persons are not allowed to make mistakes,
and if they do it automatically invalidates all projects they have been
working on for a long time? That just doesn't seem very fair to me.

--
Joose Niemi
Mar 23 '08 #7
Joe
On Mar 23, 7:06*pm, Joose Niemi <jooseNOS...@ko lumbus.fi.inval id>
wrote:
Gregor Kofler wrote:
Joose Niemi meinte:
[jQuery praise snipped]
I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line.
So what's your point?

I guess my point was that while the code may not be perfect it still
brings an obvious productivity boost for a common developer like myself.

Those are two different things - one being the internal code quality and
the other being productivity - and I don't understand how and why the
former cancels the latter.
I'm sure there are some parts in every JavaScript code, even in your
own, where people could jump in and point out potential problems.
Sure. But I'm no "JS evangelist"...

So I guess you're referring to John Resig who is the lead-developer
behind jQuery.

Isn't an evangelist defined as a person who enthusiasticall y promotes or
supports something? So such persons are not allowed to make mistakes,
and if they do it automatically invalidates all projects they have been
working on for a long time? That just doesn't seem very fair to me.

--
Joose Niemi
Jose, thanks for wiriting under different subject... (can you at least
read posts subjects??)

Mar 23 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
16530
by: Simon Wigzell | last post by:
Can I trap when the scroll is ended? This is what I want - the calculator disapears when the site visitor starts scrolling the main page. I'm doing that with an "onScroll()" function. I'm bringing the calculator back with a "onMouseup()" which I thoguht would activate when the scroll bar was released but it doesn't. What I really want is an "offScroll()" but there is no such thing! ...
3
2085
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and 1.6, the function msg works fine if it's installed as an onclick handler for the button, but fails as an onload handler for the page. The error is "console has no properties", and is triggered by the line.
7
3010
by: Willem van Rumpt | last post by:
Hi all, coming from an unmanaged programming background, I took my time to sort out the IDisposable and finalizer patterns. Just when I thought I had it all conceptually neatly arranged, the "Close()" methods reared their ugly (at least it would seem...)heads. I was happily delving away in the .NET framework, investigating the stream classes with the msdn and Lutz Roeder's .NET reflector, when I stumbled upon the following:
7
3060
by: Rudy | last post by:
Hello All! After working in the television industry, moving to a developing career has been interesting to say the least. 3 years of developing with books, and the help of you fine folks on this forum, I have learned quite a bit. But that doesn't mean anything when your looking for your first developing gig. 15 years in television production, and not having a college degree in Computer Science does not make me a very good prospect....
18
1491
by: Doug H | last post by:
Ran across this (requires Firefox): http://www.pugscode.org/osdc/vb.xul Done by the developer of a new perl6 runtime called pugs. Information about Visual Basic 9 is here, if you haven't already read about it: http://msdn.microsoft.com/vbasic/future/default.aspx
3
5247
by: Beamer | last post by:
Hi I am trying to build a roating slide effect in javascript. Basically, I have a list like below <ul id="slideShowCnt"> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li>
7
2391
by: raylaur | last post by:
I'm using a javascript "slide" function to move a <div> layer in 10 pixel increments from one location on a page to another. The layer contains a GIF image. It's basically a side panel that flies out when you click a button. The button is an invisible GIF with an anchor that calls slide() onClick. The animation works fine in IE but in Firefox I'm getting a series of afterimages as the function moves the layer to the goal. The image is painted...
17
79370
Banfa
by: Banfa | last post by:
I felt that this was a good point to start a tutorial on C/C++ programming because clearly we need to have some idea of what we are trying to achieve before we start out. I recently found this definition on the web which I rather like "Programming is planning how to solve a problem. No matter what method is used -- pencil and paper, slide rule, adding machine, or computer -problem solving requires programming. Of course, how one programs...
3
2394
by: bhavyagupt | last post by:
i 'm not able to use the accordion menu code in for loop . can anyone solve ma problem. code....... slider.js------> java script var slider=function(){ var array=; var speed=10; var timer=10; return{ init:function(t,c){
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8610
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7345
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6174
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1730
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.