Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Random Quote Script
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[SC] Random Quote Script; You can use this on anything...
Tweet Topic Started: Aug 5 2008, 12:07 PM (702 Views)
slayer766 Aug 5 2008, 12:07 PM Post #1
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
Place this wherever you want it to show up at:

Code:
 
<script type="text/javascript">
var Random_M = ["Put your Quote here","Keep adding more after for more quotes","You can have unlimited just seperate with double quotes and a comma"];
document.write(Random_M[Math.floor(Math.random()*Random_M.length)]);
</script>



Original Request: Here
Edited by Reid, Jun 15 2009, 08:22 PM.
Offline Profile Goto Top
 
Moon Feb 28 2009, 12:01 PM Post #2
Member Avatar


Posts:
44
Group:
Member
Member
#2,307
Joined:
Feb 12, 2009
Coding language
HTML/CSS
This is great! I used it as a news ticker or flasher(I forget what it's called). I think my users will love it.

Is there a way to make it show images?
Posted Image
Love Animals? Click here!
Offline Profile Goto Top
 
tangbangnho Mar 31 2010, 02:13 PM Post #3
Member Avatar


Posts:
24
Group:
Member
Member
#3,752
Joined:
Mar 27, 2010
"Put your Quote here" : Is that input the text of quote bbcode ?

I creat a new Upper Main Section at the Portal Content Manager,write Block Title , choose HTML option , post your script in to the input content text area .

I did , but I don't see any thing . Maybe was wrong ! Posted Image

Can you show me how to use this code ? Posted Image
Edited by tangbangnho, Mar 31 2010, 02:39 PM.
Two shall be as one , always protects , always trusts , always love Posted Image
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 7:51 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy