UserGuide: Script plugin

This revision is from 2009/04/12 21:24. You can Restore it.

Script plugin provides inserting both inline and external JavaScript.

Example syntax:

{script}alert('Hello world!');{/script} 

Will obviously insert this script into the page (and therefore activate it)

{script label="Say hello!" title="Greeting" key="g"}alert('Hello world!');{/script
}

Will create link with text "Say hello!", tooltip "Greeting" and access key "g". It will activate after clicking on this link.

{script src="path_to_javascript_file.js"}{/script
}

Will insert this external JavaScript file into the page.

{script show}alert('Hello world!');{/script
}

Will do the same but also displays source code.

Most attributes can be combined freely, but their order is fixed! Order is:

src, label, title, key, show

Written by Swen Wetzel, xanatoswetzel@web.de, some minor changes made by Adam Zivner