|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
scrolling text
hi...i got problem here....in my system, i have a scrolling text at top of the page...however, the scrolling text is hardcoded which is i have to change the text in the source code often....so i want to do in dynamic which is user can fill in the form and upload the file (content)....then the title of the form will be the text that will be scroll at the top of the page...when user click on the scroll text, it will link to the content of the file that been uploaded by the user just now...so, i dont have to change the text in source code anymore and link it to the specific file..user will do it by themselves by fill in the form with uploding the file ...can it be done?is there any javascript souce code for this?is there any link that i can refer to?thank you
|
|
#2
|
|||
|
|||
|
Folks, there is a whole forum devoted to Javascript here at Devshed. Please ask these sorts of questions there.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
it may be easier using something like:
Code:
<marquee>blah</marquee> this gives you scrolling text and requires no javascript. you can dynamically populate it with whatever you like. hope that helped. |
|
#4
|
|||
|
|||
|
scrolling text
i already ask in javascript development forum but they ask me to ask the question in here
|
|
#5
|
|||
|
|||
|
Well then you are not explaining the problem very clearly. Can you describe in a more clear way what you want to do?
|
|
#6
|
|||
|
|||
|
scrolling text
in many homepage, we can see there are highlight news moving in front of the page....when user click on the text (news title)that are moving, they will bring direct to the content of the news....in my system, user will always upate the highlight news...so i want the authorise user upload the content (in a file save as .doc or .pdf or .htm) and fill in the form which they have to fill up the title of the news...so when they click button 'upload', automatic the title of the news will be on the homepage as moving text(marquee) and that title is in linking to the content that they save when they fill up the form....so when user click on that title of the news, they will be bring directly to the specific content that they upload before...i alredy have a form but i don't know how can i make the news moving and automatic be as a moving text at the homepage....
|
|
#7
|
|||
|
|||
|
Then yes, this is more of a Javascript question. You will need to query the database, return the titles that you want to show up in the Javascript scrolling marquee, and then dynamically create a link for each title so that when they click it, it takes them to the page for that item. I would first do this without the scrolling part, just output a list of the titles that you'll want to have show up, and make sure that the links for each of those titles work. Once that all works, moving those into a Javascript-based scrolling marquee is a totally separate issue.
All that said, I must say that I think the idea of having a scrolling list of titles is a very non-user friendly way to do it. Some people turn off Javascript. Some people will miss a title that they want to see and will have to wait for it to display again. I would simply have a sidebar with the recent titles in it and let the user click it. I assure you that no major, reputable company like Yahoo, Google, Microsoft, Sun, Oracle, etc. would use such a scrolling list of elements because of the usability problems. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > scrolling text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|