The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to use or access a javascript code once I set it up?

View previous topic View next topic Go down

How to use or access a javascript code once I set it up?

Post by Nabus on December 6th 2011, 8:20 pm

Hello I am using Javascript to write a Random number generator using:

<script type="text/javascript">
var randNum = Math.ceil(Math.random()*10);
</script>

As my code to do so.

My question is:

How do I use it?

What I want to accomplish is to create a dice roller that can be seen by all people on the same page in real time.

Do I link to it from a HTML page or place it in a tab? I know what I want to do, but I don't know how to accomplish it.

Please help

Nabus
New Member

Posts : 10
Reputation : 1
Language : English

Back to top Go down

Re: How to use or access a javascript code once I set it up?

Post by kirk on December 6th 2011, 8:25 pm

try adding it on a java page.

Admin panel>modules>

scroll all the way down the page you will see java page management right over html pages.
click on that, be sure to activate it, then create a new page and add the script.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: How to use or access a javascript code once I set it up?

Post by Nabus on December 6th 2011, 9:16 pm

Yeah I know where to put Java script. What I need to know is how to use it after it is there.

Nabus
New Member

Posts : 10
Reputation : 1
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum