PDA

View Full Version : Change scroll


ianrules
09-30-2000, 11:32 PM
Hi i wanted to know how i can get rid of the vertical scroll on browser windows and use images wthin my site to scroll instead or
how i can change the color of the scroll.

------------------
Hello People...

brobe
10-02-2000, 12:53 AM
Hi ianrules,

As far as the colored scroll bar and using images for it, i am not sure that i have seen this done. Can you post an instance of this so i can gain knowledge of this?

To get the scroll bar to not show on a popup window is fairly simple. On the other hand i am not sure if this is possible on the parent window (the window that is first started). To get it not to scroll then do not place too much vertical content.

Here is an example to popup a window with no scroll bar:

place this in the head tags of your page:

<script language="JavaScript">
<!--
function openWin( windowURL, windowName, windowFeatures ) {
return window.open( windowURL, windowName, windowFeatures ) ;
}
// -->
</script>

then place this where you want the link in your page to popup the window...

<a href="JavaScript: newWindow = openWin( 'testurltoopen.html', 'TESTWINDOWNAME', 'width=400,height=400,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0 ' ); newWindow.focus()">
Text to open window</a>


Notice the scrollBars=0 in the href tag...this is what disables the scrollBars..

p.s. keep in mind that if you disable the scrollbars then if content goes below the height of the window then the user will not be able to view the content using conventional methods.

hope this helps...

------------------
Brett Roberts
Programmer / Analyst
http://www.mp3-search-portal.com