Shouldn't be too hard, I suppose... just adding a function on the occurance of a line-break character in the inputted text... would require a bit of scripting, though.
Not my area, sorry... someone should know.
Shouldn't be too hard, I suppose... just adding a function on the occurance of a line-break character in the inputted text... would require a bit of scripting, though.
Not my area, sorry... someone should know.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
The script I posted here is now obsolete. I wrote a better version, with support for HTML tags and entities, and DD accepted it and deleted the old one.
Using the old version, it's actually fairly tricky. Using the new version, this is simple enough:Code:} else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) { this.tagBuffer += ">"; this.inTag = false; this.currentText += this.tagBuffer; this.currentChar++; if(this.tagBuffer != "<br>") this.run(); else window.setTimeout(this.run, 1000); return;
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Gah. You can ignore my post above... somehow I missed all of the posts... didn't realize there were any responses. Maybe I hadn't refreshed in a while.
Anyway, glad Twey figured it out.
//leaving now.![]()
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Code:} else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) { this.tagBuffer += ">"; this.inTag = false; this.currentText += this.tagBuffer; this.currentChar++; if(this.tagBuffer != "<br>") this.run(); else window.setTimeout(this.run, 1000); return;
This doesn't seem to work for me - I get "Error: this.element has no properties" and it stops after the first line (when it gets to the first <br>.)
Any suggestions? I'm actually trying not only to have it pause for X milliseconds after each line, but clear each line and type the next in its place, which is also proving to be finicky...
Try:Code:if(this.tagBuffer != "<br>") this.run(); else { var me = this; window.setTimeout(function(){me.run();}, 1000); }
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Hi ,
I'm sorry that my first post is asking for some thing![]()
All what I need that when the first line ends I want it to be replaced with another line then the other line with another one .....and so on for X of times , and when lines finished it's repeated again .
Can that be done ?![]()
Code:if(this.tagBuffer != "<br>") this.run(); else { var me = this; this.currentText = ""; this.currentChar = 0; window.setTimeout(function(){me.run();}, 1000); }
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
You have to explain to the OP to add this to the script rather than just replacing, correct?
- Mike
If s/he's read through the rest of the thread, s/he should know what to do.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Hi ,
Thanks alot for replying me ..
I know that I might be look like an idiot but I really didn't know what to do with the code you gave to me ..
And I really readed the whole thread many times ..
So would you please give me the full modified script code and tell me where to put my lines 1,2,3 etc...
Thanks alot ..![]()
Bookmarks