Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    New Coder
    Join Date
    Feb 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide link on status bar problem

    All the scripts that I found on dynamic drive and elsewhere about hiding the link display on status bar have a problem. Onmouseover they work fine, the link is hidden. HOWEVER, if you click on the link without releasing it, the link displays. This is happening only on first time you do it. After that it will not display.

    I tried event.CLICK but it will always display the link. Here is the code that I am using (pretty useless since you can display the link in status bar). Can someone please help?

    <script>
    function hidestatus(){
    window.status=''
    return true
    }
    if (document.layers)
    document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
    document.onmouseover=hidestatus
    document.onmouseout=hidestatus
    </script>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why would you mess with the status bar in the first place?
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #3
    New Coder
    Join Date
    Feb 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Purpose of the script is to hide links, right? I am using in an intranet where right click and view source have been disabled. Most of thee links are activeX, and I don't want for people to see it.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, right, disabled....
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #5
    New Coder
    Join Date
    Feb 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you are not too helpful....

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    document.onmouseover=hidestatus
    document.onmouseout=hidestatus
    document.onmousedown=hidestatus
    document.onmouseup=hidestatus
    document.onmouseclick=hidestatus

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You do not understand client side scripting and client side security.
    Whatever you are trying to protect with those silly scripts does not hide anything from a knowledgeable person and does nothing but annoy the rest of the users, because it takes away the browsing tools they are used to.
    You need to define what your security risks are and take care of them on the server side. It does not really matter if it is intranet or internet. The only thing that you control on the intranet is the browser choice. The fact that you are attempting to implement those features says that you can not trust the users inside and security needs to be taken seriously.
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #8
    New Coder
    Join Date
    Feb 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Garadon
    document.onmouseover=hidestatus
    document.onmouseout=hidestatus
    document.onmousedown=hidestatus
    document.onmouseup=hidestatus
    document.onmouseclick=hidestatus
    Thanks. I had tried that. That does not work.

  • #9
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This sure blocks everything in my IE browser.

    <script>
    function hidestatus(){
    window.status=''
    return true
    }
    if (document.layers)
    document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
    document.onmouseover=hidestatus
    document.onmouseout=hidestatus
    document.onmousedown=hidestatus
    document.onmouseup=hidestatus
    document.onmouseclick=hidestatus

  • #10
    New Coder
    Join Date
    Feb 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it works for me too, except that when you click the first time and hold it, the full link is displayed. After that there are no problems. It is just the first time.

  • #11
    New Coder
    Join Date
    Feb 2004
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here, try this. Works for me.





    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    function url() {
    hidden = open('http://www.yourwebsite.com/','NewWindow','top=0,left=0,width=1020,height=710,status=no,resizable=yes,scrollbars=yes');
    }

    // any of the above window parameters can be changed,
    // but if you want the link to remain hidden do not
    // change 'status=no'

    // End -->
    </script>

    </HEAD>



    <BODY>

    <a href="javascript:url()">Your link</a

  • #12
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,043
    Thanks
    0
    Thanked 251 Times in 247 Posts
    Originally posted by Lionel
    Purpose of the script is to hide links, right? I am using in an intranet where right click and view source have been disabled. Most of thee links are activeX, and I don't want for people to see it.
    http://www.vortex-webdesign.com/help/hidesource.htm

  • #13
    New Coder
    Join Date
    Feb 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks egquen2000, but that would not work for me as the window is the opener from a VB program.

    And to all the clowns out there, this is being used in a totally controlled cybercafe environment where the windows shell has been taken over by another shell. Registry has been edited and even 'save as' has been disabled. plus many more protection. And that html page is not accessible to the outside world.

    So before trying to be smart and unhelpful, you might want to open up your horizons a bit and stop behaving as morons, calling what you do not know 'silly scripts' or placing stupid links.

  • #14
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Lol.

  • #15
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Lionel
    thanks egquen2000, but that would not work for me as the window is the opener from a VB program.

    And to all the clowns out there, this is being used in a totally controlled cybercafe environment where the windows shell has been taken over by another shell. Registry has been edited and even 'save as' has been disabled. plus many more protection. And that html page is not accessible to the outside world.

    So before trying to be smart and unhelpful, you might want to open up your horizons a bit and stop behaving as morons, calling what you do not know 'silly scripts' or placing stupid links.
    If you managed to control all you say you have.
    Why haven't you completely disabled the status bar thru the registry?

    .....Willy

    BTW: Insulting the very people you are asking to help you


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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