Results 1 to 23 of 23
Thread: CSS ?
Hybrid View
-
30th May 2007 18:50 #1Registered User
Join Date: Apr:2007
Location: Sofia
Posts: 7
CSS ?
!
:
http://zapadni-ezici.info/index.php
index.php $_GET .
$_GET["s"] (s section) .
:
:Code:<?php function ChangeStyle() { switch ($_GET["s"]) { case "main" : echo ".main { background-position: 0px -84px;}"; break; case "courses" : echo ".courses { background-position: -142px -84px;}"; break; case "teachers" : echo ".teachers { background-position: -231px -84px;}"; break; case "sertificates" : echo ".sertificates { background-position: -375px -84px;}"; break; case "translations" : echo ".translations { background-position: -515px -84px;}"; break; case "links" : echo ".links { background-position: -605px -84px;}"; break; default: echo ".main { background-position: 0px -84px;}"; break; } } ?>
Code:<?php echo '<style> '; echo ChangeStyle(); echo ' </style>'; ?>
<head></head>
1. - ?
----------------------------------------------------------------------------------------------
2. $_GET["p"] (p = page)
.
.
case , .
ID- ?
?
!!!
-
31st May 2007 00:29 #2
CSS, . CSS ( - ).
, - - . - - . '' . , , ().
. (s p), - p , , ( ). - css , - , , :
<td class="button<?php if ($_GET['p']=='certificates' echo '_selected';?>">
- , , _selected, koeto .
.
-
31st May 2007 00:47 #3
. -> <a href="index.php" title="Home" class="<?=$home_cur?>">Site</a> $home_cur = "current"; - ( - Survive, ).
: . .
Last edited by z0ne; 31st May 2007 at 01:43.
-
31st May 2007 02:00 #4
-
31st May 2007 19:35 #5
-
31st May 2007 02:04 #6
1000 <title></title>,<html></html>,<head></head> ..
? (include) home.php menu.php => home.php $home_cur "selected" . tedych.
-
31st May 2007 20:00 #7
-
31st May 2007 20:15 #8
-
1st June 2007 16:40 #9
-
1st June 2007 23:16 #10Registered User
Join Date: Apr:2007
Location: Sofia
Posts: 7
, :
Javascript :
"p" URL-.Code:function getParameter(name) { var url = window.location.href; var paramsStart = url.indexOf("?"); if(paramsStart != -1){ var paramString = url.substr(paramsStart + 1); var tokenStart = paramString.indexOf(name); if(tokenStart != -1){ paramToEnd = paramString.substr(tokenStart + name.length + 1); var delimiterPos = paramToEnd.indexOf("&"); if(delimiterPos == -1){ return paramToEnd; } else { return paramToEnd.substr(0, delimiterPos); } } } }
:
selectedCode:function changeStyle() { if (getParameter('p')) { var tag = getParameter('p'); var tagClass = document.getElementById(tag); tagClass.className = "selected"; } }
"p" ID- .
-
1st June 2007 10:50 #11
, Krisko PHP, ..
, - .
<div ?
. <div> - , <table>.
.. , - - . , .
-
1st June 2007 23:56 #12
-
2nd June 2007 01:24 #13
-
2nd June 2007 01:51 #14
-
2nd June 2007 16:32 #15
-
2nd June 2007 16:41 #16
, . , host.bg - !, : SELECT * FROM... 1 , ., , . , Server Side -!
.
-
2nd June 2007 16:59 #17
-
3rd June 2007 11:22 #18
-
3rd June 2007 12:58 #19
-
3rd June 2007 13:24 #20
-
3rd June 2007 13:54 #21
, - . abv.bg . ( ) JS.

.. , "" , AJAX.
-
3rd June 2007 14:05 #22
-
3rd June 2007 16:07 #23
, zOne , , AJAX- ( ), , , .
, '' AJAX.
, JS , , , AJAX-
. .




Reply With Quote

LOG
06.05.23 ., 12:03 in