Results 1 to 2 of 2
-
4th Oct 2011, 06:44 AM #1OPMemberWebsite's:
iWarez.comHTML/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>
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
-
5th Oct 2011, 06:41 PM #2Respected Member
It works fine for me using opera. nightly and ie.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[For Hire] HTML/CSS , jquerry and javascript developer
By GhDj in forum ServicesReplies: 1Last Post: 16th May 2012, 04:34 PM -
Help About JavaScript
By macypro in forum Technical Help Desk SupportReplies: 1Last Post: 7th Dec 2010, 12:23 AM -
[Hiring] Javascript and HTML expert
By Netguy in forum Completed TransactionsReplies: 3Last Post: 6th Nov 2010, 05:31 AM -
(X)HTML, CSS slicing (6 years experience) | PSD to (X)HTML and CSS | Professional job
By Wamer in forum Completed TransactionsReplies: 8Last Post: 21st Jul 2010, 06:13 PM -
Snowstorm: A Javascript Snow Effect for HTML
By Jesse in forum Useful SitesReplies: 7Last Post: 17th Dec 2009, 09:57 PM
themaRegister - register to forums...
Version 3.54 released. Open older version (or...