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? 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 ... 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. 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 Link to comment https://forums.phpfreaks.com/topic/60102-randomizer-help/#findComment-299108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.