| Adding javascript in place of a widget icon -
18-06-2006, 02:06 PM
Hello All,
We are using eSupport along with a livesupport tool from a different vendor. We would like to add our Live Support icon to the main widget page and have the Live Support icon update as we are on/offline (using the javascript below). We are using a livesupport tool from a different vendor.
I can't figure out how to add in the javascript code to the widget file. This is obviously due to my ignorance of php. Can someone suggest how to get the following code into the following widget code?
<script language=JavaScript src="http://www.domain.com/livesupport/als.aspx?d=2"></script>
$_widgets[MODULE_NEWS]["icon"] = SCRIPT NEEDS TO GO HERE I ASSUME;
$_widgets[MODULE_NEWS]["title"] = "Live Support";
$_widgets[MODULE_NEWS]["description"] = "Get Quick Live Support";
$_widgets[MODULE_NEWS]["link"] = "";
Thank in advance!! |