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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHTML Scrollbars 1

Status
Not open for further replies.

ziploc1010

Programmer
Apr 14, 2001
13
US

I want to make a scrollbar on my page to use. This is b/c I don't want to show all of an image at once. Is it possible w/ DHTML to make this image scrollable?
 
yeah try this, replace big.jpg with your own picture and width: 250px; height: 250px; with your own width and height. E.G.

<html>
<head>
<title></title>
</head>
<body>
<div style=&quot;overflow: scroll;
width: 250px; height: 250px;&quot;>
<img border=&quot;2&quot; src=&quot;
big.jpg&quot;>
</div></p>
</body>
</html>

 

Thanks again Klae. I heard the overflow definition was specific to IE. Is there a way to get this to work w/ Netscape, also?
 
I haven't found a way to do it in Netscape yet, But perhaps someone else knows how. I have found that anything to do with scrollbars, Netscape hasn't developed on yet. The only scrollbars I can get up in netscape is to scroll the page or to scroll a frame.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top