update <DIV> OR <BODY> tag dynamically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • milas57
    New Member
    • May 2007
    • 14

    update <DIV> OR <BODY> tag dynamically

    hello everyone

    i have a homepage which introduce the company website as shown below im having trouble to find some javascript code when i click on the header link like servives the body content changes dynamically. thank you
    -------------------------------------------------------------------
    index.php
    [HTML]<div id="header">
    <a href="#" class="abt1">Se rvices</a>
    <a href="#" class="abt1">Ca talog</a>
    <a href="#" class="abt1">Pa rtners</a>
    <a href="#" class="abt1">Co ntacts</a>
    </div>

    <div id="body">
    <div ="left">
    </div>
    <div ="middle">
    </div>
    <div ="right">
    </div>
    </div>
    [/HTML]
    --------------------------
    Last edited by acoder; Mar 11 '08, 03:19 PM. Reason: Added code tags
  • rnd me
    Recognized Expert Contributor
    • Jun 2007
    • 427

    #2
    if you are new to coding, you might find it far simpler and more relaible to use frames/iframes/objects to show the different sections.

    if you want to modify page content without refreshing, use ajax.

    Comment

    Working...