I have a javascript tree menu system based loosely on the msdn TOC tree. It uses some javascript to generate the tree on the fly by grabbing each child node from another cfm template as it is selected.
The javascript creates various sections for building the icons and text and I wanted to be able to place a mouseover color change to the text. I managed to get a cursor change on the icons but cannot get the text to pick up the stye onmouseover.
Here is a snippet of js:
oIMG = document.createElement("img");
oIMG.border = 0;
oIMG.className = "handcursor";So I would want something like: oIMG.mouseover = "style.color:44FF00;";
This does not work though!!
Cheers
Dave
At 11/13/2003 10:29, you wrote:
Sorry...been out looking after my newborn...
What are you trying to do?
You can easily change style/text within a page (as long as JS can see it as object)!
N
----- Original Message ----- From: "Dave Phipps" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 12, 2003 8:50 PM Subject: Re: [ cf-dev ] OnMouseover from within function
> Matt, > > Sorry had no email this afternoon. I tried it but it didn't do > anything. I have now given up on the idea of doing a mouseover. > > Thanks anyway. > > Dave > > At 11/12/2003 12:46, you wrote: > >Dave , > > > >did this work for you? > > > >----- Original Message ----- > >From: "Matt Horn" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Wednesday, November 12, 2003 10:20 AM > >Subject: Re: [ cf-dev ] OnMouseover from within function > > > > > > > oA.mouseover = 'this.style.color:#ffffff'; > > > > > > that may work > > > > > > Matt > > > > > > ----- Original Message ----- > > > From: "Dave Phipps" <[EMAIL PROTECTED]> > > > To: "ColdFusion User group" <[EMAIL PROTECTED]> > > > Sent: Wednesday, November 12, 2003 10:07 AM > > > Subject: [ cf-dev ] OnMouseover from within function > > > > > > > > > > Hi, > > > > > > > > I have some javascript that generates a menu tree and each menu item can > > > > have an associated URL. What I want to do is apply a color change to > >the > > > > menu text when I mouseover. All of the code is within javascript so I > > > > can't do the usual onMouseover="" etc. > > > > > > > > An example of some of the script is: > > > > > > > > oA.className = sNodeClass; > > > > > > > > This sets the class for the particular element. What I am trying to > > > > workout is how to do something like this: > > > > > > > > oA.mouseover = "color:#44FF00;" > > > > > > > > However this does not work. Anyone have any ideas? > > > > > > > > Thanks > > > > > > > > Dave > > > > > > > > > > > > -- > > > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > For human help, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > For human help, e-mail: [EMAIL PROTECTED] > > > > > > > > >-- > >** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >For human help, e-mail: [EMAIL PROTECTED] > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > >
-- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
-- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
