Posted By

kbrown on 09/28/11


Tagged

urlstring


Versions (?)

Url String - Plan Start


 / Published in: PHP
 

URL: http://snipplr.com/users/kbrown/

  1. <?php
  2. if (isset($_GET["project"])) {
  3. $finalProj = $_GET["project"];
  4. } else {
  5. $finalProj = 'kalakaua-garden';
  6. }
  7. ?>
  8.  
  9. <script type="text/javascript">
  10.  
  11. $(document).ready(function() {
  12.  
  13. currentProj = "<?php echo($finalProj);?>";
  14.  
  15. if (currentProj == 'kalakaua-garden') {
  16. $('#projectPhotos').cycle(0);
  17. $("#projectInfo").html("<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae gravida lectus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam scelerisque auctor velit mattis tempor. Vivamus sit amet velit eu arcu luctus lacinia ut accumsan nulla. Morbi et lacus sapien. Vestibulum viverra, erat vitae tincidunt pretium, nunc risus tristique est, a aliquam urna purus a ipsum. Integer non lorem lorem.</p>");
  18. clearLinks();
  19. $('#pLink1').addClass("active");
  20. } else if (currentProj == 'adam-way') {
  21. $('#projectPhotos').cycle(1);
  22. $("#projectInfo").html("<p>81 Adam Way, Dizon Residence, is a 8,500 sq. ft. French Chateau styled custom house. It includes 4 BR, 4 BA, Guest Room with bathroom, powder room, cabana, 3-car garage, luxurious kitchen, wine room, library, gallery, game room, hobby room, red oak hardwood floor with walnut accent, fireplace with marble tile surround, granite and marble slabs, elegant curved stairs, and a custom built 15' x 7'6\" skylight. This finely detailed Atherton, CA estate home features traditional style moulding details interior and exterior of the house and was completed in 1999.</p>");
  23. clearLinks();
  24. $('#pLink2').addClass("active");
  25. }
  26.  
  27.  
  28. });
  29.  
  30. </script>

Report this snippet  

You need to login to post a comment.