Inserting Scripts into Your Web Pages

Using the Script module you can insert ready code snippets in your web pages. You can use this module to:

Plesk Sitebuilder allows you to add any code written in any scripting or other language into the Script module: HTML, DHTML, XML, PHP, ASP, SSI, Perl/CGI, JavaScript, Java applets, and many more. You can find all kinds of third party scripts on popular webmaster's resources available on the Internet.

The scripts will work correctly in case the publishing server is configured accordingly. Study the Readme files for the script you wish to add, and compare the requirements to those of the Plesk Sitebuilder publishing location. If there are some additional requirements imposed by your scripts, contact your Plesk Sitebuilder provider for assistance.

To insert a script into you web page:

  1. Go to the Edit step.
  2. In the Modules area, click the Script Script module icon and keeping the left mouse button pressed drag the icon to the desired location on the page.

    To insert the module in the beginning of the page, double the click the module title in the Modules area.

  3. Click Properties on the title bar of the Script module.
  4. In the Script text box, replace the default text with the code of your script.

    For example, to insert a video clip from YouTube, copy the piece of HTML markup that accompanies the clip and paste it to the Script module editor.

  5. Click OK.

To incorporate a web page created in some other program into your Plesk Sitebuilder site, copy the source code of the desired page and paste it into the Script module as described above.

Note: 1. Scripts cannot be executed on site preview. To check the script operation, publish the site and proceed to the corresponding page.

2. Some scripts may require that you upload some additional content in your site home directory. If you have no access credentials for the publishing location, or do not have enough permissions for uploading content, contact your hosting provider for assistance.