catalyst2 community forums  

Go Back   catalyst2 community forums > catalyst2 Community > General Chit-Chat

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 21-05-2004, 06:34 PM   #1 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
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
WhiskyFudge is offline   Reply With Quote
Old 21-05-2004, 11:09 PM   #2 (permalink)
king kong
 
bigdave's Avatar
 
Join Date: May 2003
Location: Just a small town in europe
Posts: 49
Send a message via AIM to bigdave Send a message via MSN to bigdave
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
bigdave is offline   Reply With Quote
Old 21-05-2004, 11:52 PM   #3 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
If i remember correctly from a few years back that only worked in certian browsers, has that changed now?
paulredpath is offline   Reply With Quote
Old 22-05-2004, 12:00 AM   #4 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
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
WhiskyFudge is offline   Reply With Quote
Old 22-05-2004, 12:17 AM   #5 (permalink)
Registered User
 
fbridge's Avatar
 
Join Date: Apr 2003
Posts: 106
Try http://javascript.internet.com/scrolls/
__________________
old dog - anxious to learn new tricks
fbridge is offline   Reply With Quote
Old 22-05-2004, 12:33 AM   #6 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Couldnt see anything there that was suitable.

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 22-05-2004, 01:21 AM   #7 (permalink)
Registered User
 
fbridge's Avatar
 
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
fbridge is offline   Reply With Quote
Old 22-05-2004, 02:03 PM   #8 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
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
WhiskyFudge is offline   Reply With Quote
Old 22-05-2004, 04:01 PM   #9 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Never mind worked it out! '<noscript>' does the job very well.

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:48 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.