Code:
<?php
echo "<script type=\"text/javascript\">function openAlert() { Dialog.alert(\"Add your <b>HTML</b> message here\", {windowParameters: {className: \"alphacube\"}})}</script>";
?>
The above mentioned solution is based on the code that you had pasted in your first posting. If you want to assign this script tag line into some variable then not much change in the syntax, have a look at the following item
Code:
$scriptLine = "<script type=\"text/javascript\">function openAlert() { Dialog.alert(\"Add your <b>HTML</b> message here\", {windowParameters: {className: \"alphacube\"}})}</script>";
or
Code:
$scriptLine = "<script type='text/javascript'>function openAlert() { Dialog.alert('Add your <b>HTML</b> message here', {windowParameters: {className: 'alphacube'}})}</script>";
I personally prefer the first notation as it clearly distinguish items with little difficulty compared to the other method
Bookmarks