turt2live

Untitled

May 16th, 2012
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. switch($id){
  2. case 1: $link1 = " class='orange'"; break;
  3. // ETC
  4. }
  5.  
  6. // Code
  7. echo "<a href=\"aPage.php\" $link1>";
  8.  
  9. // More code
  10.  
  11. /*
  12. Your CSS file would have something like this:
  13.  
  14. .orange{
  15.     background-color: orange;
  16.     // etc
  17. }
  18. */
Advertisement
Add Comment
Please, Sign In to add comment