W
Wayne Stuart
Simple question...
On my website, I need to display a number on several pages, which
changes periodically. Now, rather than go through every page every
time
this number changes, is there some bit of Javascript or something that
can read some centrally set variable for this number and display it
where
needed?
For example, if I have 2 pages where one says, "There are 30 pages in
this
website", and another page says "Any one of the 30 pages in this site
will help", how can I get the "30" to appear on both without having to
change both?
Oh, and can you do maths on this number, e.g. display 30-1?
Idiots guide explanation please as I'm an absolute newbie when it
comes to Javascript.
Thanks.
On my website, I need to display a number on several pages, which
changes periodically. Now, rather than go through every page every
time
this number changes, is there some bit of Javascript or something that
can read some centrally set variable for this number and display it
where
needed?
For example, if I have 2 pages where one says, "There are 30 pages in
this
website", and another page says "Any one of the 30 pages in this site
will help", how can I get the "30" to appear on both without having to
change both?
Oh, and can you do maths on this number, e.g. display 30-1?
Idiots guide explanation please as I'm an absolute newbie when it
comes to Javascript.
Thanks.