a "Magic Scrollbar"

liunx

Guest
Hi guys. I've spent about 4 hours on this and I'm frustrated to the point where I could take a sledge hammer to my computer, but I try to refrain myself.<br />
<br />
Take a look at this "magic scrollbar" here:<br />
<br />
<!-- m --><a class="postlink" href="http://ghtml.com/showoff/scrollbar/index.html">http://ghtml.com/showoff/scrollbar/index.html</a><!-- m --><br />
<br />
Very sweet eh? I think so, and I need it for my site (<!-- w --><a class="postlink" href="http://www.dyjytyl.com">www.dyjytyl.com</a><!-- w -->). My content is very restricted. I can only put in so many characters. However, I've run into an ordeal...<br />
<br />
I can get the scrollbar all alone, in fact take a look:<br />
<br />
<!-- m --><a class="postlink" href="http://www.dyjytyl.com/scrollbar.htm">http://www.dyjytyl.com/scrollbar.htm</a><!-- m --><br />
<br />
Not hard at all. I've been doin HTML for a long time, but this is just something that I can't get. I want to transfer the code and scrollbar from my scrollbar.htm page over to any other of my pages (i'm using my portfolio for testing...). So far this is what I got:<br />
<br />
<!-- m --><a class="postlink" href="http://www.dyjytyl.com/portfolio-testing.htm">http://www.dyjytyl.com/portfolio-testing.htm</a><!-- m --><br />
<br />
It's not as easy as it sounds. There's a HUGE Javascript code for the entire thing, which I have no problem with. Nothin like a good ol cut n paste, but when I try movin it, all my other stuff disappears and the scrollbar works and does it's deal. When I preview it, it works and all my stuff's there, but the page is gone and it's weird.. I'd have to realign it and it'd be all messed up.<br />
<br />
Does anyone have any ideas on how to deal with this type of problem? I may just be dealing with too complicated of a script and there may be a perfect solution out there for me that I'm missing. I've spent hours on this and even got everything down to the exact Z-Index for God's sake--but it still doesn't wanna scroll :( Not a problem getting images and all that crap in there, I can do that--just no scrollin.<br />
<br />
Here's another page that puts this script to good use (and yes I've played with this for an hour or so too):<br />
<br />
<!-- m --><a class="postlink" href="http://www.robouk.mchost.com">http://www.robouk.mchost.com</a><!-- m --><br />
<br />
REALLY would appreciate some help here as I've gotten frustrated to the point where I can't stand it. Thanks\<br />
<br />
Jared Tame<br />
dyjytyl.com<!--content-->Well believe it or not there is a fix, i'm not too sure how good of one, but i do know it works with IE 4 and Netscape 4. You can embed an IFRAME calling the entire html document from an external file source. It works like a charm.<br />
<br />
It will look something like this:<br />
<!--------------------------------------------------><br />
<STYLE TYPE="text/css"><br />
#textDiv {position:absolute; left:8; top:146; width:140; height:460; clip:rect(60,140,460,0);}<br />
</STYLE><br />
<br />
</head><br />
<body><br />
<DIV ID="textDiv"><br />
<IFRAME SRC=http://www.htmlforums.com/archive/index.php/"scroll.html" NAME="textFrame" SCROLLING="No" WIDTH="140" HEIGHT="460" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER="No"></IFRAME><br />
</DIV><br />
<!--------------------------------------------------><br />
You can copy that code directly into your code, as long as you rename the html file correctly it will work!<br />
<br />
Hope this helps<!--content-->About an hour after I posted this message, I figured that I would just go with an "auto" overflow, which automatically inserts a vertical scrollbar. I hated the look of it--that's why I didn't do it in the first place, plus the fact that I couldn't insert my own graphics and such, but from that same site was a tutorial telling you how to change the colors of the IE Scrollbars. So I just went with that..<br />
<br />
But, that doesn't mean I'm not interested in seeing how you solved the problem. It's never too late to try this again--so I'll go try your method out and if I like it and it works like a charm as you said, I'll reply and let ya know =) Thanks man. I appreciate your time and willingness to help a person out.<br />
<br />
-Jared<!--content-->sorry but NS4 will not run an iframe, NS6 will but not NS4. they use ilayers.<!--content-->bah.. that's ok either way. I don't see why netscape was ever made in the first place--all it does is screws everything up as far as compatibility go. as far as security goes in our school, internet explorer won't freeze when viewing _all_ flash videos. Netscape can see some, but even on sites like xdude.com that aren't too heavy on graphics and ram hoggers will freeze.<br />
<br />
I'm thinkin of makin a page for any browsers with the older versions of ns or ie. It's called yousuck_getanewbrowser.html. :rocker: :rocker:<br />
<br />
thanks anyway. take a look at my site to see how I've changed it:<br />
<br />
<!-- w --><a class="postlink" href="http://www.dyjytyl.com">www.dyjytyl.com</a><!-- w --> (click on ABOUT or somethin to see the use of the new scrollbar and IE color thing hehe)<br />
<br />
Thanks!<br />
<br />
-Jared Tame<br />
dyjytyl.com<!--content-->
 
Back
Top