MX

Table Of Contents
which adds an image to my website. The HTML code I add will need to reference the image file
somewhere. First I copy the image file, say "myLogo.gif", into the support folder of my document. If the
document is "mySite.web", the support folder will be "mySite_web_files". I know that when I export this
website, I will export it to the name "mysite.htm". This means that all the generated images for my site,
and a copy of "myLogo.gif" which I put in the support folder, will be exported to the folder
"mysite_htm_files". Therefore I must make the HTML code I'm inserting reference the image file in that
location. So I may insert:-
<img src="mysite_htm_files/myLogo.gif" />
Note that this references the image file in the exported image folder location (_htm_files), NOT directly in
the support folder (_web_files), because only the exported image folder gets copied to the web server
along with my web page when the site is published.
Of course if I really only wanted to put an image on my website, it's much easier to just import the image
into Web Designer MX Premium directly! But this is a simple example that shows how to add HTML
code which references an external file.
Check Embedding YouTube, Flash And Other Widgets
for more examples!
Adding code to page head
Some code needs to be inserted into the head (<head> tag) section of the exported HTML code,
instead of to the body (<body> tag) section as it is by default.
To do this, click the HTML code (head) button in the Placeholder, Website or Page tab of the Web
Properties dialog and type in or paste your code.
Placeholder objects
The placeholder object is actually included in your website and it can be shown to the visitor in some
circumstances. For example if you've added a Flash animation, if the visitors to your page do not have
Flash installed in their web browser, or if they've disabled Flash, the browser will show the placeholder
image instead.
Therefore it's sometimes a good idea to make your placeholder object more than just a black rectangle,
or an accurate image of the widget that appears on your page. You may decide to use a group as your
placeholder object, where the group includes a text message asking the visitor to install Flash so that they
can see your Flash content.
Regenerate placeholder image automatically: If this option at the bottom of the Placeholder tab
is selected, then the placeholder image gets automatically generated from the content you have added,
whenever the content changes or when you resize the placeholder object.
When you paste code or import files directly onto your page, as recommended above, this option is
selected automatically for the placeholder image that gets generated. Sometimes it's useful to turn it off
after inserting content this way, if you are happy with the preview image and no longer want it to be
re-generated if you change the content in some way.
Page 805