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 Chris Miller 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: *

  1. Daruhshie

    Onclick takes two steps why not one?

    <a onclick="javascript:show('LP');hide('SH');hide('SD');hide('HD'); return false;" href="#" class="active"><?php echo HOME;?></a> now it works in IE FF and Opera. Thanx again.
  2. Daruhshie

    Onclick takes two steps why not one?

    Works like a charm in IE and FF with the style on the element itself, thank you very much. Justhave to figger out why Opera doesn't like it yet.
  3. Daruhshie

    Onclick takes two steps why not one?

    function display($sectie){ switch ($sectie) { case "LP": $dis_LP = "#LP{margin-left:0;display:block}"; $dis_SH = "#SH{margin-left:0;display:none}"; $dis_SD = "#SD{margin-left:0;display:none}"; $dis_HD = "#HD{margin-left:0;display:none}"; break; case "SH"...
  4. Daruhshie

    Onclick takes two steps why not one?

    No you got me wrong there, I truely appreciate you explaining me the how and why it doesn't work. Sorry if my words made you think otherwise.
  5. Daruhshie

    Onclick takes two steps why not one?

    How do I get javascript to start out with a readable state then? Thnx for the efford by the way.
  6. Daruhshie

    Onclick takes two steps why not one?

    the second time it works the way it should, it shows show and hides hide on one click, don't understand why it doesn't on the first onclick after opening the page.
  7. Daruhshie

    Onclick takes two steps why not one?

    I have this menu wich needs onclick open one sub menu and close all others, it works perfectly after you onclick once. but I want it to work right away, any ideas, relevant code below: <script type="text/javascript"> function show(a) { var div = document.getElementById(a).style; if...

Part and Inventory Search

Back
Top