/    Sign up×
Community /Pin to ProfileBookmark

need javasript that generates consecutive numbers

Adobe said this would work if I could get the javascript.

I am looking to create a group of illustrator templates (Specifically, 18 different) that have basically a line of text (which would be a style number) that will update every time the template is used. I think the style number can be a variable in the template and be connected to a javascript. The javascript would change the style number each time the template was launched. For example, we would like to create a spec sheet for different elastic designs. The style number would be EL0001 on the first spec sheet. The next time the template is used the style number would automatically be EL0002, etc. I am looking for someone who knows how to write the script that can do this.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@IceMetalPunkFeb 22.2004 — Hi-

I don't know about the style sheets and stuff, but to create the next number, add this to whatever it is that tells the computer what to do when the style sheet is used (it is body onload in javascript):

[code=php]d++[/code]

and then make it where whem you use it for the first time, d=0. I don't know if this is what you are looking for, but I think it will help you understand anyway.

-IceMetalPunk
×

Success!

Help @sovell spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...