|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
<a href="#" onclick="showStuff('test1'); return false;" title="Click to see
testimonial">...Link...</a> <span id="test1" style="display: none;"><p>...Text...</p></span> HERE is javascript showStuff('test1')................. <script type="text/JavaScript"> <!-- //function to display or hide a given element function showStuff(id) { var obj = document.getElementById(id); if (obj.style.display == 'none'){ document.getElementById(id).style.display = 'block'; } else { document.getElementById(id).style.display = 'none'; } } //--> </script> |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
Please do this -
<a href="#" .... onclick="return false"> or this - <a href="#" .... onclick="yourfunctioncall;return false"> <a href="javascript:;" onclick="yourfunctioncall;return false"> -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "bentrill2" <webforumsuser@macromedia.com> wrote in message news:fq5ubt$7ji$1@forums.macromedia.com... >I have a '#' on a link. and want the link to be visible, but to run a JS, >without the link acting as a jump link to the top of the page. > > any ideas? |
|
![]() |
| Outils de la discussion | |
|
|