The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Javascript Code
Posted by: A | April 6, 2011 @ 2:27pm
Javascript Code
[
Download
]
// JavaScript Document //Font setup var font = "Georgia"; var color = "White"; var bodyText; function init() { document.body.style.width = 600; document.body.style.height = 200; } document.onreadystatechange = function() { if(document.readyState=="complete") { System.Gadget.settingsUI = "settings.html"; System.Gadget.onSettingsClosed = settingsClosed; loadSettings(); } }; function settingsClosed(event) { if(event.closeAction == event.Action.commit) { loadSettings(); } } function loadSettings() { var qoute = System.Gadget.Settings.read("qoute"); if(qoute !== "") { showQoute(qoute); } else { Background.addTextObject("Could not read settings from loadSettings() function.", font, color ,0, 0); } } function showQoute(qoute) { Background.addTextObject(qoute, font, color, 0, 0) }
Syntax Highlighting
[
Open in new window
]
Author Comments
"An error has occurred in the script on this page."
Line: 39
Char: 9
Error: Type mismatch
Code: 0
Rating
3.93 / 8
144 Votes
http://codebin.yi.org/1207
page generated in 0.00 seconds