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

External Scrollbar.js

Status
Not open for further replies.

nchan

Programmer
Jan 9, 2001
40
CA
Hello,

This is the code I'm using. Is there a way to change it so it only displays the vertical scrollbar?

Thank you!


browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4))
{
document.write('<style type="text/css">');
document.write('html ');
document.write('{scrollbar-arrow-color: #FF9900;scrollbar-base-color: #000000;scrollbar-dark-shadow-color: #DDDDDD;');
document.write('scrollbar-track-color: #DDDDDD;scrollbar-face-color: #DDDDDD;scrollbar-shadow-color: #DDDDDD;');
document.write('scrollbar-highlight-color: #DDDDDD;scrollbar-3d-light-color: #DDDDDD;}');
document.write('</style>');
}

 
where on earth do i get those browsers from I.E. 5.0, NN7 ?

and how do you test mac browsers if you don't have a mac?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
where on earth do i get those browsers from I.E. 5.0, NN7 ?

I downloaded the installers for them when they were released. I have a huge software archive. If you are after them, you can get them from the "browser graveyard" at evolt: ... they have pretty much every browser ever written there.

and how do you test mac browsers if you don't have a mac?

What a ridiculous statement. You know nothing of my hardware setup.

Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
What a ridiculous statement. You know nothing of my hardware setup.

no that's a ridiculous statement, i was talking about ME, it was a question!!!!!

"How do {proverbal YOU} test mac browsers if you don't have a mac?"

I don't have a mac, how the hell am i going to test my site works for mac user, why is that such a rediculous question to ask?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Don't you love the wonderful ways we can miscommunicate sometimes? [smile] The short answer (of course) is that you can't (easily) view how your site looks on a Mac... if you don't own a Mac. There are some suggestions though...

I'm a proud Mac owner (bought my first Mac in Jan 1999)... and whilst I use Windows mostly during my daily contract work, I have several Macs at home... and encourage the large companies I work for to buy at least one for testing on.

Some suggestions...

One solution would be to look at PearPC. This is an open source project that aims to create a Mac emmulator (running MacOSX - not older version of the OS) for just the kind of purpose you might want it for. You have to buy the OS to install it in the emmulator (of course). This project is still in development, but I have seen working installations running on Windows. It's a difficult task to configure it (from what I recall).

Of course, the cost of a Mac is a lot lower now... you can grab a Mac Mini (about the size of a hardback novel) for not a huge investment... reusing your existing monitor, keyboard and mouse (get a KVM switch and it's seamless).

Within 12 months Apple will have moved their whole (?) product range across to using Intel chips. This potentially gives us the ability to dual-boot... and even buy the hardware and run Windows on it. Just something to look out for.

You could look at the online services that offer to do jpg screenshots of your URL using a bank of browsers/OS combinations. Here is one such site offering this:
Finally, if your site works well and presents well in Firefox and IE on Windows (and you haven't used specific hacks to make it happen)... if the site validates to a doctype... then your site will most probably work in exactly the same way for Firefox and Safari on MacOSX. This is not always the case... and the more complex the layout the more chance of this breaking. Just my experience.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
lol - you really threw me, I thought eh, what is he talking about!

I've hmm'd and harr'd over getting a mac, and unfortunately, the amount of money i've invested in IBM Compatable PC's leaves me reluctant to spend the money.

I'm already looking to get a new MB, P4 & DDR2 memory to upgrade my current system @ £500.00's worth. The missus would kill me if i went and bought a Mac as well, not to mention it is christmas.

I find it suprising that Mac are going to change their RISC processor for INTEL, that used to be a major difference between the two types, but I guess INTEL have made chips so powerfull now, it's by the by, but from what I understand Moore's Law runs out in 2020, when the tracks on the chip are an atom apart, so then what - fun times ahead me thinks.

That testing screen shot site looks interesting, and it's free for 24 hours, think i'll do all the changes and then blitz it once ready.

This emulator sounds interesting, there have been many emulators poping up over recent years, be it MAME, UNIX on Windows, Window on UNIX, etc.. seems enevitable it would include Windows -> Mac, plus i'd always said I might switch from windows if only the Mac OS was IBM Compat, maybe Mac have realised this themselves hence the move in Chip technology.

So would you say FF,IE & Opera, plus using w3c validation tools, is a fair and just way to test, and leave NN out the loop?




"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
So would you say FF,IE & Opera, plus using w3c validation tools, is a fair and just way to test, and leave NN out the loop?
Well... I've not found a NN specific bug (when looking across browser) that wasn't also problematic in FF (they share the same rendering engine)).

Having said that... I would still visit it in NN (especially 7.2) -- but I wouldn't be expecting any difference between FF and NN (certainly nowadays... we're talking modern browsers here). I have a few NN installed and run things through as a matter of course... but where I may check in IE/FF/OP every page change (that matters), I might check in NN at the very end.

Certainly the w3c validation service... I've even used it to hilight duplicate IDs in HTML! Never would have spotted that one myself :)

Cheers,
Jeff

PS: Checked the MacMini price: £359.00 (including all VAT etc). It's a business expense! [smile]

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
I haven't used these myself but there also appears to be other Mac emulators at:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
This site is promoting the free "SoftMac 2000" software emulator. It will not let you run MacOS 9 or MacOSX. This would be like saying to an XP user they can only run Windows 3.11.

If you want to run MacOS8 on SoftMac 2000, then you can get some of the early browsers and run them up... but not Safari, not Firefox... although IE 5.2x ought to work ok.

I saw the leaked Developer build of MacOSX for Intel installed and working nicely on a "bog standard" Toshiba recently too. Whilst Apple have publicly stated they will not let the OS run on non-Apple hardware, I imagine we'll see patches available that will allow this in the future (although not authorised by Apple I bet).

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Looks like I'm showing my very limited Mac knowledge off by pointing that site out then! [blush]


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Nah... it's always useful to have these for the one time in your career you need to test a particularly old browser and OS configuration.

I just want to see those intel based Macs... so I can dual boot :)

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top