Results 1 to 6 of 6

Thread: Code Restore... (need help)

  1. #1
    Join Date
    Mar 2007
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Code Restore... (need help)

    I have had the following code input on my website.....:
    <script>
    var statusMessage = 'Welcome to Nemesis Clan!';
    window.status = statusMessage;
    var tCell= document.getElementsByTagName('TD');
    for (i=0;i<tCell.length;i++){
    if (tCell[i].className=="row4"){
    if (tCell[i].innerHTML.match("showforum=")){
    tCell[i].onmouseover=function(){this.style.backgroundColor="#330000";this.style.cursor='hand';window.status=this.getElementsByTagName('a')[0].innerHTML;}
    tCell[i].onmouseout=function(){this.style.backgroundColor="";window.status=statusMessage;}
    tCell[i].onclick = function(){location = this.getElementsByTagName('a')[0].href;}
    }}}
    var tCell2= document.getElementsByTagName('TD');
    for (i=0;i<tCell.length;i++){
    if (tCell2[i].className=="row4"){
    if (tCell2[i].innerHTML.match("showtopic=")){
    tCell2[i].onmouseover=function(){this.style.backgroundColor=" #330000";this.style.cursor='hand';}
    tCell2[i].onmouseout=function(){this.style.backgroundColor=""}
    tCell2[i].onclick = function(){location = this.getElementsByTagName('a')[0].href;}
    }}}
    </script>

    .....for quite a while, but when i updated my explorer to IE7 the code would not work on the new browser but it works on any other... Is there anyway of fixing it so it would work in IE7???

  2. #2
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    I don't think you can set status in FF, maybe not IE 7 either?

  3. #3
    Join Date
    Mar 2007
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It is possible if you go to my WEBSITE and if somehow can view my source (highly guarded ) you will see that i have applied a status code to hide my links... Any other reasons?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    By default, most browsers will prevent you from changing the status bar text. I presume IE7 has adopted this idea.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, if you are willing to mess up your page so much to begin with and really, really, really feel a need to not let the browser function as it was intended . . . Oh, wait a minute, what am I saying?

    Basically, there are still ways to conceal the actual function of a link from the user via javascript, but the old default status message method no longer works in most cases. There is no reason to do this though, unless you are up to something that it is against the rules of this forum to help you with. So, have a nice day!

    The ability of modern browsers to prevent these shenanigans is evolving and configurable. Meaning that just because something works in one browser, even another browser that is exactly the same, but configured differently may not allow it, and that subsequent versions, at some point, almost certainly will not.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Mar 2007
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help peops... Still most of the code works... I was just wondering what was preventing it... I just thought a part of the code was wrong and I just couldn't see it... So it's just my browser then???

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
  •