Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 02-28-2010, 09:35 AM Please Help me!
amrkhan's Avatar
Novice Talker

Posts: 4
Name: AMR Khan
Trades: 0
http://www.yousite.com/index.php?1
http://www.yousite.com/index.php?2
http://www.yousite.com/index.php?3


this is a wxample of link. i don't know how is it work nut i wont make as like for my site. when i click on any catagory the first link is active and then i click on second catgary the 2nd link is active . i want teach this ,. thanks replay me amrkhan@live.com

Last edited by JeremyMiller; 02-28-2010 at 11:11 AM.. Reason: Deactivated links
amrkhan is offline
Reply With Quote
View Public Profile Visit amrkhan's homepage!
 
 
Register now for full access!
Old 03-01-2010, 02:07 AM Re: Please Help me!
The PHP Professor

Posts: 340
Name: Alex
Location: Behind You
Trades: 0
I think what you want is something similar to tabs. While one is selected the rest are not and vice versa.

You would apply the script like so(may need modification):

PHP Code:
<?php
$id 
$_GET['id'];
?>

<style>.selected{background-color:#CECECE;}</style>
<strong class="<?=($id==1?'selected':'')?>">Test 1</strong><br />
<strong class="<?=($id==2?'selected':'')?>">Test 2</strong><br />
<strong class="<?=($id==3?'selected':'')?>">Test 3</strong><br />
So you would then point your browser to something like "thisfile.php?id=1" and Test 1 would have a grey background color.
__________________
Go Kirby! <(" . "<) (^" . "^) (>" . ")> Talkupation!

Last edited by microcolt; 03-01-2010 at 02:08 AM.. Reason: Forgot the links to show :D
microcolt is offline
Reply With Quote
View Public Profile Visit microcolt's homepage!
 
Reply     « Reply to Please Help me!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77912 seconds with 12 queries