Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Need help with jQuery
Old 04-13-2008, 06:53 AM Need help with jQuery
wanted4h's Avatar
Junior Talker

Posts: 2
Name: Gediminas
Location: Lithuania, Kretinga
Trades: 0
Hello,

I need some help with javascript or jQuery. I need some scripts examples.

First, look at this site http://www.kretas.lt/?cat=11 when I take mouse on the grey backround, it convert to green.

I know that script changing CSS. So how to do it?

Second, at the same site top navigation. When you take mouse on the link, after it start new meniu

So i need this 2 scripts. Sorry for me poor language
wanted4h is offline
Reply With Quote
View Public Profile Visit wanted4h's homepage!
 
 
Register now for full access!
Old 04-13-2008, 08:28 PM Re: Need help with jQuery
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Since you're using jQuery, both are quite easy.

The first is probably something like:
Code:
$('#your-wrapper-el').mouseover(function(e) { $(this).addClass('highlight'); });
$('#your-wrapper-el').mouseout(function(e) { $(this).removeClass('highlight'); });
Just create a 'highlight' class in your CSS and modify any colors:
Code:
.highlight { background-color: #eee; border: 1px solid #555; }
The second one is only slightly more complicated. Assign a mouseover event to the menu item element that unhides/hides various wrapper elements that contain the sub-menu items. I don't have time to show specific code, but it can be as simple as:

Code:
$('#my-menu-item').mouseover(function() {
    // Hide other menus
    $('#submenu1, #submenu2, #submenu4').hide();

    // Show this menu
    $('#submenu3').show();
});
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help with jQuery
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15787 seconds with 12 queries