Jump to content

pandean

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by pandean

  1. You can do it with php but also css  :) So say you have four pages, what you need to do is give the <body> tag on each page a unique id aswell as each menu item.  Then in the stylesheet find out what the current page is and style that link.http://scott100.atspace.com/home.htmSo for example if the body id is <body id="home"> within that document find the anchor link with id="homenav" and style it boldThis is the css file:body#home a#homenav,body#products a#prodnav,body#faq a#faqnav,body#contact a#connav {font-weight: 900;}

    This is what I want.. thank you so muchP
  2. this can be done with php.  just use php to check what page you are on and if that matches the link then make it bold
    <?php$location = $_SERVER['PHP_SELF'];if($location == '/index.php'){ echo ("<b>Home</b>");}else{echo ("<a href='/index.php'>Home</a><br />");}?>

    Thanks. I think it will work. I wonder if it can be done in HTML coding?
  3. Hi, GuysI am a newbie of dynamic website. I have seen a menu effects was very cool and useful. but dont know how to create this. The immediate help will be appreciated.My problem is:When a user clicks a link on a menu, the link itself will be bold and remains the same effect on the next page.The same effect can be found at www.w3schools.comI really like this effect, but I dont know which script language I should use to achieve it. Do I have to use PHP or ASP to do it ? or just HTML and CSS?Thanks in advance.P

  4. Hi, GuysI am a newbie of dynamic website. I have seen a menu effects was very cool and useful. but dont know how to create this. The immediate help will be appreciated.My problem is:When a user clicks a link on a menu, the link itself will be bold and remains the same effect on the next page. The same effect can be found at www.w3schools.com I really like this effect, but I dont know which script language I should use to achieve it. Do I have to use PHP or ASP to do it ? or just HTML and CSS?Thanks in advance.P

×
×
  • Create New...