-
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.
-
-
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
-
-
-
-
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
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks