944,015 Members | Top Members by Rank

Ad:
May 15th, 2005
0

scrolling div ?

Expand Post »
OK..... I have a site/page template I've made.... looks good!

Set the height and set overflow in CSS so I get scroll bars if JS is disabled....
yet the boss wants a method of using icons to scroll up/down without scrollbars...... seen it on several sites..... found sample code.... hacked about with several different ideas.....

Keep hitting the same problems.........either it's not compatable with Netscape, or the code works out to be around 5 kb+.... which is far to high!
((esp. when you have the JS to make IE have minwidth and a rather cool JS menu which site over the normal nav system..... the js is getting to be around X2 the size of the page and the graphics and the content!))

So, does any one of a simple, easy and "small" JS that will let me scroll up and down in a div - using mouseover two images?
Similar Threads
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
May 16th, 2005
0

Re: scrolling div ?

I don't... that's what scrollbars are for!

I know you want an actual answer, not a lecture. Look at the "scrollTo" method, that should get you started.

However, consider that you are replicating a function that already exists and that users expect. When you take away something that a user expects, and replace it with something that isn't immediately obvious or more useful, you create a negative user experience.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
May 17th, 2005
0

Re: scrolling div ?

OK.... you'll do fine to take my edge off today!
Thank you for volounteering....


1) CLEARLY stated ..."Boss wants".
2) It's an additional element... if JS is disabled, then they get the accepted/expected norm.
3) The sites you build have white Bg, black Txt, no images and use pure html 1.1 with tags that are completely depreciated?
4) So... you live in a tree, get wet when it rains, get cold when it's cold, hot when it's hot, walk to work, carry your shoipping home without the use of bags or other transportation etc..... What do you mean NO!?
People do different things all the time.... thats one of the wonders of the web.
I'm inclined to agree with you to some extent... but this is what I've been asked to do, so this is what I shall do!

So, care to contribute?

Please dson't take offence... yet I don't ram convention down peoples throatsm so please have the same courtesy.
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: HTML & XML
Next Thread in HTML and CSS Forum Timeline: HTML & XML





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC