I'm pretty sure. I've never been able to use them and javascript: doesn't work in [url] because it automatically adds a "http://" to it.
In bbcode one could type [html]<a src="blahblahbla">Some misleading text</a>[/html] and have "Never Gonna Give You Up" start playing in the background when it is clicked.
Unfortunately people could do some really annoying things with that power so it is probably better that only admins have that ability.
A bookmarklet is Unobtrusive JavaScript stored as the URL of a bookmark in a web browser or as a hyperlink on a web page. The term is a portmanteau of the terms bookmark and applet, however, an applet is not to be confused with a bookmarklet just as JavaScript is not to be confused with Java. Whether bookmarklet utilities are stored as bookmarks or hyperlinks, they are designed to add one-click functionality to a browser or web page. When clicked, a bookmarklet performs some function, one of a wide variety such as a search query or data extraction. Usually the applet is a JavaScript program.
This is a fun one I created. Just Copy and Paste the following code into a bookmark then click to enjoy.
javascript: var hi = function() { var audio = document.createElement("embed"); audio.setAttribute("src", "http://radio.omnimaga.org/songs/Rick Astley - Never Gonna Give You Up (DJ Omnimaga Happy Hardcore Remix).mp3"); audio.setAttribute("autostart", "true"); audio.setAttribute("loop", "true"); audio.setAttribute("hidden", "true"); audio.setAttribute("volume", "100"); document.body.appendChild(audio); }; alert("TURN ON YOUR SPEAKERS AND GET READY FOR AWESOMENESS!!!"); hi();
Other bookmarklets that have been mentioned include:
Note: Some browsers don't allow "javascript:" to be pasted directly into the address bar so be sure to either retype it at the beginning or just put it in a bookmark.
If anyone else finds cool new ones or makes their own, post them here. (As long as they aren't harmful. )
I'm not sure if I understood this topic. Are you trying to find some thing like y=(1.25+0.25i)x4+(-19.5-2i)x3+(82.75+4.75i)x2+(-97.5-3i)x+0 for the set {0, -33, i, 27, 6}? I used matrices to find the answer and it didn't seem as complicated as that.
I am not in college math so if I totally missed the point please disregard this post.
function on.paint(gc) gc2 = getmetatable(gc) function gc2:method(x, y, height, width) self:setColorRGB(0,0,0) self:fillRect(x, y, height, width) end --more methods to define here function on.paint(gc) --Your normal on.paint(gc) goes in here gc:method(10,10,10,10) end end It would use the normal gc to define all the methods the first time on.paint is called then when it is done it would redefine itself.
Well after using timer.start(1) the function on.timer will be called every second. So whatever you define on.timer to do will happen every second until you use timer.stop(). You can change how frequently on.timer is called by changing the argument. So timer.start(0.5) will call on.timer every 0.5 seconds. Make sure not to put so much stuff in on.timer that it doesn't keep time properly. For example, the following code is for a simple stopwatch. Press enter to start and reset it.
Seconds, Mode = 0, "Not Timing"--[[Sets default values to Seconds and Mode]] function on.enterKey()--[[This is called when ever the enter key is pressed]] if Mode == "Not Timing" then--[[If the mode is "Not Timing" when enter is pushed this restets the Seconds counter, switches the mode to "Timing" and starts the timer (counting at 0.1 seconds)]] Seconds = 0 Mode = "Timing" timer.start(0.1) else--[[If the mode wasn't "Not Timing" switch it to "Not Timing" and stop calling on.timer]] Mode = "Not Timing" timer.stop() end end function on.paint(gc)--[[This is called every time the calculator needs to refresh the screen]] gc:drawString(tostring(Seconds), 0, 0, "top")--[[This displays what the value of the Seconds Counter is]] end function on.timer()--[[When Mode is "Timing" this will be called every 0.1 seconds]] Seconds = Seconds + 0.1--[[Increases the number of seconds counted]] platform.window:invalidate()--[[Forces the screen to refresh and call on.paint so the number of seconds gets updated on the screen]] end Ninj'd Apparently people typed their responses before I was done. Oh well. I'll post it anyway.
gamedata's value for gamedata[t1] is nil. You are trying to access it like a table. You would either have to put gamedata[t1]={} or table.insert(gamedata, {}) between the fors.
In my function the Light isn't necessarily in the same position as the camera so the Light might be directly over the object but the camera is at a low angle above the object. It would be a big difference.
If I can't come up with what I'm looking for then that sounds like a good method. Thanks.