User: user57  
  Date: 01/11/20 18:42:55

  Modified:    src/docs/common picateam.jsp
  Log:
   o randomly setting the image alignment to "left" or "right" to spice up
     things a little bit more =)
  
  Revision  Changes    Path
  1.4       +6 -5      newsite/src/docs/common/picateam.jsp
  
  Index: picateam.jsp
  ===================================================================
  RCS file: /cvsroot/jboss/newsite/src/docs/common/picateam.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- picateam.jsp      2001/11/17 04:19:12     1.3
  +++ picateam.jsp      2001/11/21 02:42:55     1.4
  @@ -36,7 +36,7 @@
            "dain.jpg"
       };
       
  -     String[] names = {
  +    String[] names = {
            "Marc Fleury, USA",
            "Scott Stark, USA",
            "Anatoly Akkerman, USA",
  @@ -74,9 +74,10 @@
       };
       
       java.util.Random random = new java.util.Random();
  -    
   %>
  +<% int select = new Float(random.nextFloat()*people.length).intValue(); %>
   <a class="link" href="/team.jsp">
  -   <img align="left" border="1" hspace="10" vspace="3"
  -        <% int select = new Float(random.nextFloat()*people.length).intValue(); %>
  -        alt="<%= names[select] %>" src="/pictures/<%= people[select] %>"></a>
  +   <img align="<%= random.nextBoolean() ? "left" : "right" %>" 
  +        border="1" hspace="10" vspace="3"
  +        alt="<%= names[select] %>"
  +        src="/pictures/<%= people[select] %>"></a>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to