I have little HTML Question 8)

Discussion in 'HTML & Website Design' started by lbhabib.ru, May 19, 2011.

  1. #1
    I have Order form that i would like to place on my website,

    On one of the fields i would like to add "Advanced Options" and only when it is selected or pressed the page will stretch to show the advanced options... how can i do this?


    Thank you all for your support :)
     
    lbhabib.ru, May 19, 2011 IP
  2. lbhabib.ru

    lbhabib.ru Active Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Well people, here is the code

    <script language="javascript"> 
    function toggle() {
    	var ele = document.getElementById("toggleText");
    	var text = document.getElementById("displayText");
    	if(ele.style.display == "block") {
        		ele.style.display = "none";
    		text.innerHTML = "show";
      	}
    	else {
    		ele.style.display = "block";
    		text.innerHTML = "hide";
    	}
    } 
    </script>
     
    <a id="displayText" href="javascript:toggle();">show</a> <== click Here
    <div id="toggleText" style="display: none"><h1>peek-a-boo</h1></div>
    Code (markup):
     
    lbhabib.ru, May 19, 2011 IP
  3. om39a

    om39a Peon

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    U can use DreamWeaver. U can use a custom Dropdown menu by changing its setings to create one as u need.
     
    om39a, May 19, 2011 IP
  4. shmeeko69

    shmeeko69 Member

    Messages:
    301
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    Microsoft Frontpage 2003 also has this facility and you can usually find a free download from downloadcnet.

    Mark :)
     
    shmeeko69, May 20, 2011 IP
  5. lbhabib.ru

    lbhabib.ru Active Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Thank you for your help, i have found the script

    btw i use microsoft expression web
     
    lbhabib.ru, May 20, 2011 IP