Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Suggestions/Bug Reports.
Acmlm's Board - I2 Archive - Suggestions/Bug Reports - Javascript allowed? | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Emptyeye
I am a real American!
Real American
Level: 67

Posts: 43/2273
EXP: 2488421
For next: 104451

Since: 05-24-04
From: I DUNNOOOOOOOO!!

Since last post: 9 hours
Last activity: 4 hours
Posted on 05-28-04 04:31 AM Link | Quote
Okay, you may recall that I posted something on the programming board about making an EXP bar. I've got that, as several of my posts here attest to. This is not one of those posts.

My question basically pertains to the use of Javascript. Is it even allowed here? I have some simple operators to do what I want (Mathematical operations with some of the variables here) to present a convincing "enemy" bar. The problem is that the script doesn't seem to work at all. So I'm wondering if it was disabled for security reasons (I may have heard something to that effect). If you're curious, the script is as follows:
<script type="text/javascript" language="JavaScript">
{
var enemypercent = (4957 / 50);
var enemyleft = ((5000 - 4957) /50);
}
</script>

It fills in the numbers okay, but doesn't process them from what I can tell.

Thanks!
Cellar Dweller

Flurry
!!!
Level: 27

Posts: 55/269
EXP: 107817
For next: 8342

Since: 03-15-04
From: Arkansas

Since last post: 16 days
Last activity: 34 min.
Posted on 05-28-04 09:15 AM Link | Quote
Scripts are automaticly removed. Allowing scripts makes it easy to steal accounts and perform other mischief. I can think of a couple ways to sneak a script into a post, but they would not work too well for what you are trying to do and there may already be countermeasues in place for them.
Emptyeye
I am a real American!
Real American
Level: 67

Posts: 47/2273
EXP: 2488421
For next: 104451

Since: 05-24-04
From: I DUNNOOOOOOOO!!

Since last post: 9 hours
Last activity: 4 hours
Posted on 05-28-04 09:19 AM Link | Quote
Understood. Thanks.

Looking in the profiles, there's that bar that I presume measures how close you are to 5000 posts. That's pretty much EXACTLY what I want to do (Except in reverse)...the problem is that viewing the source doesn't let me see exactly what he does to make it (Unless I'm just too stupid to figure it out), just what the end result is.

If I could remember what happened to make that take place, I could actually put the second bar underneath HP and everything would be great.
Vystrix Nexoth

Level: 30

Posts: 156/348
EXP: 158678
For next: 7191

Since: 03-15-04
From: somewhere between anima and animus

Since last post: 3 days
Last activity: 2 days
Posted on 05-28-04 03:11 PM Link | Quote
those bars are generated server-side, using PHP. only the end result (image widths, etc) is sent to the client.

you could, if you were so inclined, do something similar, if you have PHP-enabled hosting available, and link it in as an image. as far as any client (or, more to the point, the board) is concerned, it's just an ordinary image; no security risk.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 819/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 05-30-04 09:49 AM Link | Quote
So, what you want is a bar that goes down as you get closer to 5000?

Test...
Nah, that didn't work. Maybe you can convince Acmlm to add a "percent of 5000" variable.


(edited by HyperHacker on 05-30-04 12:49 AM)
(edited by HyperHacker on 05-30-04 12:50 AM)
Emptyeye
I am a real American!
Real American
Level: 67

Posts: 67/2273
EXP: 2488421
For next: 104451

Since: 05-24-04
From: I DUNNOOOOOOOO!!

Since last post: 9 hours
Last activity: 4 hours
Posted on 05-30-04 10:42 AM Link | Quote
Hmm...I thought I posted that I mooched my old code of Acmlm? That must've been the other thread.

Anyway, I have it now. Without getting too deep into the nitty gritty, the solution involves putting the table with the bars inside of another table. How precisely that works, frankly, even I'm not quite sure, but it does.
Kasumi-Astra
Administrator
Level: 62

Posts: 415/1867
EXP: 1971846
For next: 12840

Since: 03-15-04
From: Reading, UK
Uni: Sheffield, UK

Since last post: 1 day
Last activity: 12 hours
Posted on 06-03-04 04:56 AM Link | Quote
The one I made uses the &tags&.

You can use a table with cells whose width is dependent on &exppct& and &exppct2& (this would give for me 76.3 and 23.7 respectively). They give you the percentage of the level you've completed so far and the percentage remaining on that level. Check out FAQs for other &tags&


(edited by Kasumi-Astra on 06-02-04 07:57 PM)
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Suggestions/Bug Reports - Javascript allowed? | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.006 seconds.