Results 1 to 15 of 15

Thread: php...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Nov:2007
    Location:
    Posts: 12

    php...

    photoshop-bg.com , .10

  2. #2
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    , ? ?

  3. #3
    Undead user Oldman's Avatar
    Join Date: Oct:2003
    Location: outside
    Posts: 432
    , - HTML Javascript. :
    HTML Code:
    <ul> 
     <li> 
       <a href="address1">Item1</a>
     </li>
     <li> 
       <a href="address2">Item2 </a>
     </li>
     <li> 
       <a href="addressN">ItemN </a>
     </li>
    </ul>
    - Javascript Noscript.
    .

  4. #4
    Registered User
    Join Date: Nov:2007
    Location:
    Posts: 12
    . HTML . : -> . , . javascript , . .

    .. , .

  5. #5
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    JavaScript . PHP , PHP. PHP ? , - , ... ?

  6. #6
    Registered User
    Join Date: Nov:2007
    Location:
    Posts: 12
    JavaScript . . .

  7. #7

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517
    .
    HTML. . .
    - . , . - , .
    Last edited by vvvlado; 14th May 2008 at 15:15.

  8. #8
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    Quote Originally Posted by vvvlado View Post
    .
    HTML. . .
    - . , . - , .
    . , . , php... - "menu=about" => /. - AJAX, HTML. PHP, - .

    .. JavaScript - CSS/HTML .

  9. #9
    Registered User
    Join Date: Nov:2007
    Location:
    Posts: 12
    , javascript. html , php. .

  10. #10
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    , PHP. 1-2 . . :

    photoshop-bg.com , .10
    ... .

  11. #11
    Registered User
    Join Date: Nov:2007
    Location:
    Posts: 12
    :
    <div id="my_menu" class="sdmenu">
    <div> <span></span> <a href="?go=gallery&amp;cat=1"></a> <a href="?go=gallery&amp;cat=2"></a></div>
    <div> <span></span> <a href="?go=gallery&amp;cat=3"></a> <a href="?go=gallery&amp;cat=4"> </a> <a href="?go=gallery&amp;cat=5"></a> <a href="?go=gallery&amp;cat=6"></a> <a href="?go=gallery&amp;cat=7"></a> <a href="?go=gallery&amp;cat=8"></a> <a href="?go=gallery&amp;cat=9"></a> <a href="?go=gallery&amp;cat=10"></a> <a href="?go=gallery&amp;cat=11"> </a> <a href="?go=gallery&amp;cat=12"></a></div>
    <div class="collapsed"> <span></span> <a href="?go=gallery&amp;cat=13"> </a> <a href="?go=gallery&amp;cat=14">Dj+</a> <a href="?go=gallery&amp;cat=15"></a> <a href="?go=gallery&amp;cat=16"></a> <a href="?go=organization"></a> <a href="?go=gallery&amp;cat=18"> </a> <a href="?go=gallery&amp;cat=19"></a></div>
    <div> <span></span> <a href="?go=gallery&amp;cat=20"></a> <a href="?go=gallery&amp;cat=21"></a></div>
    </div>
    "" - " " .

  12. #12
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    "" "?menu=dresses" php :

    PHP Code:
    <?php
       
    if(@strip_tags($_GET["menu"] == "dresses")) { 
          
    $cat_nums = array(=> "1""2");
          
    $cat_names = array(=> """");
          
    $cat_count count($cat_nums);
          for(
    $m 0$m <= $cat_count$m++) {
             echo 
    "<a href=\"?go=gallery&cat=".$cat_nums[$m]."\">".$cat_names[$m]."</a>";
          }
       }
          else {
             echo 
    "   !";
             
    /*      . echo ""; */
          
    }
    ?>
    . "". .

    .. :
    PHP Code:
    $cats = array("1" => """2" => "");
       foreach(
    $cats as $number => $name) {
           echo ...
       } 
    Last edited by z0ne; 14th May 2008 at 18:05.

  13. #13
    Registered User
    Join Date: Nov:2007
    Location:
    Posts: 12
    , .

  14. #14
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    Quote Originally Posted by Love_Lorn View Post
    , .
    . - .

  15. #15
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    Love_Lorn, , "" CSS "current".
    PHP Code:
    <?php
       $cat 
    = (int)$_GET["cat"];
       if(@
    strip_tags($_GET["menu"] == "dresses")) { 
          
    $cat_nums = array(=> "1""2");
          
    $cat_names = array(=> """");
          
    $cat_count count($cat_nums);
          for(
    $m 0$m <= $cat_count$m++) {
             echo ((
    $cat == $cat_nums[$m]) ? "<a href=\"?menu=dresses&go=gallery&cat=".$cat_nums[$m]."\" class=\"current\">".$cat_names[$m]."</a>" "<a href=\"?menu=dresses&go=gallery&cat=".$cat_nums[$m]."\">".$cat_names[$m]."</a>");
          }
       }
          else {
             echo 
    "   !";
             
    /*      . echo ""; */
          
    }
    ?>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |