dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: once more... works on IE but not on NN

  1. #1
    Join Date
    Nov 2002
    Posts
    9

    Angry once more... works on IE but not on NN

    one more question:
    i have few simple functions that help to change the text color when moved over the image

    function mover(objid)
    {eval(objid).style.color="#CCCCCC";
    eval(objid).style.backgroundColor="#727070";
    }

    function mout(objid)
    {eval(objid).style.color="";
    eval(objid).style.backgroundColor="";

    ----- here goes image and text code parts------------

    <p class="PIRMO_L"><a id="tagas1" href="1.htm")ENCIKLOPEDIJA</a></p>

    <td height="97" width="92" valign="bottom"><a href="1.htm" onMouseOut="mout('tagas1')" onMouseOver="mover('tagas1')"><img name="enciklo" border="0" src="enciklopedija_p.gif" width="82" height="83"></a></td>

    ------------------------------------------------------------

    The whole code works fine on IE, but:
    1) NN 4.x versions do not support style.color. Any1 knows what could replace it, so i could use the code on both IE and NN?
    2) IE 6 supports style.color, but i have another problem in here - browser tells me that 'tagas1' is not defined. Any ideas, why?

    thank you very much!

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473

    Re: once more... works on IE but not on NN

    Originally posted by tomas skersys
    one more question:
    ...
    1) NN 4.x versions do not support style.color. Any1 knows what could replace it, so i could use the code on both IE and NN?
    2) IE 6 supports style.color, but i have another problem in here - browser tells me that 'tagas1' is not defined. Any ideas, why?
    Hmmm ... I count two questions.

    Nevertheless, NN 4.x does not support style.anything. You can code color as a style or a font tag, but you cannot change the color of existing text. The only workaround would be the old document.write() to a layer trick (not much fun) or overlapping layers - one in one color and one in the other color - and change visibility (ewww! what's that smell?).

    Dave's post pretty much covers the rest.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles