Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll bar visibility.

Status
Not open for further replies.

Phil79

Technical User
Jun 5, 2002
64
GB
I am doing a page to be used on my company's intranet. Everyone is running IE6, so cross browser compatibility is not an issue.

My javascript contains a DIV tag (containing HTML written using a Javascript function). When the user clicks on a link to print, it calls a routine which reformats the page for printing. How can I get this routine to hide the <DIV> tag's scrollbars? I'm sure it's obvious, but I can't access the scrollbar's visibility element. I've been using the following instead:

showorder.style.overflow='hidden'

Where am I going wrong?
 
have u tried
showorder.style.visibility = 'hidden';
works in IE6 ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
<!--
&quot;hide the <DIV> tag's scrollbars&quot;
sorry i miss read...
-->
<html>
<head>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
<!--
function removebar(where) {
where.style.overflow = '';
}
function putback(where) {
where.style.overflow = 'auto';
}
//-->
</script>
<body>
<div onmouseover=&quot;removebar(this)&quot; onmouseout=&quot;putback(this)&quot; style=&quot;position:absolute; left:100; top:40;height:100; width:100; overflow:auto&quot;>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
blabla<br>
</div>
</body>
</html> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Excellent, thanks very much for your help. I've just noticed that I used &quot;overflow-x&quot; and &quot;overflow-y&quot; in the DIV tag's style, which is why it didn't work before (This project has been going for some time now!!!)
 
happy that helped ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top