...

View Full Version : cool scrollbar?



bratzmania001
10-11-2004, 07:12 PM
how do i make a scrollbar like this for an iframe? http://www.petyasb.com.ru/news/

gsnedders
10-11-2004, 07:15 PM
Using non-offical mark-up created by Microsoft
Mark-up which doesn't work in standard complainant browsers

gohankid77
10-11-2004, 07:25 PM
But it does work, Error 404. It requires heavy use of JavaScript. That is an example of a bad Web page. You should never rely on JavaScript for anything like that.

bratzmania001
10-11-2004, 07:27 PM
yeah but how would i add this code:


<table align="center" width="20" height="250" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="center" valign="top"><a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="http://www.geocities.com/bratzmania/up.jpg" alt="" border="0"></a></td></tr><tr><td align="center" valign="bottom"><a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="http://www.geocities.com/bratzmania/down.jpg" alt="" border="0"></a></td></tr></table>

as a scrollbar in an iframe?

bratzmania001
10-11-2004, 07:53 PM
or is there a code to do something like this? have a picture be a scrollbar?! :confused:

gohankid77
10-11-2004, 07:56 PM
You could ask the author of that site.

gsnedders
10-11-2004, 08:40 PM
But it does work, Error404. It requires heavy use of JavaScript. That is an example of a bad Web page. You should never rely on JavaScript for anything like that.

Well, it didn't work for me... Safari always uses the blue gel OS X scroll bars ;) and there's a space in my name (Error 404) ;)

gohankid77
10-11-2004, 08:50 PM
Heh... Sorry about your name. I'm not good with names (can you tell?)

In Firefox and IE (Windows) it works.

There are too many browsers (not including text browsers):
Windows: IE, Firefox, Mozilla, Netscape, Opera
Mac: Safari, IE, Firefox, Mozilla, Netscape, Camino, Opera
Linux: Firefox, Mozilla, Netscape, Opera, Konqueror

That's probably just the tip of the iceberg!

bradyj
10-11-2004, 09:48 PM
I see it in my Mac browsers just fine -- I think he means the pink little arrow bars, right? You should send them an email and ask them, other than lifting their code. Or search DynamicDrive.com or other script websites for javascript that will do that.

Just a note, that sites ugly, and I want to shout it from Mt. Everest:)

gsnedders
10-11-2004, 10:09 PM
Just a note, that sites ugly, and I want to shout it from Mt. Everest:)Looks vile in Safari, not tried other browsers... I think I'll shout from K-2 ;)

AaronW
10-12-2004, 12:19 AM
The javascript method used would be frame.scrollBy () I believe. Using this, you can bind the up () and down () methods to the onmouseover event handlers of the two respective images and have yourself scrollbuttons.

I despise them myself, as you can't control speed enough. I'm also at 1600x1200, and there's nothing worse than having 600px of space below a site and having to scroll its 300px-tall content frame...

bratzmania001
10-12-2004, 04:17 AM
so whats the code? :confused:

Mhtml
10-12-2004, 06:41 AM
Using non-offical mark-up created by Microsoft
Mark-up which doesn't work in standard complainant browsers

There was a warning about this sort of behaviour! Please do not do it in the future. And seeing as you were wrong that's even more of a reason not to do it.

But back the topic at hand.
This was done using javascript. Perhaps you should check out www.dynamicdrive.com, I believe they have a few scripts like this. If you cannot find one there, you should search or ask in the javascript forum, there is bound to be someone in there who knows where to find a good one. :)

ArcticFox
10-12-2004, 11:51 PM
Looks like an iFrame scroller.

Going through the code, it's an iLayer scroller. :D

Some links for you:
Page Scroller (http://www.dynamicdrive.com/dynamicindex2/pagescroller.htm)
Manual Scroller (http://www.dynamicdrive.com/dynamicindex2/manualscroll.htm) - can use onMouseOver/Out/Up/Down events

My Site (http://arctic.ithium.net/) - two seperate menu iFrame scrollers with onMouseOver/Out/Up/Down events on links (IE only; link position problems in Moz/FFox, but still scrolls in those browsers)

bratzmania001
10-12-2004, 11:52 PM
thank you! :D :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum