Runescape Experience Script

Mar 7, 2007

This was a script made by me, most of it. This was a runescape experience table, of course, in runescape.

<script>
<!--
document.close();
document.open();
document.writeln('<PRE>');

points = 0;
output = 0;
minlevel = 2;
maxlevel = 200;

for (lvl = 1; lvl <= maxlevel; lvl++)
{
points += Math.floor(lvl + 300 * Math.pow(2, lvl / 7.));
if (lvl >= minlevel)
document.writeln('Level ' + (lvl) + ' - ' + output + ' xp');
output = Math.floor(points / 4);
}

document.writeln('</PRE>');
document.close();
</script>

View 2 Replies


ADVERTISEMENT

Does Anyone Have Experience To Copy Div Content To Another Div?

Sep 19, 2004

As far as I get for now, NS works better than IE, it is unexpected result.

What I am trying to do is append content of one div to another one, under IE, I know there is a simple but not standard way -- innerHTML, one issue to me now is it would not run code in javascript in the content. Another way is looping through the source div and create element and attribute on the destiny div, it works unblievable great under NS, js code in the content runs very well. But it doesn't work under IE, it stops right here

for(var i=0; i &lt; sourcenode.attributes.length; i++){
destnode.setAttribute(sourcenode.attributes[i].nodeName,sourcenode.attributes[i].nodeValue);
...}

when it goes through attribute, id="..." and class="..." fine, and stops at style="width:300px", the error is "member not found".

View 3 Replies View Related

Experience Generator Not Working?

Oct 1, 2010

I decided to make an Experience Generator for my site. I started simple by making one that uses a prompt. First it prompts for your level, then it multiplies it by using a random number function. This code below.

<html>
<head>
<title>Experience Generator</title>
<script type="text/javascript">

[Code]....

BUT this code pulls up and error at the line of var B.. What I am trying to do is pass the form to the var B and then goes on from there to do the Experience Generator.

View 19 Replies View Related

JQuery :: Session Pre-AJAX Experience?

Jun 29, 2009

Does anyone know if there is going to be a jQuery workshop the day before AJAX experience in Boston on September 14-16th, 2009?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved