![]() |
|
|
#1 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
Calling Javascript Guru's
Not normally a big fan of Javascript, however after a customer refuse's to budge im going to have to work with it! This has also made me think about it in wider way as well.
My problem: I need a script that scrolls text across a fixed width div. It needs to be in a .js file, to reduce loading times. My questions/thoughts, how well is javascript supported by various browsers. Also what are the implications of it in terms of W3's standards including Accessibility? When I last looked into this most Javascript was IE only, however alot has happend since then (im going back to the days of IE5 and the likes!) I'm hoping in this case accessibility isn't going to be an issue as if the browser doesn't support javascript the text in the div will still remain there, just be stationary. Greatful for any help anyone can give me Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
|
|
#2 (permalink) |
|
king kong
|
what about using the good old
<marquee></marquee> thingy?
__________________
i have a cunning plan.. it is a plan as cunning as a fox who's just been appointed Professor of Cunning at Oxford University coming soon::www.givemehelp.co.uk |
|
|
|
|
|
#4 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
It works in all the latest version and IE5. But it doesn't validate in XHTML Strict
It would explain why though I couldn't find this simple function on any of the Javascript websites. So thank-you big dave for the suggestion but unfortunatly it's unsuitable for this project. So we're back to Javascript again! Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Apr 2003
Posts: 106
|
OK try
http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm I like this one http://www.dynamicdrive.com/dynamici...mikescroll.htm
__________________
old dog - anxious to learn new tricks |
|
|
|
|
|
#8 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
The second one of thoes links works how I want it too. (Script is a bit bigger than I had hoped for but never mind). It does validate, and it works in every browser I've tested it so far. Also works with text enlarge. So thank-you fbridge thats what I wanted.
It does however need another problem. If javascript is disabled doesn't work ect ect, the user then miss's out on that content. Is there a simple way around this? Or is there a simple bit of Java Script that will hide some text? This way if Javascript doesn't work then the text shows through otherwise it hid's it and displays the moving text instead. My original questions about the implications of using Java script and the browser support for it still remain open. Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|