[allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => ecampbel [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Fake # Link without jumping up page - Macromedia Dynamic HTML

Fake # Link without jumping up page - Macromedia Dynamic HTML

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?...

  1. #1

    Default Fake # Link without jumping up page

    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?
    bentrill2 Guest

  2. #2

    Default Re: Fake # Link without jumping up page

    <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 = doent.getElementById(id);

    if (obj.style.display == 'none'){
    doent.getElementById(id).style.display = 'block';
    } else {
    doent.getElementById(id).style.display = 'none';
    }
    }


    //-->
    </script>



    ecampbel Guest

  3. #3

    Default Re: Fake # Link without jumping up page

    Usually when you click on any link it will scroll... this should just open up a paragraph under the link...
    ecampbel Guest

  4. #4

    Default Re: Fake # Link without jumping up page

    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" <com> wrote in message
    news:fq5ubt$7ji$macromedia.com... 

    Murray Guest

Similar Threads

  1. Strange - my page content is jumping to the right
    By spdorsey in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: April 4th, 10:13 PM

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
  •