34 lines
402 B
HTML
34 lines
402 B
HTML
<HTML>
|
|
|
|
<TITLE>Tests of random constructs</TITLE>
|
|
|
|
Hi
|
|
|
|
<SCRIPT>
|
|
|
|
var x = function dollar(selector) {
|
|
return new x.fn.init(selector);
|
|
}
|
|
|
|
x.fn = { };
|
|
x.fn.init = function dollar_init(x) {
|
|
if ((typeof x) === "function") {
|
|
x();
|
|
} else {
|
|
document.write(x);
|
|
}
|
|
};
|
|
|
|
window.$ = x;
|
|
|
|
$(function bad_guy(){
|
|
try { $(location.hash) } catch(e) {}
|
|
});
|
|
|
|
</SCRIPT>
|
|
|
|
<BR>
|
|
Welcome to our system
|
|
|
|
</HTML>
|