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
How do i make my tab load when you load index.php?
Old 08-12-2009, 10:23 PM How do i make my tab load when you load index.php?
Experienced Talker

Posts: 47
Trades: 0
Hello,
I download a template for my website i need to know how to make it load on the homepage tab.

loading now:


What i want it to load like:


The blue image is in the css for the page, but im not sure how the links come up.
If you need any code just ask me.

Thanks.

Last edited by NextToNothing; 08-12-2009 at 10:25 PM..
NextToNothing is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-13-2009, 11:12 AM Re: How do i make my tab load when you load index.php?
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
You use CSS pseudo-class,
Code:
a:link {color:#FF0000}      /* unvisited link */
a:visited {color:#00FF00}  /* visited link */
a:hover {color:#FF00FF}  /* mouse over link */
a:active {color:#0000FF}  /* selected link */
# Edit #
Actually that might not work. Instead made a class for when the file is page is being accessed. Then with an IF function use the class. For example
PHP Code:
$currentpage 'home';

if(
$currentpage == 'home'){
echo 
'class="usingthis"';

__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE

Last edited by rogem002; 08-13-2009 at 07:35 PM..
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 08-13-2009, 11:29 AM Re: How do i make my tab load when you load index.php?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Use whatever code is used to "switch" between tabs and call that with the required tab.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How do i make my tab load when you load index.php?
 

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.12149 seconds with 12 queries