JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

action on rollover instead of click

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
mercurybds



Joined: 19 May 2006
Posts: 4
Location: Naperville, IL USA

PostPosted: Fri May 19, 2006 2:26 pm    Post subject: action on rollover instead of click Reply with quote

I'm using a CooljsMenu on a page with an I-frame. Eack click on a menu subitem changes the content of the I-frame. I want to do this by just mousing over the menu sub-item instead of clicking. How to do this ?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri May 19, 2006 5:07 pm    Post subject: Reply with quote

What version of the script do you use? Answer depends on this.
Back to top
mercurybds



Joined: 19 May 2006
Posts: 4
Location: Naperville, IL USA

PostPosted: Sat May 20, 2006 3:01 am    Post subject: action on rollover instead of click Reply with quote

Using CooljsMenuPro - freshest version, just purchased and downloaded this week
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat May 20, 2006 5:02 am    Post subject: Reply with quote

Please, specify exact version number. You can find it in the header of coolmenupro.js fil.
Back to top
mercurybds



Joined: 19 May 2006
Posts: 4
Location: Naperville, IL USA

PostPosted: Sat May 20, 2006 1:55 pm    Post subject: action on rollover instead of click Reply with quote

Version 2.1.4
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat May 20, 2006 2:34 pm    Post subject: Reply with quote

Try this:

Code:

var menu1 = new COOLjsMenuPRO(...);
menu1.oldOnmouseover = menu1.onmouseover;
menu1.onmouseover = function (_item)
{
    window.open(_item.url, _item.targ);
    return menu1.oldOnmouseover(_item);
}
Back to top
mercurybds



Joined: 19 May 2006
Posts: 4
Location: Naperville, IL USA

PostPosted: Sat May 20, 2006 9:54 pm    Post subject: action on rollover instead of click Reply with quote

this code show potential. However, I need the rollover to only effect the subitems and NOT the top level item. This code only gave me the rollover action for the top level item and I can't figure out how to modify it to do just the sublevel items.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sun May 21, 2006 6:44 am    Post subject: Reply with quote

This means that you need more advanced customization which is not free. You can order it here: javascript@cooldev.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1