Results 1 to 2 of 2

Thread: detect and change css

  1. #1
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default detect and change css

    hi all, this is my first post. I hope someone can help me out here.
    I have some simple php pages that have a inserted section "link_a.php".
    I would like to know how to change the CSS on a link inside "link_a.php" when a different page loaded with "link_a.php" inserted.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Do you have a link to your page? Your question is quite vague.

    really, it's very hard to tell what is part of a page. If "what is on a page" is determined by php in the first place, it's a lot easier. There needs to be a key of some sort, or you just need to search through all the code... which is no fun.

    Basically....

    PHP Code:
    <a href="
    <?php
    if (your condition) {
       echo 
    $linkvar;
       }
    ?>
    ">link</a>
    ...in simplest terms.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •