SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict ankitaneja1's Avatar
    Join Date
    Sep 2004
    Location
    India
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    On Click Show the Hidden Text

    undefined<SCRIPT language="javascript">
    var iVal=new Array([15]);
    function SetVal(val)
    {

    if(document.getElementById(val).style.display=="block")
    {
    document.getElementById(val).style.visibility="hidden";
    document.getElementById(val).style.display="none";
    }
    else
    {
    document.getElementById(val).style.visibility="visible";
    document.getElementById(val).style.display="block";
    }
    }
    </SCRIPT>


    <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    <td class="var10"><TABLE cellPadding=0 width=475 border=0 cellspacing="0">
    <TBODY>
    <TR>
    <TD width="685" class=normalTextBold><A class=normalTextBold
    href="javascript:SetVal(0)"><span class="var12_bold">What is SSL?</span></A></TD>
    </TR>
    <TR>
    <TD class=HideText id=0><div align="justify">
    <p>The SSL (and TLS) protocol is the Web standard for encrypting communications between users and SSL (secure sockets layer) e-commerce sites. Data sent via an SSL connection is protected by encryption, a mechanism that prevents eavesdropping and tampering with any transmitted data. SSL provides businesses and consumers with the confidence that private data sent to a Web site, such as credit card numbers, are kept confidential. Web server certificates (also known as secure server certificates or SSL certificates) are required to initialize an SSL session. </p>
    </div>
    <p align="justify">Customers know when they have an SSL session with a website when their browser displays the little gold padlock and the address bar begins with a https rather than http. SSL certificates can be used on webservers for Internet security and mailservers such as imap, pop3 and smtp for mail collection / sending security.</p>
    </TD>
    </TR>


    this is Frequently Asked Questions Page with Differnt Questions or Headings
    When page opens i am able to see heading and all hidden text in it
    but i want that only heading should be visible and on single click on that heading or question hidden text in it should be displayed
    What is problem with above code or what changes in it should be done
    Last edited by ankitaneja1; Apr 8, 2005 at 21:48.
    Ankit Aneja
    "Nothing is impossible. The word itself says - I M possible"

  2. #2
    SitePoint Addict ankitaneja1's Avatar
    Join Date
    Sep 2004
    Location
    India
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Plz its Urgent[QUOTE]
    Ankit Aneja
    "Nothing is impossible. The word itself says - I M possible"

  3. #3
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.dynamicsitesolutions.com/...=html/mistakes It's the 4th one down in the list.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •