aboutsummaryrefslogtreecommitdiffstats
path: root/SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js
diff options
context:
space:
mode:
Diffstat (limited to 'SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js')
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js b/SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js
new file mode 100644
index 0000000..b30c730
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js
@@ -0,0 +1,28 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost.
+ */
+
+function CreateInfoButton(elementOrID, spec)
+{
+ var flipElement = elementOrID;
+ if (elementOrID.nodeType != Node.ELEMENT_NODE) {
+ flipElement = document.getElementById(elementOrID);
+ }
+ if (!flipElement.loaded) {
+ flipElement.loaded = true;
+ while (flipElement.firstChild) {
+ flipElement.removeChild(flipElement.firstChild);
+ }
+
+ var onclick = spec.onclick || null;
+ try { onclick = eval(onclick); } catch (e) { onclick = null; }
+
+ flipElement.object = new AppleInfoButton(flipElement, document.getElementById(spec.frontID), spec.foregroundStyle, spec.backgroundStyle, onclick);
+ flipElement.object.element = flipElement;
+ }
+
+ return flipElement.object;
+}