Status bar question

Discussion in 'JavaScript' started by stev2234, Dec 26, 2007.

  1. #1
    Hi,

    I would like to hide the URL's that appear in the left downside of a browser when te cursor is moved over a link.

    The script i will paste underneath is working fine if i put it in the head of a webpage. However i am using a page that is build with frames and do not have acces to all the files that are used in that frame.

    My question is: Is there a way to hide the URL's in the status bar with a script that is placed on the page that contain the frame so that there is no need to change the files that are shown in that frame.

    I have searched the web but didn't find an answer.

    The script i found and is is working fine on a single page is:

    <script>
    function hidestatus(){
    window.status=' '
    return true
    }

    if (document.layers)
    document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

    document.onmouseover=hidestatus
    document.onmouseout=hidestatus
    </script>


    Help would be appreciated!

    Kind regards,

    Steven
     
    stev2234, Dec 26, 2007 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    try to use this

    self.framename.document. in place of document.

    <script>
    function hidestatus(){
    window.status=' '
    return true
    }

    if (self.framename.document.layers)
    self.framename.document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

    self.framename.document.onmouseover=hidestatus
    self.framename.document.onmouseout=hidestatus
    </script>
     
    kmap, Dec 26, 2007 IP
  3. stev2234

    stev2234 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Kmap,

    Thanks for your reply.

    I tried that, assumin that it the name of the frame is "test"
    the code wil be like this:

    if (self.test.document.layers)
    self.test.document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

    self.test.document.onmouseover=hidestatus
    self.test.document.onmouseout=hidestatus

    Unfortunately this is not working and still showing the URL in the status bar.

    Any ideas?

    Kind regards,

    Steven
     
    stev2234, Dec 26, 2007 IP
  4. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #4
    this is the only way i know using javascript u can refrence child frame and using that you can hide the links

    I am not sure about the exact coding or how u r doing but lil research it ,it will work surely


    Regards

    Alex
     
    kmap, Dec 26, 2007 IP
  5. sadgirl

    sadgirl Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    all them work good
     
    sadgirl, Dec 26, 2007 IP
  6. stev2234

    stev2234 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for your responce.

    Spend some time searching for an answer on Google but i can not get it to work.

    The code i have now is:

    <html>
    <head>
    <title>Frames</title>

    <script>
    function hidestatus(){
    window.status=''
    return true
    }

    if (self.frames["test"].document.layers)
    self.frames["test"].document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

    self.frames["test"].document.onmouseover=hidestatus
    self.frames["test"].document.onmouseout=hidestatus
    </script>

    </head>

    <frameset cols = "100%,*">
    <frame id="test" name="test" src ="http://www.test.com">
    </frameset>
    </html>

    If anyone has an idea ho to get this to work than please let me know.

    Kind regards,

    Steven
     
    stev2234, Dec 26, 2007 IP