djfox Posted July 15, 2007 Share Posted July 15, 2007 I want to create a randomizer. Some of the entries will be just plain text, some will have text with a clickable image. How do I create a randomizer that can do this? Quote Link to comment https://forums.phpfreaks.com/topic/60102-randomizer-help/ Share on other sites More sharing options...
AndyB Posted July 15, 2007 Share Posted July 15, 2007 by having the random strings contain the html code for whatever you want ... Quote Link to comment https://forums.phpfreaks.com/topic/60102-randomizer-help/#findComment-298961 Share on other sites More sharing options...
djfox Posted July 15, 2007 Author Share Posted July 15, 2007 by having the random strings contain the html code for whatever you want ... It doesn`t work. I entered in the html and I just get errors. Quote Link to comment https://forums.phpfreaks.com/topic/60102-randomizer-help/#findComment-298966 Share on other sites More sharing options...
RichardRotterdam Posted July 16, 2007 Share Posted July 16, 2007 you could build an array with html strings in it var myHelp myHelp=new Array(); myHelp[1]="your help1"; myHelp[2]="your help2"; then just random select an array Quote Link to comment https://forums.phpfreaks.com/topic/60102-randomizer-help/#findComment-299108 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.