35 users online (2 members and 33 guests)  


  Results 1 to 4 of 4

Related

  1. help rollovers    Forum: Javascript Forum
    Replies: 0
  2. Starting an animated gif    Forum: Javascript Forum
    Replies: 3
  3. Graphics Rollovers help please    Forum: Javascript Forum
    Replies: 1
  4. Multiple Rollovers - HELP!!    Forum: Javascript Forum
    Replies: 3
  5. Javascript Rollovers????    Forum: CSS Forum
    Replies: 1
  1. #1
    san's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2002
    Posts
    4

    animated rollovers in netscape

    Hello,

    I have some animated rollover buttons on my site. They work in IE but not in Netscape. Is there something that you could suggest?

    Thanks Alot.
    San

    if you need to take a look...
    http://www.freakystyles.com/sarisumi/sg.html
    ... its still a work in progress.

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    right here:

    Code:
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    the object getElementById("ID") works only in IE5+, and NN6. If you are using anything below NN6 or IE5, this code will not work.

  3. #3
    san's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2002
    Posts
    4
    Great! i'll try it tommorow. thanks alot, Derek.

  4. #4
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    actually I was refering to the code you already had.

    Look at http://www.dynamicdrive.com or somewhere and you can probably fine a more cross browser one. The reason yours wasn't working in NN (I'm assuming your using below NN6) I already stated. And IE4 hasn't totally been abandoned anyway so I would fine a more crossbrowser solution.



Tags for this Thread