Activity Stream
48,167 MEMBERS
6713 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    iWarez.com

    Default HTML/Javascript help

    I need help with html/javascript popup search on my site..
    I want the search popup to close whenever I clicked outside the search popup..

    Here is the search popup code;
    Code: 
    <div class="searchtext">
    <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 = "Search<img src='images/misc/menu_open.gif'>";
      	}
    else {
    ele.style.display = "block";
    text.innerHTML = "Search<img src='images/misc/menu_open.gif'>";
    }
    } 
    </script>
    
    <a id="displayText" href="javascript:toggle();">Search<img src='images/misc/menu_open.gif'></a>
    <div id="toggleText" class="searchbox" style="display: none; position:absolute;"><table class="searchbox" cellpadding="4" cellspacing="0" border="0">
    <tr>
    <td class="thead">Search Forums</td>
    </tr>
    <tr>
    <td class="vbmenu_option" title="">
    <form action="search.php?do=process" method="post">
    
    <input type="hidden" name="do" value="process">
    <input type="hidden" name="quicksearch" value="1">
    <input type="hidden" name="childforums" value="1">
    <input type="hidden" name="exactname" value="1">
    <input type="hidden" name="s" value="">
    <input type="hidden" name="securitytoken" value="1317376584-15cd3b184c4a7a023986a720e23261a0b2d0ec34">
    <div><input type="text" class="bginput" name="query" size="25" tabindex="1001"><input type="submit" class="button" value="Go" tabindex="1004"></div>
    <div style="margin-top:6px">
    <label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked">Show Threads</label>
    
    <label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003">Show Posts</label>
    </div>
    </form>
    </td>
    </tr>
    
    <tr>
    <td class="vbmenu_option vbmenu_option_alink"><a href="tags.php" rel="nofollow">Tag Search</a></td>
    </tr>
    
    <tr>
    <td class="vbmenu_option vbmenu_option_alink"><a href="search.php" accesskey="4" rel="nofollow">Advanced Search</a></td>
    </tr>
    
    </table></div>
    Site:
    the search is on the right upper part of the site
    http://dev-forums.onemodelplace.com/

    TIA!
    tractor3231 Reviewed by tractor3231 on . HTML/Javascript help I need help with html/javascript popup search on my site.. I want the search popup to close whenever I clicked outside the search popup.. Here is the search popup code; <div class="searchtext"> <script language="javascript"> function toggle() { var ele = document.getElementById("toggleText"); var text = document.getElementById("displayText"); if(ele.style.display == "block") { Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    It works fine for me using opera. nightly and ie.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [For Hire] HTML/CSS , jquerry and javascript developer
    By GhDj in forum Services
    Replies: 1
    Last Post: 16th May 2012, 04:34 PM
  2. Help About JavaScript
    By macypro in forum Technical Help Desk Support
    Replies: 1
    Last Post: 7th Dec 2010, 12:23 AM
  3. [Hiring] Javascript and HTML expert
    By Netguy in forum Completed Transactions
    Replies: 3
    Last Post: 6th Nov 2010, 05:31 AM
  4. Replies: 8
    Last Post: 21st Jul 2010, 06:13 PM
  5. Snowstorm: A Javascript Snow Effect for HTML
    By Jesse in forum Useful Sites
    Replies: 7
    Last Post: 17th Dec 2009, 09:57 PM

Tags for this Thread

BE SOCIAL