Results 1 to 15 of 15
Thread: php...
Hybrid View
-
13th May 2008 17:35 #1Registered User
Join Date: Nov:2007
Location:
Posts: 12
php...
photoshop-bg.com , .10
-
13th May 2008 18:44 #2
-
13th May 2008 18:44 #3
, - HTML Javascript. :
- Javascript Noscript.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>
.
-
13th May 2008 23:37 #4Registered User
Join Date: Nov:2007
Location:
Posts: 12
. HTML . : -> . , . javascript , . .
.. , .
-
14th May 2008 01:48 #5
JavaScript . PHP , PHP. PHP ? , - , ... ?
-
14th May 2008 14:07 #6Registered User
Join Date: Nov:2007
Location:
Posts: 12
JavaScript . . .
-
14th May 2008 15:09 #7
Join Date: Sep:2005
Location: Sofia
Posts: 18,517
.
HTML. . .
- . , . - , .Last edited by vvvlado; 14th May 2008 at 15:15.
-
14th May 2008 15:43 #8
-
14th May 2008 17:17 #9Registered User
Join Date: Nov:2007
Location:
Posts: 12
, javascript. html , php. .
-
14th May 2008 17:20 #10
, PHP. 1-2 . . :
... .photoshop-bg.com , .10
-
14th May 2008 17:31 #11Registered User
Join Date: Nov:2007
Location:
Posts: 12
:
"" - " " .<div id="my_menu" class="sdmenu">
<div> <span></span> <a href="?go=gallery&cat=1"></a> <a href="?go=gallery&cat=2"></a></div>
<div> <span></span> <a href="?go=gallery&cat=3"></a> <a href="?go=gallery&cat=4"> </a> <a href="?go=gallery&cat=5"></a> <a href="?go=gallery&cat=6"></a> <a href="?go=gallery&cat=7"></a> <a href="?go=gallery&cat=8"></a> <a href="?go=gallery&cat=9"></a> <a href="?go=gallery&cat=10"></a> <a href="?go=gallery&cat=11"> </a> <a href="?go=gallery&cat=12"></a></div>
<div class="collapsed"> <span></span> <a href="?go=gallery&cat=13"> </a> <a href="?go=gallery&cat=14">Dj+</a> <a href="?go=gallery&cat=15"></a> <a href="?go=gallery&cat=16"></a> <a href="?go=organization"></a> <a href="?go=gallery&cat=18"> </a> <a href="?go=gallery&cat=19"></a></div>
<div> <span></span> <a href="?go=gallery&cat=20"></a> <a href="?go=gallery&cat=21"></a></div>
</div>
-
14th May 2008 17:58 #12
"" "?menu=dresses" php :
. "". .PHP Code:<?php
if(@strip_tags($_GET["menu"] == "dresses")) {
$cat_nums = array(1 => "1", "2");
$cat_names = array(1 => "", "");
$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.
-
14th May 2008 18:58 #13Registered User
Join Date: Nov:2007
Location:
Posts: 12
, .
-
14th May 2008 19:44 #14
-
15th May 2008 09:41 #15
Love_Lorn, , "" CSS "current".
PHP Code:<?php
$cat = (int)$_GET["cat"];
if(@strip_tags($_GET["menu"] == "dresses")) {
$cat_nums = array(1 => "1", "2");
$cat_names = array(1 => "", "");
$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 ""; */
}
?>




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in