User:Syko/Sandbox: Difference between revisions

From Jedi Knight Wiki | JKHub
No edit summary
 
Line 1: Line 1:
== Welcome to the Jedi Academy Wiki ==
Messing around with scripts
The Jedi Academy Wiki is a wiki, created by JKHub, about all aspects of Jedi Knight: Jedi Academy, as well as Jedi Outcast to a lesser extent. The Jedi Knight Wiki is freely editable without registration, although we do recommend registering if you edit this wiki regularly.


Please note that '''JKHub Wiki accounts are separate from accounts used to access other parts of this site''' - the wiki and the rest of the site are on a completely different database.
<!DOCTYPE html>
<html>
<body>


If you are looking for information about anything related to Jedi Academy, this is the place to be. If you have any questions, please feel free to ask on [http://jkhub.org/index/ our forum.]
<h1>My First JavaScript</h1>


If you are looking for a page to write, check out this [http://jkhub.org/wiki/index.php?title=Special:WantedPages page] for a complete list of referenced but not created articles.
<p>JavaScript can change the content of an HTML element:</p>


== Noteworthy links ==
<button type="button" onclick="myFunction()">Click Me!</button>


<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
<p id="demo">This is a demonstration.</p>
; [[JKHub:About|About]]
: A description of who we are.
; [[:Category:Tutorials|Tutorials]]
: A list of tutorials about anything Jedi Knight related.
; [[:Category:JKHub_Services|Services]]
: A list of services JKHub provides.
; [[:Category:Resources|Resources]]
: A list of external resources for tutorials, mods, and more.
; [[:Category:Active_Jedi_Academy_clans|Active Clans]]
: A list of clans that are currently active in Jedi Academy.
; [[Special:AllPages|All Pages]]
: A list of all pages on the wiki.
; [[:Category:Large_Mods|Mods]]
: A list of large mods, such as JA+ and MB2, with information about them.
; [[:Category:Modding_categories|General Modding]]
: Resources related to Jedi Academy modding in general.
; [[:Category:Gameplay|Jedi Academy Gameplay]]
: Articles pertaining to Jedi Academy's gameplay.
; [[:Category:Jedi_Academy_Server_Hosts|Server Hosts]]
: A list of server providers for Jedi Academy.
; [[:Category:Jedi_Academy_Servers|Servers]]
: A list of Jedi Academy Servers that are currently active.
</div>


<div style="clear: both"></div> <!-- prevent spillage -->
<script>
function myFunction() {
    document.getElementById("demo").innerHTML = "Hello JavaScript!";
}
</script>
 
</body>
</html>

Latest revision as of 21:17, 27 October 2014

Messing around with scripts

<!DOCTYPE html> <html> <body>

My First JavaScript

JavaScript can change the content of an HTML element:

<button type="button" onclick="myFunction()">Click Me!</button>

This is a demonstration.

<script> function myFunction() {

   document.getElementById("demo").innerHTML = "Hello JavaScript!";

} </script>

</body> </html>