Results 1 to 4 of 4

Thread: Mike's DHTML scroller situation

  1. #1
    Join Date
    Jan 2011
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Mike's DHTML scroller situation

    I want to move the script to an external js file to tidy up the code and so that I can convert the page to xhtml.

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

    Default

    Please post a link to the script you are referring to. And if you need help with your specific page, you will need to post a link to your site as well.

    Generally, though, this is very easy.

    Take ALL of the content exactly as-is from between the <script......> and </script> tags. Save that as "something.js" and upload that file to your website.
    Then replace the original Javascript and script tags with this line:
    <script src="something.js" type="text/javascript"></script>

    Notes:
    1. The scripts here on Dynamic Drive require the copyright notice is maintained on the page, so please take that portion and leave it between the script tags.
    2. Make sure that the value of the SRC attribute is relative to the location of the actual JS file and the location of your page. It works just like an <img src="..."> tag.

    Please let us know if you need more help.
    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
    Jan 2011
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    http://www.dynamicdrive.com/dynamici...mikescroll.htm. My apology for not posting this script earlier.

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

    Default

    Did my reply answer your question?

    The general information should apply to that script.

    By the way, I'd recommend changing all instances of language="JavaScript" in the script tags to: type="text/javascript". That may help it validate.
    Last edited by djr33; 03-11-2011 at 10:43 PM.
    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

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
  •