Startseite Beiträge von Heute Kalender Boardsuche Benutzerliste FAQ Deine Einstellungen ändern Neue Beiträge
Navigation
Go Back   Mambo / Joomla Hosting Talk (MHT/JHT) > Hosting Forums > Mambo/Joomla Templates & Web Design
User Name
Password
Reply
 
Thread Tools Display Modes

Old 04-23-2008, 12:51 PM   #1  
JoomTalk JoomTalk is offline
Junior Member
 
Join Date: Apr 2008
Posts: 13

Exclamation How to use my own custom images for buttons in Menu?

I am creating my first Joomla web site, using my own template that I created in Photoshop and Dreamweaver, then adapting it to work with Joomla (v1.0.5).

I have hit a wall in figuring out how to use my custom rollover menu buttons in Joomla. They work well in the Non-Joomlaized CSS site, but I haven't yet discovered how to convert the CSS/Joomla coding to get them to work in my Joomla template.

CAn anyone help me here? I'm banging my head on the wall, and the wall ain't budging, just getting a headache!

Here is what the site should look like (link to a non-Joomlized html site):
HTML Code:
http://circledigital.com/AngelinaRef/AngelinaRef.html
Here is what it is presently looking like in Joomla without my custom rollover buttons:
HTML Code:
http://circledigital.com/AngelinaYoga2/
Here is the template_css.css coding:

Code:
body { background-color: #529cc4; background-image: url(../images/BkGrndImg.jpg); background-repeat: repeat-x; margin: 0 auto; text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #666666; } #container { width: 765px; margin: 0 auto; background-color: #ffffff; overflow:hidden; } #header { width: 765px; height: 170px; background-image: url(../images/Banner.jpg); margin: 0 auto; } #menu { margin-left: 559px; width: 206px; height: 300px; } a.BtnHome { display: block; width: 206px; height: 33px; background: url(../images/Btn_Home.jpg) no-repeat 0em 0em; text-decoration: none; } a:hover.BtnHome { background-position: 0 -33px; } a.BtnClass { display: block; width: 206px; height: 28px; background: url(../images/Btn_Classes.jpg) no-repeat 0em 0em; text-decoration: none; } a:hover.BtnClass { background-position: 0 -28px; } a.BtnCal { display: block; width: 206px; height: 27px; background: url(../images/Btn_Cal.jpg) no-repeat 0em 0em; text-decoration: none; } a:hover.BtnCal { background-position: 0 -27px; } a.BtnBio { display: block; width: 206px; height: 27px; background: url(../images/Btn_Bio.jpg) no-repeat 0em 0em; text-decoration: none; } a:hover.BtnBio{ background-position: 0 -27px; } a.BtnContact { display: block; width: 206px; height: 27px; background: url(../images/Btn_Contact.jpg) no-repeat 0em 0em; text-decoration: none; } a:hover.BtnContact{ background-position: 0 -27px; } a.BtnFoot { display: block; width: 206px; height: 54px; background: url(../images/Btn_Foot.jpg) no-repeat 0em 0em; text-decoration: none; } #content { text-align: left; width: 500px; margin: 0 auto; float: left; padding-right: 10px; padding-left: 30px; } #footer { clear:both; width: 765px; margin: 0 auto; color: #ebebeb; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; text-align: center; padding: 10px; }.TitleFont { font-family: Verdana, Arial, Helvetica, sans-serif; color: #9dbc3d; font-size: 16px; font-weight: bold; } .MainTxt { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #666666; }
***********************************

Here is the index.php coding:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?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">
<?php $iso = split( '=', _ISO ); echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $GLOBALS[mosConfig_live_site]; ?>/templates/<?php echo $GLOBALS[cur_template]; ?>/css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header"></div>

<div id="container">
<div id="content">
<?php mosMainBody(); ?>
<?php mosLoadModules ( 'user1', -2 ); ?>
</div>
<div id="menu">
<?php mosLoadModules ( 'right', -2 ); ?>
</div>
</div>

<div id="footer">Site Map / Home / Classes / Bio / Calander / Contact<br />
Site Design By Circle Digital</div>
</body>
</html>
Reply With Quote
Old 04-27-2008, 03:12 AM   #2  
keliix06 keliix06 is offline
Administrator
 
Join Date: Mar 2005
Location: Minneapolis, MN
Posts: 388

Default

First thing's first, upgrade from 1.0.5. It's terribly insecure.

To complete the menu, I would move the person doing yoga out of the images and have her on her own div with a higher z-index. Then, have the text of the buttons real text so they are spiderable. Then, on the hover change the left padding and add the background image in.
__________________
Doyle Lewis - BuyHTTP Internet Services
keliix06 [at] gmail.com
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:10 PM.

Home . Members . FAQ . User CP . New Posts . Today's Posts . Media Kit
 
Joomla Top Sites - Your Primary Source of Joomla Traffic
Web Hosting . Mambo Tutorials . Joomla Hosting . Mambo Hosting . Joomla Top Sites . Joomla Advertising . Web Hosting Flash Tutorials . Joomla & Mambo Freelancers . Joomla Template Providers
Powered by vBulletin - Based on design by vbdesigns.de - © 2005 - 2006 by BuyHTTP Internet Services
Top Top
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.