Ok let me come with something.
Ok here it is:
I call it: Welcome to JCGs whore house. Frickin she wouldnt give me her pic but recommended and gave me all these other names and pictures.
<html>
<head>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6/prototype.js'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/scriptaculous.js?load=effects,
dragdrop,builder'></script>
<script>
var onhand = 100;
var balance = 500;
var zindex = 1;
window.onload = startPage;
var whore_d = {}; //ignore
var whores_available = ['JC', 'Annabeth', 'joanna', 'Georgina', 'vin', 'Noit', 'Rambo', 'zack'];
var whore_pic = {
'JC': 'http://neocodex.us/forum/uploads/profile/photo-thumb-25200.jpg',
'Annabeth': 'http://neocodex.us/forum/uploads/profile/photo-thumb-27702.jpg',
'joanna': 'http://neocodex.us/forum/uploads/profile/photo-thumb-27956.jpg',
'Georgina': 'http://neocodex.us/forum/uploads/profile/photo-thumb-26851.jpg',
'vin': 'http://neocodex.us/forum/uploads/profile/photo-thumb-28838.jpg',
zack: 'http://neocodex.us/forum/uploads/profile/photo-thumb-29065.jpg',
Rambo: 'http://neocodex.us/forum/uploads/profile/photo-thumb-25757.jpg',
Noit: 'http://neocodex.us/forum/uploads/profile/photo-thumb-12.jpg'
}
whore_used_says = ['Ooooo baby...','*hyperventilates*','More baby more!!!!','In the ass baby in the ass!!!'];
function startPage() {
$('cash').innerHTML = '$' + onhand;
$('balance').innerHTML = '$' + balance;
alert('Whoring commence...');
var dropFunc = function (dragged, dropped, event) {
whore_d[dragged.id].options.revert = false;
alert(dragged.id + ' says:\n\nWee baby let\'s play!! Poke me in my special parts!!');
}
//Droppables.add('jcg_house',{onDrop:dropFunc});
Effect.Shake = function (element) {
element = $(element);
var options = Object.extend({distance: 20, duration: 0.5}, arguments[1] || {});
var distance = parseFloat(options.distance);
var split = parseFloat(options.duration) / 10;
var oldStyle = {top: element.getStyle("top"), left: element.getStyle("left")};
return new (Effect.Move)(element, {x: distance, y: 0, duration: split, afterFinishInternal: function (effect) {new (Effect.Move)(effect.element, {x: - distance * 2, y: 0, duration: split * 2, afterFinishInternal: function (effect) {new (Effect.Move)(effect.element, {x: distance * 2, y: 0, duration: split * 2, afterFinishInternal: function (effect) {new (Effect.Move)(effect.element, {x: - distance * 2, y: 0, duration: split * 2, afterFinishInternal: function (effect) {new (Effect.Move)(effect.element, {x: distance * 2, y: 0, duration: split * 2, afterFinishInternal: function (effect) {new (Effect.Move)(effect.element, {x: - distance, y: 0, duration: split, afterFinishInternal: function (effect) {effect.element.undoPositioned().setStyle(oldStyle);if(typeof(options.afterFinish)=='function'){options.afterFinish()}}});}});}});}});}});}});
}
}
function hireWhore() {
if (whores_available.length == 0) {
alert('Sorry, all our whores are currently in use. =(');
return;
}
var whore_cost = 50;
if (onhand < whore_cost) {
alert('Get out! Each whore costs $' + whore_cost + '!');
return;
}
var whore = document.createElement('img');
whore.setStyle({
'display': 'none',
'cursor': 'pointer',
position: 'absolute',
'z-index': zindex
});
zindex++;
var whore_number = Math.floor(Math.random() * whores_available.length);
whore.id = whores_available[whore_number];
whore.src = whore_pic[whores_available[whore_number]];
whores_available.splice(whore_number, 1); //remove whore from available list
//ignore this
var revFunc = function (element, top_offset, left_offset) {
alert(element.id + ' says:\n\n:\'(!!! Take me home take me home!!!!');
var dur = Math.sqrt(Math.abs(top_offset ^ 2) + Math.abs(left_offset ^ 2)) * 0.02;
new Effect.Move(element, {
x: -left_offset,
y: -top_offset,
duration: dur,
queue: {
scope: '_draggable',
position: 'end'
}
});
}
//end ignore
var endFunc = function (elId) {
if (Position.within($('jcg_house'), $(elId).cumulativeOffset()[0], $(elId).cumulativeOffset()[1])) {
whore_d[elId].options.revert = false;
whore_d[elId].destroy();
$(elId).observe('mousedown', function () {
Effect.Shake(elId,{afterFinish:function(){alert(elId + ' says:\n\n'+whore_used_says[Math.floor(Math.random() * whore_used_says.length)])} });
});
alert(elId + ' says:\n\nWee baby let\'s play!! Poke me in my special parts!!');
}
}
var dragOptions = {
starteffect: null,
endeffect: null,
revert: true,
reverteffect: revFunc,
onEnd: function () {
endFunc(whore.id)
}
}
whore_d[whore.id] = new Draggable(whore, dragOptions);
$('whore_house').appendChild(whore);
whore.appear();
onhand = onhand - whore_cost;
$('cash').innerHTML = '$' + onhand;
$('cash').highlight();
}
function playWithWhore(whoreTarget) {
whoreTarget.shake();
}
function deposit() {
var amt = prompt('Deposit how much?', '');
if (!amt || amt <= 0) {
alert('Transaction cancelled');
return;
}
if (isNaN(amt)) {
alert('Are you stupid? Thats not a number');
return;
}
amt = parseFloat(amt);
if (amt > onhand) {
alert('You don\'t have that much money');
return;
}
balance = balance + amt;
onhand = onhand - amt;
$('cash').innerHTML = '$' + onhand;
$('balance').innerHTML = '$' + balance;
$('cash').highlight();
$('balance').highlight();
}
function withdraw(quick) {
if (quick >= 1) {
var amt = quick;
} else {
var amt = prompt('Withdraw how much?', '');
}
if (!amt || amt <= 0) {
alert('Transaction cancelled');
return;
}
if (isNaN(amt)) {
alert('Are you stupid? That\'s not a number');
return;
}
amt = parseFloat(amt);
if (amt > balance) {
alert('You don\'t have that much money');
return;
}
balance = balance - amt;
onhand = onhand + amt;
$('cash').innerHTML = '$' + onhand;
$('balance').innerHTML = '$' + balance;
$('cash').highlight();
$('balance').highlight();
}
</script>
</head>
<body>
<span id="whore_house" style="border:1px solid steelblue; height:200px; width:200px; display:inline-block;">Welcome to JCG's whore house<br><a href="#" onclick="hireWhore()">Hire Whore</a></span>
<span id="jcg_house" style="border:1px solid steelblue; height:200px; width:200px;display:inline-block;">Welcome to JCG's house<br><small>Click on the whore you would like to bang</small></span>
<br><br>
<span id="bank" style="border:1px solid black; width:200px; height:200px; display:inline-block;">
Bank<br>
On Hand:<span id="cash">a</span><br>
Balance:<span id="balance">a</span><br>
<a href="#" onclick="withdraw()">Withdraw</a><br>
<a href="#" onclick="withdraw(50)">Quick Withdraw</a><br>
<a href="#" onclick="deposit()">Deposit</a><br>
</span>
</body>
</html>