Computing.Net > Forums > Web Development > Scroll bar issues

Scroll bar issues

Reply to Message Icon

Original Message
Name: cityroamer
Date: March 18, 2004 at 21:38:51 Pacific
Subject: Scroll bar issues
OS: Windows XP Pro
CPU/Ram: 512 MB
Comment:

Hello,

I am trying to scroll bars appear where I want them, and remove the standard web browser scroll bar. I use Macromedia Dreamweaver... how can I make a scroll bar for only a certain layout table? How can I do something similar to this website? (as far as the scrollbars go) http://www.hamptoncomputer.net/

Thanks


Report Offensive Message For Removal


Response Number 1
Name: safeTsurfa
Date: March 19, 2004 at 06:29:24 Pacific
Reply: (edit)

The easiest and quickest way to see how a web site did something is to view the Source for the page.

If you do this at Hampton Computers, you will see they are using framed pages. One of the options for each frame is to choose whether or not it has a scrollbar.

Oh, and forget about using colours in scrollbars, that only works in Internet Explorer, as it uses the poor coding of IE to get the effect. All it does in real terms is add more code (extra loading time) to the web page, which will be wasted on anyone using Netscape, Opera, Mozilla, etc, because they will never see it.


Report Offensive Follow Up For Removal

Response Number 2
Name: Code One
Date: March 20, 2004 at 16:06:21 Pacific
Reply: (edit)

well, but you still think it looks pretty huh?

just use CSS (Cascading Style Sheets)

type CSS scrollbars in google you'll find a crap load of info..


Report Offensive Follow Up For Removal

Response Number 3
Name: The Count
Date: March 20, 2004 at 17:21:26 Pacific
Reply: (edit)

Hi S. Crawford, safeTsurfa, codeone, hi everyone

Definitely a framed site. :-))

The most important code for the Hampton Computer site, to be found in index.html. The site uses three rows.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
   <head>
      <title>Welcome to Hampton Computer, computer sales, computer servicing, computer repair, computer upgrades, computer networking, computer training</title>
   </head>
   <frameset rows="*,404,*" border="0" framespacing="0" frameborder="NO">
      <frame src="blank_home.html" name="topblnk" scrolling="NO" noresize>
      <frame src="main.html" name="center" scrolling="NO" noresize>
      <frame src="blank_footer.html" name="btmblnk" scrolling="NO" noresize>
   </frameset>
   <noframes>
   <body>
   <!-- Comment by The Count: Enter code for no frames capable browsers here -->
   </body>
   </noframes>
</html>

The most important code for the Duncan Technologies site, to be found in index.html. The site uses one row and two columns.
(http://www.duncan2004.com)

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <title>Computer service and repair</title>
</head>
<frameset rows="120,*" border="0">
<frame src="title.html" name="banner" scrolling="no">
<frameset cols="20%,85%" border="0">
<frame src="menu.html" name="menuwindow" scrolling="no" noresize>
<frame src="home.html" name="mainwindow" scrolling="auto" noresize>
;<noframes>
   <body>
   <!-- Comment by The Count: Enter code for no frames capable browsers here -->
   </body>
</noframes>
</frameset>
</html>

Using scrolling="auto" in the <frame> tag causes the scrollbar to appear only when needed.

Oh, and I don't feel like arguing about the use of the colors with the scrollbars. It looks pretty need with IE, and the JavaScript code is minimal.

As I haven't mastered CSS myself yet, I know it's a real handy way to change your layout (background colors, scrollbars, font etc.) in the blink of an eye, I won't argue about the use of it either. :-)


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Scroll bar issues

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge