-
Flaggenproblem
Hallo ihr Lieben,
ja ich denke die Lösung ist sicher einfach, aber ich komm nicht drauf und suche schon seit Tagen eine Lösung.
Ich möchte meine eigenen Englischen und Deutschen Flaggen darstellen (das funktioniert noch nicht mal, wäre schon dankbar wenn ich das hinkriege) und die sollen einen mouseover bekommen.
Aso :-)...er zeigt mir wenn ich bei Medien meine Flaggen hochgeladen habe und den Pfad eingebe nur ein rotes x an.
Kann mir jmd. helfen?
-
-
Neu an Board
Ich kann jetzt leider nicht auf deine Seite schauen, weil du nicht schreibst, welche es ist (bitte URL angeben).
Wie hast du den Link auf die Flaggen angegeben? Könnte ich ja sehen, wenn ich deine Seite kenne.
In welchem Verzeichnis befinden sich die Dateien?
-
-
Hi Meredin,
ok das mit den Flaggen hab ich hinbekommen. Nun muss ich nur noch das mit dem mouseover machen.
Kann ich das in der php Datei? (ramimages.php)?
Geändert von Geanine (21.11.2011 um 14:11 Uhr)
-
-
Moderator
Mousover kannst du per CSS-Formatierungen umsetzen. Dazu eines dieser Tools installieren und schauen wo du wie eingreifen musst. Odr uns einen Link geben, dann schauen wir für dich nach:
http://www.time4joomla.de/joomla-17/...en-findet.html
Axel
-
-
Ja das ich dies mit css machen muss, weiß ich. Nur das Problem ist, das unser Admin alle Dateien hat und ich immer fragen muss ob er mir eine zum ändern gibt. Weißt du denn wie die Datei heißt?
Ist doch sicher wie bei der PHP Datei eine vorgegebene oder?!
-
-
Moderator
Hast du dir meinen Link angeschaut? Da findest du die Antwort auf deine Frage. Du kannst ja nun schlecht verlangen, dass ich extra wegen dir mir mal eben schnell eine mehrsprachige Seite einrichte, um das nachzuschauen. Davon ab hängt das aber auch vom verwendeten Template ab. Woher soll ich wissen, welches du benutzt und wie die CSS-Dateien dort heißen?
Axel
-
-
Ja den Link hab ich mir angesehen. Das wusste ich. Das Problem ist, dass ich ja auch nicht an die Dateien komme. Der Admin hat diese alle.
Ich habe auch keineswegs verlangt das du ne Seite baust um das nach zu sehen. Ich habe lediglich in meinem Beitrag vorher gefragt ob es eine bestehende gibt, sowie bei der rawimages.php. Diese war ja schliesslich auch schon da.
-
-
Moderator
Wenn du keinen Zugang zu den Daten hast, dann kannst auch nichts ändern. Somit erübrigt sich alles Weitere.
Axel
-
-
So nun hab ich die Dateien:-)
html Datei:
<html><body bgcolor="#FFFFFF"></body></html>
php Datei:
<?php
/**
* Joom!Fish - Multi Lingual extention and translation manager for Joomla!
* Copyright (C) 2003 - 2011, Think Network GmbH, Munich
*
* All rights reserved. The Joom!Fish project is a set of extentions for
* the content management system Joomla!. It enables Joomla!
* to manage multi lingual sites especially in all dynamic information
* which are stored in the database.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
*
* The "GNU General Public License" (GPL) is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* -----------------------------------------------------------------------------
* $Id: rawimages.php 1579 2011-04-16 17:05:48Z akede $
* @package joomfish
* @subpackage mod_jflanguageselection
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$outString = '<div id="jflanguageselection"><div class="rawimages">';
foreach( $langActive as $language )
{
$langActive = '';
if( $language->code == $curLanguage->getTag() ) {
if( !$show_active ) {
continue; // Not showing the active language
} else {
$langActive = ' id="active_language"';
}
}
$href = JFModuleHTML::_createHRef ($language, $params);
$langImg = JFModuleHTML::getLanguageImageSource($language);
$langImg = str_replace ('\\', '/', $langImg);
if (isset($language->disabled) && $language->disabled){
if( file_exists( JPATH_ROOT .DS. $langImg ) ) {
$outString .= '<span' .$langActive. ' style="opacity:0.5" class="opaque"><img src="' .JURI::base(false) . $langImg. '" alt="' .$language->name. '" title="' .$language->name. '" /></span>';
} else {
$outString .= '<span' .$langActive. ' style="opacity:0.5" class="opaque">' .$language->name. '</span>';
}
}
else {
if( file_exists( JPATH_ROOT .DS. $langImg ) ) {
$outString .= '<span' .$langActive. '><a href="' .$href. '"><img src="' .JURI::base(false) . $langImg. '" alt="' .$language->name. '" title="' .$language->name. '" /></a></span>';
} else {
$outString .= '<span' .$langActive. '><a href="' .$href. '">' .$language->name. '</a></span>';
}
}
}
$outString .= '</div></div>';
echo $outString;
if( $inc_jf_css && JFile::exists(JPATH_ROOT.DS.'modules'.DS.'mod_jfla nguageselection'.DS.'tmpl'.DS.'mod_jflanguageselec tion.css') ) {
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::base(true).'/modules/mod_jflanguageselection/tmpl/mod_jflanguageselection.css');
}
css Datei:
/**
* Joom!Fish - Multi Lingual extention and translation manager for Joomla!
* Copyright (C) 2003 - 2011, Think Network GmbH, Munich
*
* All rights reserved. The Joom!Fish project is a set of extentions for
* the content management system Joomla!. It enables Joomla!
* to manage multi lingual sites especially in all dynamic information
* which are stored in the database.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
*
* The "GNU General Public License" (GPL) is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* -----------------------------------------------------------------------------
* $Id: mod_jflanguageselection.css 1551 2011-03-24 13:03:07Z akede $
* @package joomfish
* @subpackage mod_jflanguageselection
*
*/
/* Joom!Fish CSS definition used by the module or component. You might overwrite it in your
* template and remove this. Within your module configuration you can switch off the loading of the css*/
#jflanguageselection
{
float: right;
margin: 15px 0px 10px 5px;
}
/* language lists with UL (names & images) */
#jflanguageselection ul.jflanguageselection
{
list-style: none;
padding: 0;
margin-top: 3px;
font-weight: normal;
}
#jflanguageselection ul.jflanguageselection li
{
background-image: none;
padding-left: 0px;
padding-right: 0px;
float: left;
margin: 1px 1px 1px 1px;
white-space: nowrap;
border: none;
font-size: 0.9em;
}
#jflanguageselection ul.jflanguageselection li#active_language
{
font-weight: bold;
font-size: 1.0em;
}
#jflanguageselection ul.jflanguageselection li a
{
display: block;
}
#jflanguageselection ul.jflanguageselection img
{
border: none;
}
div#jflanguageselection img.langImg {
float: left;
border: none;
margin-top: 3px;
}
div#jflanguageselection li img.langImg {
float: left;
border: none;
margin: 0px 1px 0px 1px;
}
/** Styles for the drop down list */
#jflanguageselection select.jflanguageselection
{
border: 1px solid #cccccc;
}
#jflanguageselection label.jflanguageselection
{
position:absolute;
left:-1000px;
}
/** Controls Raw Display of Images **/
.rawimages {
text-align: center;
margin-top: 3px;
}
.rawimages img {
border: none;
margin:2px;
}
.rawimages span#active_language img
{
margin:2px;
border: none;
}
div#jflanguageselection img.langImg{ float: left; border: none; margin-top: 3px; }
div#jflanguageselection li img.langImg{ float: left; border: none; margin: 1px 3px 0px 0px; }
#jflanguageselection .opaque{
filter:alpha(opacity=30);
}
#jflanguageselection option.opaque{
color:graytext;
}
so und meine Bilder heißen:
flag_germany_sw.gif
flag_germany.gif
flag_united_kingdom_sw.gif
flag_united_kingdom.gif
und liegen in folgenden Ordner:
components/com_joomfish/images/
Ich hoffe du kannst damit was anfange.
Ich wollte den Bildern nen mouseover geben, aber irgendwie steh ich aufem Schlauch.
-
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
Foren-Regeln
Lesezeichen