External Script file

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default External Script file

    I have the following on my html page (see below): I would like to remove all
    the area shape code onto a seperate file so the code cannot be viewed, can some
    please demonstrate how I can do this?

    <div id="main">

    <map name="id" id="id">

    <area shape="rect" coords="630,310,640,320" href="http://www.macromeida.com"
    title="name "target="_blank"/>
    <area shape="rect" coords="850,50,860,60" href="http://www.macromeida.com"
    title="name "target="_blank"/>
    <area shape="rect" coords="390,280,420,310"
    href="http://www.macromeida.com.com/click/click.php?id=44" title="name
    "target="_blank"/>
    <area shape="rect" coords="690,560,700,570" href="http://www.macromeida.com"
    title="name "target="_blank"/>

    </map>
    <img src="grid.gif" width="1000" height="1000" border="0" usemap="#id" /></div>

    </body>
    </html>Text

    csa Guest

  2. Similar Questions and Discussions

    1. Loading external action script
      Hey, I was just wondering if its possible to load and run actionscript from a text file Many thanks in advance... smile :)
    2. external lingo script editor
      new release 0.49 new features: multiple undo/redo, autoformat hi, i´m current program on an external script editor for lingo....
    3. Help Specifying an external script
      I'm having trouble setting a script to hit an external file and execute a script within the file. Initially the script was setup correctly but...
    4. Problem external linking file with script
      I am having a problem with external linking another director file that has scripting. Even when I set the "script to on" the external linked file's...
    5. Post Variables to External Script
      I am trying to find out how I can use the ASP.net framework yet still post the variables to an external script (not ASPX) after the form has been...
  3. #2

    Default Re: External Script file

    The only way to include an external html file that I know of is to include it
    through a scripting language such as PHP.

    Technically, I suppose you could write it all out with write() in a javascript
    function and then call the function where you want to create the code .. but it
    would be messy and a bit far to go just to hide some code.

    Why exactly do you need to hide the code?

    rilkesf Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139