Author Topic: Javascript weirdness  (Read 1236 times)

Offline Paddy

  • Administrator
  • TS Addict
  • *****
  • Posts: 13797
    • View Profile
    • https://www.paddyduncan.com
Javascript weirdness
« on: July 15, 2003, 11:42:03 PM »
I will freely admit that I don't know diddly about javascripting - I find what I need online, change what needs changing, cross my fingers...and sometimes it even works.

Please have a look at this page:

http://www.northandover.k12.ma.us/Sargent/Tour.html

It works fine in IE (OS X), although it doesn't do the nice cross-fading it's supposed to do. It works fine in IE on the PC - complete with nice cross-fading.

In Camino it works fine - complete with cross-fading. smile.gif

In Omniweb it works fine - though without the cross-fade.

In Mozilla, it jumps around like a Mexican jumping bean. ohmy.gif

In Safari it only shows some of the 16 slides - and not always the same ones. Some it NEVER shows. And the timing is also way off - too slow most of the time, then sticks a slide or two in there for less time than it's supposed to. ohmy.gif  wacko.gif

I KNOW that javascript is one of Safari's problems, but sheesh. Anyone have any suggestions or do I just assume that I am probably one of the few people in the district using Safari (at least until the new HS opens in early 2004, when most of the school will be on new Macs running OS X) and stop fussing? (face it - most of the parents will probably be using the PC version of IE tongue.gif )

I just realized that I'm running an older version of Safari - I'll finish this post and install the newer version and see if that helps. Still don't know what's up with Mozilla though.
"If computers get too powerful, we can organize them into committees. That'll do them in." ~Author unknown •iMac 5K, 27" 3.6Ghz i9 (2019) • 16" M1 MBP(2021) • 9.7" iPad Pro • iPhone 13

Offline Paddy

  • Administrator
  • TS Addict
  • *****
  • Posts: 13797
    • View Profile
    • https://www.paddyduncan.com
Javascript weirdness
« Reply #1 on: July 16, 2003, 08:52:36 AM »
OK - newest version of Safari and newer version of Mozilla - same problems.

I know that Safari and javascript have their issues, but it's truly schizo...shows whichever slides it wants - I sat through 5 run-throughs and every time it showed a different selection!

Mozilla still has the slides jumping from one side of the screen to the other as the fades occur - very hard to watch.

What I need to know (before going off to look for yet another javascript that might work better) is - can anyone see a tweak or two in the code that might cure some of the above? Is the code the problem or are the browsers the problem?

One of these days, I'm really going to have to learn to write my own javascript....along with a few million other things! Right now I only know enough to be dangerous!  wacko.gif
"If computers get too powerful, we can organize them into committees. That'll do them in." ~Author unknown •iMac 5K, 27" 3.6Ghz i9 (2019) • 16" M1 MBP(2021) • 9.7" iPad Pro • iPhone 13

Offline Paddy

  • Administrator
  • TS Addict
  • *****
  • Posts: 13797
    • View Profile
    • https://www.paddyduncan.com
Javascript weirdness
« Reply #2 on: July 16, 2003, 09:26:02 AM »
And continuing the habit of talking to myself...never mind. wink.gif

I found another script - MUCH simpler and it also has a manual option. No cross-fades, but since that may have been what was causing the problem, we'll stick to the KISS principle.

Check it out now, if you wish. It seems to work in EVERY browser...except Opera. But I am not going to worry about that, since I'm probably the only person in North Andover with it installed.

http://www.northandover.k12.ma.us/Sargent/Tour.html
"If computers get too powerful, we can organize them into committees. That'll do them in." ~Author unknown •iMac 5K, 27" 3.6Ghz i9 (2019) • 16" M1 MBP(2021) • 9.7" iPad Pro • iPhone 13

Offline kps

  • TS Addict
  • *****
  • Posts: 1693
    • View Profile
    • http://
Javascript weirdness
« Reply #3 on: July 16, 2003, 10:43:41 AM »
Very nice Paddy, the effects are nice when they work... but I think not all browsers support that fully.

Know anyone with Flash? That may be the best solution...