HRWiki:Sandbox

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Just testing)
Line 1: Line 1:
{{sandbox}}<!--You WILL get blocked from editing if you remove this line!-->
{{sandbox}}<!--You WILL get blocked from editing if you remove this line!-->
-
<div class=usermessage>Those <font color=blue><u>you have new message</u></font> things really are annoying, aren't they?</div>
+
<style>
 +
<!--
 +
.drag{position:relative;cursor:hand}
 +
-->
 +
</style>
 +
<script language="JavaScript1.2">
 +
<!--
 +
 
 +
/*
 +
Drag and Drop Script-
 +
© Dynamic Drive (www.dynamicdrive.com)
 +
For full source code, installation instructions,
 +
100's more DHTML scripts, and Terms Of
 +
Use, visit dynamicdrive.com
 +
*/
 +
 
 +
var dragapproved=false
 +
var z,x,y
 +
function move(){
 +
if (event.button==1&&dragapproved){
 +
z.style.pixelLeft=temp1+event.clientX-x
 +
z.style.pixelTop=temp2+event.clientY-y
 +
return false
 +
}
 +
}
 +
function drags(){
 +
if (!document.all)
 +
return
 +
if (event.srcElement.className=="drag"){
 +
dragapproved=true
 +
z=event.srcElement
 +
temp1=z.style.pixelLeft
 +
temp2=z.style.pixelTop
 +
x=event.clientX
 +
y=event.clientY
 +
document.onmousemove=move
 +
}
 +
}
 +
document.onmousedown=drags
 +
document.onmouseup=new Function("dragapproved=false")
 +
//-->
 +
</script>
 +
 
 +
<b class="drag">DRAG ME!</b>

Revision as of 04:59, 11 December 2005

Shortcuts:
HRW:SB
sandbox

The Sandbox is an HRWiki namespace page designed for testing and experimenting with wiki syntax. Feel free to try your skills at formatting here: click on edit, make your changes, and click 'Save page' when you are finished. Content added here will not stay permanently. If you need help editing, see Help:Editing.


<style> </style> <script language="JavaScript1.2"> </script>

DRAG ME!

Personal tools