Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Вёрстка веб-сайтов > Выпадающее меню на CSS ↓


Автор: ReactOS 2.4.2008, 12:33
Привет всем!

волнует след. трабла

user posted image

пытался сделать такое же меню (правда при помощи), у меня не получилось, поможете сделать такое же без помощи js?

на всякий случай приведу js-code:
Код

script>
        var cmsadmin =
    [
    [null, '<a href="index2.php"><img src="images/admin/_menu.gif" alt="" height="16" width="14" border="0"></a>', null, '_self', 'About !'],
    [null, 'Manage', null, '_self', 'Manage',
        [null, 'Email Messages', 'index2.php?option=messages', '_self', 'Manage Email Messages'],
        [null, 'Campaigns', 'index2.php?option=campaigns', '_self', 'Manage Campaigns'],
        [null, 'SMS Messages', 'index2.php?option=sms', '_self', 'Manage SMS Messages'],
        [null, 'User Subscription Categories', 'index2.php?option=listCategories', '_self', 'Manage Subscription Categories'],
        [null, 'Custom Lists', 'index2.php?option=customLists', '_self', 'Manage Custom Lists'],
        [null, 'Subscription Form', 'index2.php?option=subscriptionFormFields&task=viewFields', '_self', 'Manage Subscription Form'],
    ],
    _cmSplit,
    [null, 'Users', null, '_self', 'Users Management',
        [null, 'Administrators', 'index2.php?option=administrators', '_self', null],
        [null, 'Subscribers', 'index2.php?option=users', '_self', null],
        [null, 'Pending Subscribers List', 'index2.php?option=ViewPending', '_self', null],
        [null, 'Blocked Subscribers List', 'index2.php?option=ViewBlocked', '_self', null],
        [null, 'Bounced Subscribers List', 'index2.php?option=ViewBounced', '_self', null],
        [null, 'Unsubscribed Users List', 'index2.php?option=ViewUnsubscribed', '_self', null],
    ],
        _cmSplit,
    [null, 'System', null, '_self', 'System Management',
        [null, 'Check In', 'index2.php?option=checkin', '_self', null],
        [null, 'Configuration', 'index2.php?option=systemAdmin', '_self', null],
        [null, 'System Email Content', 'index2.php?option=systemEmails', '_self', null], 
        [null, 'Site Backup', 'index2.php?option=dbBackups', '_self', null],
        [null, 'Update Image Paths', 'index2.php?option=updatePaths', '_self', null],
        [null, 'MIME Types', 'index2.php?option=mimeTypes', '_self', null],
    ],
        _cmSplit,
    [null, 'Reports', null, '_self', 'Reports Management',
        [null, 'Unsubscribe Log', 'index2.php?option=unsubscribeReport', '_self', null],
        [null, 'Sent Emails', 'index2.php?option=sentMessages', '_self', null],
        [null, 'Sent SMS', 'index2.php?option=sentSMS', '_self', null],
        [null, 'Bounced Emails', 'index2.php?option=bouncedReport', '_self', null],
        [null, 'Email Tracking', 'index2.php?option=trackingReport', '_self', null],
    ],
    
    _cmSplit,
    [null, 'Logout', 'logout.php', '_self', 'Logout'],
    _cmSplit,
    [null, 'Help', 'http://site/', '_blank2', 'Help', null,
    
    
        [_cmNoAction, '<td style="padding: 0px" colspan="3">'+'<table width="100%" border="0" cellpadding="0" cellspacing="0">'+'<tr onmouseover="this.bgColor=\'\#85adc9\'\" onmouseout="this.bgColor=\'\#5d92b7\'\"  onclick="window.open(\'\about/index.php\'\, \'\about\'\, \'\status=no,directories=no,scrollbars=no,title=yes,menubar=no,resizable=no,toolbar=no,location=no,width=420,height=450\'\);">'+'<td>'+'<img src="images/blank.gif" alt="" height="8" width="6" border="0">'+'</td>'+'<td>'+'<a href="#" class="menu" style="cursor:default" onclick="window.open(\'\about/index.php\'\, \'\about\'\, \'\status=no,directories=no,scrollbars=no,title=yes,menubar=no,resizable=no,toolbar=no,location=no,width=420,height=400\'\);">'+'About&nbsp;!&nbsp;Email&nbsp;Marketing&nbsp;System'+'</a>'+'</td>'+'<td>'+'<img src="images/blank.gif" alt="" height="8" width="8" border="0">'+'</td>'+'</tr>'+'</table>']    
    ],

    [null, '<span style="color:yellow">Feature&nbsp;Request</span>', 'popups/featureRequest.php', '_blank2', 'Feature Request', 'status=no,directories=no,scrollbars=no,title=yes,menubar=no,resizable=no,toolbar=no,location=no,width=520,height=400']

    ];

    </script>


Заранее спасибо!

Автор: awers 2.4.2008, 12:44
ReactOS, советую посмотреть в сторону http://jquery.com и его http://plugins.jquery.com

Автор: SelenIT 4.4.2008, 02:04
Довольно красивые и простые примеры "pure-CSS"-менюшек http://www.cssplay.co.uk/menus/drop_examples.html. Не без хаков (местами), но проверенные smile

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)