Forum Moderators: open

Message Too Old, No Replies

Links to DHTML Script?

Is it possible?

         

Acternaweb

8:42 pm on Oct 3, 2003 (gmt 0)

10+ Year Member



I have a dhtml script I would like to include on page on my site, but don't want to have the code on the page (long story). Is it possible to link to a dhtml script and make it so no one can view the source?

tedster

9:36 pm on Oct 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Link? Sure, if you mean put it in external files and link them from the head section. You may need to pull the CSS parts out and put them in an external .css file, and then the javascript parts go in a .js file.

Hide the source? Not really. If it's working on the client machine, then the client has a copy of your code on their hard drive. Javascript and CSS (the components of what is called DHTML) are both client-side implementations.