Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Shock Wave Text

  1. #1
    Join Date
    Mar 2011
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Shock Wave Text

    I copied the code that appears on this page that is there but not working ... Can you give me a solution?
    http://www.dynamicdrive.com/dynamici.../shockwave.htm

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Please format your posts politely. It will make more people want to help you.

    This was also posted in the wrong section, so I will move it now. And in the wrong format:
    See this thread for the proper posting format when asking a question.


    This is not meant to be a complaint, but to inform you so that you can get the help you need.


    Most importantly:
    We cannot help you without a link to your page. If the demo page works, then we need to know what you did wrong (or just differently) so that we can find the problem and help you solve it.
    Please post a link to the page on your site that contains the problematic script so we can check it out.
    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

  3. #3
    Join Date
    Mar 2011
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Problem: Script:Shock Wave text

    Script: Shock Wave text
    http://www.dynamicdrive.com/dynamici.../shockwave.htm

    does not work, try copying and pasting code in a html page, and will not work

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I get a working instance of the script when I copy-and-paste.

    Please post a link to the page on your site that contains the problematic script so we can check it out.

  5. #5
    Join Date
    Mar 2011
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Script: Shock Wave text ... Does not work
    http://www.laverdadeterna.com/shock_wave_text.htm

  6. #6
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    What browser are you using? I only have FF, so I cannot see if it will work or not, but this will one work with the following:
    Quote Originally Posted by DD
    IE5+ Opr7+
    Daba! The Fantage-like website
    Virtual World in progress.
    Out of pure HTML, Javascript, and CSS. Oh, and poorly done Paint images.

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It appears to have been copied to your site correctly. But the <html> tag must go at the top of the page. I do not know if this is required for the script to work properly, but the code is now invalid HTML.
    You may also add a doctype to make the page valid, and that might help.

    This script only works in Internet Explorer and Opera, and I don't have either browser to test. Do you want a script that only works in those two browsers?


    --
    Hola! Queremos ayudarse, y por desgracia mucha gente aqui no pueden comprender español. Por eso si no se puede explicar claramente en inglés, por favor explicar en los dos, en inglés y español tambien para ayudarnos a comprenderse (porque algunos aqui pueden leer español o pueden, si és necessario, traducir para los otros).
    Pero siempre, si no escribe toda la información, no podemos ayudar nunca. Más información és siempre mejor.
    Gracias y bienvenido.
    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

  8. #8
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    hmmm... try commenting out the first two lines in the startmotor function:
    Code:
    function startmotor(p){
    // if (!document.all)
    // return
    var loop = motor(p); 
    if (window.time)
    {clearInterval(time)}
    if (klaar == tekst[s].length)
    {
    klaar = 0;
    veran = 1;
    tel = 0;
    var time = setTimeout("startmotor(" +(p+1) + ")", speed_between_messages);
    }else
    {    
    var time =setTimeout("startmotor(" +(p+1) + ")", 50);
    }
    
    }
    don't know what's going on there, but it gets it started when I try it.

    Edit:

    for clarification, when I tried it out earlier, I copied the script from the demo source code, which does not include those two lines... odd...


  9. #9
    Join Date
    Mar 2011
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    and what would be the solution??

  10. #10
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    did you try commenting out those two lines in the script?

    change this:
    Code:
    function startmotor(p){
    if (!document.all)
    return
    var loop = motor(p); 
    if (window.time)
    {clearInterval(time)}
    if (klaar == tekst[s].length)
    {
    klaar = 0;
    veran = 1;
    tel = 0;
    var time = setTimeout("startmotor(" +(p+1) + ")", speed_between_messages);
    }else
    {    
    var time =setTimeout("startmotor(" +(p+1) + ")", 50);
    }
    
    }
    to this
    Code:
    function startmotor(p){
    // if (!document.all)
    // return
    var loop = motor(p); 
    if (window.time)
    {clearInterval(time)}
    if (klaar == tekst[s].length)
    {
    klaar = 0;
    veran = 1;
    tel = 0;
    var time = setTimeout("startmotor(" +(p+1) + ")", speed_between_messages);
    }else
    {    
    var time =setTimeout("startmotor(" +(p+1) + ")", 50);
    }
    
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •