04-20-2006
|
#1 (permalink)
|
|
A$s On Fiyah
Join Date: May 2005
Location: Ewa Beach, Hawaii
Posts: 601
|
Scrollbar, making it a gradient?
Is there anyway to make the scroll bar's background a gradient to match my background?
__________________
google is my lover, whos yours?
Last edited by ecntrc; 04-20-2006 at 09:35 AM.
|
|
|
04-20-2006
|
#2 (permalink)
|
|
Recursively call who?
Join Date: Nov 2003
Location: Pittsburgh, PA
Posts: 294
|
As far as I know, I don't think there is. I think you can only make scrollbar parts static colors. But remember that the scrollbar colors are not part of CSS standards, they will not appear on all browsers.
|
|
|
04-20-2006
|
#3 (permalink)
|
|
Registered User
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51
|
__________________
|
|
|
04-20-2006
|
#4 (permalink)
|
|
A$s On Fiyah
Join Date: May 2005
Location: Ewa Beach, Hawaii
Posts: 601
|
what about those scroll bars that if you hover over the arrow or something like that.. how would i do a search on that? you know those type of scroll bars. my scrollbars dont look good.
__________________
google is my lover, whos yours?
|
|
|
04-21-2006
|
#5 (permalink)
|
|
code anyone?
Join Date: Feb 2004
Location: New Zealand
Posts: 590
|
you could if your website is made in flash (i don't recommend it) otherwise i don't think this is possible.
|
|
|
04-21-2006
|
#6 (permalink)
|
|
A$s On Fiyah
Join Date: May 2005
Location: Ewa Beach, Hawaii
Posts: 601
|
thanks.. you can close this one..
__________________
google is my lover, whos yours?
|
|
|
04-21-2006
|
#7 (permalink)
|
|
Registered User
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51
|
Code:
<script type="text/javascript">
/*************************************************************************
This code is from Dynamic Web Coding at http://www.dyn-web.com/
See Terms of Use at http://www.dyn-web.com/bus/terms.html
regarding conditions under which you may use this code.
This notice must be retained in the code as is!
*************************************************************************/
var timer_id;
function scroll_iframe(frm,inc,dir) {
if (timer_id) clearTimeout(timer_id);
if (window.frames[frm]) {
if (dir == "v") window.frames[frm].scrollBy(0, inc);
else window.frames[frm].scrollBy(inc, 0);
timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
}
}
function stopScroll() { if (timer_id) clearTimeout(timer_id); }
</script>
<a href="javascript:;" onMouseDown="scroll_iframe('content', -8, 'v'); window.status='click here to go down.'; return true" onMouseUp="stopScroll(); window.status=''; return true">
<a href="javascript:;" onMouseDown="scroll_iframe('content', 8, 'v'); window.status='click here to go down.'; return true" onMouseUp="stopScroll(); window.status=''; return true">
it uses 2 images to scroll a page, almost everything you do in flash can also be done using javascript
__________________
|
|
|
04-21-2006
|
#8 (permalink)
|
|
A$s On Fiyah
Join Date: May 2005
Location: Ewa Beach, Hawaii
Posts: 601
|
Quote:
|
Originally Posted by sneeuwbal
Code:
<script type="text/javascript">
/*************************************************************************
This code is from Dynamic Web Coding at http://www.dyn-web.com/
See Terms of Use at http://www.dyn-web.com/bus/terms.html
regarding conditions under which you may use this code.
This notice must be retained in the code as is!
*************************************************************************/
var timer_id;
function scroll_iframe(frm,inc,dir) {
if (timer_id) clearTimeout(timer_id);
if (window.frames[frm]) {
if (dir == "v") window.frames[frm].scrollBy(0, inc);
else window.frames[frm].scrollBy(inc, 0);
timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
}
}
function stopScroll() { if (timer_id) clearTimeout(timer_id); }
</script>
<a href="javascript:;" onMouseDown="scroll_iframe('content', -8, 'v'); window.status='click here to go down.'; return true" onMouseUp="stopScroll(); window.status=''; return true">
<a href="javascript:;" onMouseDown="scroll_iframe('content', 8, 'v'); window.status='click here to go down.'; return true" onMouseUp="stopScroll(); window.status=''; return true">
it uses 2 images to scroll a page, almost everything you do in flash can also be done using javascript
|
does this go in the head? do you have the link of the exact script you looked at?
__________________
google is my lover, whos yours?
|
|
|
04-21-2006
|
#9 (permalink)
|
|
Registered User
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51
|
http://www.arawndesigns.com
the code is used there for the iframe
just view the source-code
__________________
|
|
|
04-23-2006
|
#10 (permalink)
|
|
XM 42: XMLM ROCKS!
Join Date: Apr 2006
Location: Delaware
Posts: 8
|
the script would go in the head. the links and such would go in the body.
just one thing to think about. not everybody likes having javascript enabled for certain reasons. don't forget about them. if possible, set the content (iframe, div, w/e) with javascript, so those without javascript enabled can still see the whole site.
also, i would rather go with a div than an iframe for the simple fact that divs are much cooler than iframes, and if you can learn ajax (if not already), than it would make your site just that much cooler
|
|
|
05-02-2006
|
#11 (permalink)
|
|
robin
Join Date: May 2006
Location: Eire
Posts: 48
|
I would recommend that you don't for several reasons
* hard to get right
* not portable across browsers
* can add greatly to memory consumption
* can introduce flicker artifacts and the like
* increases page weight
Design is about compromise. Web interfaces are not pixel-perfect and you might go mad trying.
__________________
"out of environment space"
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 09:34 AM. Content Relevant URLs by vBSEO 3.2.0
|