Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: 2819
  • Order by date
  1. 2819

    how to get <title>?

    Thanks Farmcow, Yes, I know that I shouldn't do it. But I have no choice. The CMS my customer is using is very outdated. It is running on NET. There are many other weird things happening with this CMS. I personally use Joomla and I love it. When I compare Joomla and this outdated CMS is like...
  2. 2819

    how to get <title>?

    Ok thanks.
  3. 2819

    how to get <title>?

    I can add class to an element or tagname. <script type="text/javascript">document.getElementById("menu").getElementsByTagName("li")[0].className = "first"; document.getElementById("sidebar").getElementsByTagName("ul")[1].getElementsByTagName("li")[0].className = "first"; </script> Is there...
  4. 2819

    how to get &lt;title&gt;?

    I want to add css to a current page in the main menu div by javascript. Since I am using a old CMS, I am not do it by adding a code to html. How can I do it? What I am thinking is that if I use the title in head section the same as the menu, there must be way to do it? Is it? Code will be...
  5. 2819

    How to insert a class in CSS?

    Yeap, I got it. I needed to change 0 in .getElementsByTagName("ul")[0] to [1]. Then voila. Thanks guys.
  6. 2819

    How to insert a class in CSS?

    Thanks Dan, I have another one in the same page. <div id="sidebar"> <ul> <li> <h2>Undermeny</h2> <ul class="leave"> <li><a href="#">Undersider 1</a></li> <li><a href="#">Undersider 2</a></li> <li><a href="#">Undersider 3</a></li> <li><a href="#">Undersider 4</a></li> <li><a...
  7. 2819

    How to insert a class in CSS?

    Ok, I put the following, but it still does not work. var ul=document.getElementById('menu').getElementsByTagName('ul').getElementsByTagName('li')[0].className='first'; What am I doing wrong? Thanks for your support.
  8. 2819

    How to insert a class in CSS?

    I am not sure what the pointer means. But could you tell me what I need to do? Thanks.
  9. 2819

    How to insert a class in CSS?

    Thank you for your reply. I copied it in the external js and link it in the head. But it still does not give a class to li. My html codes is this. <div id="header2"> <div id="menu"> <ul> <li><a href="#">Forsiden</a></li> <li><a href="#">Om oss</a></li> <li><a...
  10. 2819

    How to insert a class in CSS?

    Hi, please bear with me. Because I am a complete beginner to Javascript. I need to insert a class to the first <li> tag in a certain <ul>. My customer's CMS does not have to that function. Could anyone tell me how to do it in Javascript please? Thanks in advance.

Part and Inventory Search

Back
Top