This example demonstrates dynamic JavaScript in your plugin. See the source of the plugin file example.dynamic.php for details.
Select a background color, using URL parameter:
<?php define('INC','example,example.dynamic'); include_once '../inc/inc.php'; $example_plugin = 'none'; $title = 'Dynamic JavaScript'; inc();?> <p>This example demonstrates dynamic JavaScript in your plugin. See the source of the plugin file <tt>example.dynamic.php</tt> for details.</p> <div class="colored_back"> <script type="text/javascript"> <!-- show_color(); //--></script> </div> <p><br />Select a background color, using URL parameter:</p> <ul> <li><a href="im-dynamic-js.php">im-dynamic-js.php</a> - Lime</li> <li><a href="im-dynamic-js.php?color=yellow">im-dynamic-js.php?color=yellow</a> - Yellow</li> <li><a href="im-dynamic-js.php?color=red">im-dynamic-js.php?color=red</a> - Red</li> </ul>