sestais Posted April 17, 2010 Report Share Posted April 17, 2010 Problēma tāda ka man īsti nestrāda šis skripts un es nezinu kas par vainu! Viņam vajadzētu pēc uzspiešanas pa linku parmest uz norādīto failu un to ko rādija sakumā paslēpt lai nerādas ,bet viņš parāda to info kas atrodas norādītajos failos un parāda arī to kas bija sākumā!!!! Īsti nesaprotu kāpēc tā ir varbūt kāds var palīdzēt! Bildē ir redzems kas pa problēmu. Kad uzspiežu pa vienu no bilēm parādās augšā teksts ar visām bildēm bet vajadzētu parādīties vnk tekstam bez bildēm! <style> #services { position:relative; font-size:15px; overflow:hidden; padding-left: 45px; } #services .window { background-image: url(./Images/Services/window.png); background-repeat: no-repeat; background-position: center center; width:256px; height:261px; } #services .rock { background-image: url(./Images/Services/rock.png); background-repeat: no-repeat; background-position: center center; width:256px; height:261px; }</style> <? include "./Language/language-swe.php"; ?> <?php $action = $_GET['ser']; $actions_array = array('window','rock'); if(!$action || !in_array($action,$actions_array)){ }else { if($action == 'window'){ include "./Admin/Service/posted_services_information_windows.php"; //sitas parada tekstu "windows" teksta vieta ir paredzēts ielikt skriptu! } if($action == 'rock'){ include "./Admin/Service/posted_services_information_rock.php"; //Šitas parāda tekstu "rock" teksta vieta ir paredzēts ielikt skriptu! }} //parāda 2 bildes ar kurām dodas uz linkiem norādītajiem! echo "<div id=\"services\"><table>\n"; echo "<tr><td><a href=\"./1.php?ser=window\"><div class=\"window\"></div>windows</a></td>\n"; echo "<td><a href=\"./1.php?ser=rock\"><div class=\"rock\"></div></a>rock</td></tr>\n"; echo "</table></div>\n"; ?> Quote Link to comment Share on other sites More sharing options...
waplet Posted April 17, 2010 Report Share Posted April 17, 2010 (edited) die; ieliec aiz include, ja negribi, lai neko vairs nerāda. if($action == 'window'){ include "./Admin/Service/posted_services_information_windows.php"; //sitas parada tekstu "windows" teksta vieta ir paredzēts ielikt skriptu! } elseif($action == 'rock'){ include "./Admin/Service/posted_services_information_rock.php"; //Šitas parāda tekstu "rock" teksta vieta ir paredzēts ielikt skriptu! }else{ //parāda 2 bildes ar kurām dodas uz linkiem norādītajiem! echo "<div id=\"services\"><table>\n"; echo "<tr><td><a href=\"./1.php?ser=window\"><div class=\"window\"></div>windows</a></td>\n"; echo "<td><a href=\"./1.php?ser=rock\"><div class=\"rock\"></div></a>rock</td></tr>\n"; echo "</table></div>\n"; }}?> šadi var vēl mēģināt Edited April 17, 2010 by waplet Quote Link to comment Share on other sites More sharing options...
sestais Posted April 17, 2010 Author Report Share Posted April 17, 2010 Liels paldies!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.