mayl
24-06-2007, 22:31
witam!
Moj problem polega na tym, że nie moge sobie poradzic z main menu joomli osadzonym na obiektach div. Podglądnąłem jak to jest zrobione w templatce nf_ianus-orange.
Menu probuje zrobic we wlasnym szablonie ktory jest pod adresem
www.karp.team.jaroszow.pl
CHodzi o to, żeby poszególne linki mainmenu byly osadzone na divach.
oto index.php
<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html;<?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $cur_template;?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="echo">
<div id="cialo"><?php mosMainBody(); ?>
</div>
<div id="modulleft"><?php mosLoadModules('left');?>
</div>
</div>
</body>
a taki template.css
body {
background-color: #000000;
background-position: center;
}
#echo {
background-image: url(../super.jpg);
background-repeat: no-repeat;
position: absolute;
height: 720px;
width: 800px;
}
#cialo {
position: absolute;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #FFFFFF;
height: 342px;
width: 484px;
top: 196px;
right: 211px;
background-repeat: no-repeat;
background-color:#FF6600;
}
#modulleft {
position: absolute;
left: 646px;
top: 309px;
width: 140px;
height:270px;
}
a.mainlevel:link, a.mainlevel:visited {
display : block;
width : 140px;
line-height : 65px;
font-size : 11px;
color : #eee;
text-decoration : none;
font-weight : bold;
background : url(../images/przycisk2.jpg) no-repeat;
text-indent : 24px;
padding-bottom : 2px;
}
a.mainlevel:hover {
color : #05b8f4;
text-indent : 30px;
background-position : 0 -65px;
text-decoration : none;
}
a.mainlevel#active_menu {
color : #333;
background-position : 0 -130px;
}
a.sublevel:link, a.sublevel:visited {
display : block;
width : 140px;
line-height : 65px;
font-size : 11px;
color : #eee;
text-decoration : none;
font-weight : bold;
background : url(../images/przycisk2.jpg) no-repeat;
text-indent : 24px;
padding-bottom : 2px;
}
a.sublevel:hover {
color : #05b8f4;
text-indent : 30px;
background-position : 0 -65px;
text-decoration : none;
}
a.sublevel#active_menu {
color : #333;
background-position : 0 -130px;
}
a.mainlevel-nav:link, a.mainlevel-nav:visited {
float : left;
display : block;
line-height : 65px;
font-size : 11px;
color : #ddd;
text-decoration : none;
font-weight : bold;
background : url(../images/przycisk2.jpg) repeat-x;
padding : 0px 10px 0px 10px;
border-right : 1px solid #777;
border-left : 1px solid #555;
vertical-align : top;
}
a.mainlevel-nav:hover {
color : #fff;
background-position : 0 -65px;
text-decoration : none;
}
a.mainlevel-nav#active_menu-nav {
color : #333;
background-position : 0 -130px;
text-decoration : none;
}
oto jest ten obiekt na ktorym chcialbym zeby pojawily sie linki mainmenu joomla
http://www.karp.team.jaroszow.pl/templates/echo/images/przycisk2.jpg
prosze o pomoc.pozdrawiam!
Moj problem polega na tym, że nie moge sobie poradzic z main menu joomli osadzonym na obiektach div. Podglądnąłem jak to jest zrobione w templatce nf_ianus-orange.
Menu probuje zrobic we wlasnym szablonie ktory jest pod adresem
www.karp.team.jaroszow.pl
CHodzi o to, żeby poszególne linki mainmenu byly osadzone na divach.
oto index.php
<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html;<?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $cur_template;?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="echo">
<div id="cialo"><?php mosMainBody(); ?>
</div>
<div id="modulleft"><?php mosLoadModules('left');?>
</div>
</div>
</body>
a taki template.css
body {
background-color: #000000;
background-position: center;
}
#echo {
background-image: url(../super.jpg);
background-repeat: no-repeat;
position: absolute;
height: 720px;
width: 800px;
}
#cialo {
position: absolute;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #FFFFFF;
height: 342px;
width: 484px;
top: 196px;
right: 211px;
background-repeat: no-repeat;
background-color:#FF6600;
}
#modulleft {
position: absolute;
left: 646px;
top: 309px;
width: 140px;
height:270px;
}
a.mainlevel:link, a.mainlevel:visited {
display : block;
width : 140px;
line-height : 65px;
font-size : 11px;
color : #eee;
text-decoration : none;
font-weight : bold;
background : url(../images/przycisk2.jpg) no-repeat;
text-indent : 24px;
padding-bottom : 2px;
}
a.mainlevel:hover {
color : #05b8f4;
text-indent : 30px;
background-position : 0 -65px;
text-decoration : none;
}
a.mainlevel#active_menu {
color : #333;
background-position : 0 -130px;
}
a.sublevel:link, a.sublevel:visited {
display : block;
width : 140px;
line-height : 65px;
font-size : 11px;
color : #eee;
text-decoration : none;
font-weight : bold;
background : url(../images/przycisk2.jpg) no-repeat;
text-indent : 24px;
padding-bottom : 2px;
}
a.sublevel:hover {
color : #05b8f4;
text-indent : 30px;
background-position : 0 -65px;
text-decoration : none;
}
a.sublevel#active_menu {
color : #333;
background-position : 0 -130px;
}
a.mainlevel-nav:link, a.mainlevel-nav:visited {
float : left;
display : block;
line-height : 65px;
font-size : 11px;
color : #ddd;
text-decoration : none;
font-weight : bold;
background : url(../images/przycisk2.jpg) repeat-x;
padding : 0px 10px 0px 10px;
border-right : 1px solid #777;
border-left : 1px solid #555;
vertical-align : top;
}
a.mainlevel-nav:hover {
color : #fff;
background-position : 0 -65px;
text-decoration : none;
}
a.mainlevel-nav#active_menu-nav {
color : #333;
background-position : 0 -130px;
text-decoration : none;
}
oto jest ten obiekt na ktorym chcialbym zeby pojawily sie linki mainmenu joomla
http://www.karp.team.jaroszow.pl/templates/echo/images/przycisk2.jpg
prosze o pomoc.pozdrawiam!