MX

Table Of Contents
that it gets exported and published with your site. When you export and publish your site, the placeholder
image is replaced by the actual file you imported.
Similarly if you've copied some HTML code from a third-party widget website, you can simply paste that
code into Web Designer MX Premium (make sure you are in the Selector Tool when you do this, not
the Text Tool
or it will be inserted as text!). Web Designer MX Premium detects the HTML and uses it to render a
placeholder image which appears on your page. You can also add a placeholder for HTML code
directly into either the body or head of a page by clicking the HTML code (body) and HTML (head)
buttons, which bring up a scrolling dialog where you can paste or edit large amounts of code, if
necessary.
When you export/publish your site the placeholder is replaced by the actual code so that your widget
functions. See the Website Widgets chapter
for more details.
Replace with Flash
Select this option to replace the placeholder object with a Flash animation. Use the Browse button to
locate the Flash (.swf) file you want to use.
The chosen file is automatically copied to the support folder for the current design, so that when you
export your website the file will be included in the _htm_files folder along with all the generated images
for your site. See the Document Handling
chapter for information about support folders.
Replace with graphic file
Select this option if you want to insert a graphic or image into your website in place of the placeholder
object (eg. a PNG, GIF or other web compatible image file). Use the Browse button to select the file.
The chosen file is automatically copied to the support folder for the current design, so that when you
export your website the file will be included in the _htm_files folder along with all the generated images
for your site. See the Document Handling chapter for information about support folders.
Replace with HTML code
With this option you can paste HTML code which you've obtained from somewhere else into the head
and/or body sections of your page; i.e., between the <body></body> tags or <head></head> tags. For
example many sites provide widgets that you can add to your page by pasting the HTML in here. Follow
the instructions given by the provider. In most cases you need to add body code only, but some widgets
also require you to include some code in the head, which is why the head code option is also provided.
As mentioned above, you can just paste the HTML code directly onto your page instead of inserting it in
this dialog (while in the Selector Tool
). And using that approach automatically gives you a placeholder image that looks just like the actual
widget, so it's the recommended way to insert widget HTML code.
Warning
: You need to be careful to insert only code which you know is safe and from a trustworthy source.
Invalid or broken code will affect your published web page because Web Designer MX Premium simply
inserts the code as you provide it, unmodified and unchecked, into your page when it is exported.
If the HTML code that you enter references external files which are expected to be found in your
website, then you need to copy those external files into the support folder for your design. See the
Document Handling
chapter for information about support folders. Once in the support folder, the files will be automatically
copied to the _htm_files folder of your website when you export. Therefore you also need to make sure
that any references to these files in the HTML code references them at the right location.
Let's take a simple example to make this clearer. Suppose I want to insert a small piece of HTML code
Page 804