RT PRINT
RT PRINT
habe ich beim RT [PRINT] die möglichkeit eine ALT beschreibung dazuzugeben ?
wenn ja wo ?
grüße
markus s
--------------------
Inhalt dieses Threats:
wie ändere ich den replacement tag PRINT
wo stehen die anweisungen für die replacement tags
wie gestalte ich eine DOM anbindung in phpwcms
--------------------
wenn ja wo ?
grüße
markus s
--------------------
Inhalt dieses Threats:
wie ändere ich den replacement tag PRINT
wo stehen die anweisungen für die replacement tags
wie gestalte ich eine DOM anbindung in phpwcms
--------------------
Last edited by markus s on Mon 1. Jan 2007, 22:36, edited 1 time in total.
Hi,
z.B. mit einer Grafik:
Knut
z.B. mit einer Grafik:
Code: Select all
[PRINT]<img src="picture/navi/l_print.gif" border="0" vspace="0" hspace="10" alt="Druckansicht" width="21" height="21" title="Drucken" />[/PRINT]
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
evt. hier ?
kann ich hier ein mouse over enpflegen ?
inder content.func.inc:
ich müsste diese mouse over einpflegen:
geht das ?
grüße
markus s
inder content.func.inc:
Code: Select all
$content["all"] = str_replace('[PRINT]', '<a href="index.php?id='.$aktion[0].','.$aktion[1].',1,'.$aktion[3].','.$aktion[4].','.$aktion[5].$content['print_array'].'" target="_blank">', $content["all"]);
Code: Select all
onmouseover="domTT_activate(this, event, 'content', 'Suchen Sie Ihre Begriffe', 'trail', true, 'direction', 'northeast', 'delay', 1);"
grüße
markus s
Was hältst du von so einer Variante, ohne JS:
Aufruf:
CSS:Nicht getestet, aber müsste eigentlich funktionieren.
Knut
Aufruf:
Code: Select all
<div class="print_hover">[PRINT]<img src="img/leer.gif" border="0" vspace="0" hspace="4" alt="Druckansicht" width="21" height="21" title="Drucken" />[/PRINT]</div>
Code: Select all
.print_hover A:active,.print_hover A:link,.print_hover A:visited {
display: block;
height: 21px;
width: 21px;
margin: 0; padding: 0;
background: url(../../picture/navi/print1.gif) 0px 0px no-repeat;
}
.print_hover A:hover {
display: block;
height: 21px;
width: 21px;
margin: 0; padding: 0;
background: url(../../picture/navi/print2.gif) 0px 0px no-repeat;
}
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Sollte gehen, wenn du es in die Funktion hineinhackst.
Aber dann in deine Patchliste eintragen. Denn das nächste Update kommt bestimmt.
Knut
Aber dann in deine Patchliste eintragen. Denn das nächste Update kommt bestimmt.
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Hallo pepe,
hat er schon gefunden, drei Post´tsts höher.
Viel schlimmer, ich weiß nicht was eine "DOM script variante" ist.
Ist das Cross-browsing fähig?
[EDIT]Ah, verstehe, wird also mit dem Browser sozusagen mitgeliefert. (Hoffentlich auch mit allen in gleicher Form). [/EDIT]
Knut
hat er schon gefunden, drei Post´tsts höher.
Viel schlimmer, ich weiß nicht was eine "DOM script variante" ist.
Ist das Cross-browsing fähig?
[EDIT]Ah, verstehe, wird also mit dem Browser sozusagen mitgeliefert. (Hoffentlich auch mit allen in gleicher Form). [/EDIT]
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Au man ja... jetzt seh ichs auch!
Ich hatte gerade gerade mit beiden Ohren auf 3SAT "gerichtet" und nicht richtig aufgepaßt
markus s wird uns diese offene Frage aber garantiert gleich beantworten...
oder bei WIKIPEDIA: http://de.wikipedia.org/wiki/Document_Object_Model
Das ist ja das Schöne am forum... alle lernen was dazu.
Ich hatte gerade gerade mit beiden Ohren auf 3SAT "gerichtet" und nicht richtig aufgepaßt

markus s wird uns diese offene Frage aber garantiert gleich beantworten...
oder bei WIKIPEDIA: http://de.wikipedia.org/wiki/Document_Object_Model
Das ist ja das Schöne am forum... alle lernen was dazu.
DOM
aaallso - das ist was für jeden toolliebhaber:
download der variante unter http://www.mojavelinux.com/projects/domtooltip/
http://www.mojavelinux.com/cooker/downl ... .3.tar.gz/
mit diesem kleinen script kann man mouse over effekte erzeugen.
aus datenbanken oder per hand eingetragen.
ist total easy zu installieren.
einfach in den head schreiben:
aussehenin der example.css ändern
und im body (oder ich habs imn der fusszeile):
dann hat man ein wunderschönes mouseover mit dem textihalt
'Suchen Sie Ihre Begriffe''.
ich habe das für meine SUCHE verwedet.
- nur ich möchte das im PRINT verankern !!!!!!
dont forget
grüße
markus
download der variante unter http://www.mojavelinux.com/projects/domtooltip/
http://www.mojavelinux.com/cooker/downl ... .3.tar.gz/
mit diesem kleinen script kann man mouse over effekte erzeugen.
aus datenbanken oder per hand eingetragen.
ist total easy zu installieren.
einfach in den head schreiben:
Code: Select all
<script type="text/javascript" language="javascript" src="../domTT/domLib.js"></script>
<script type="text/javascript" language="javascript" src="../domTT/fadomatic.js"></script>
<script type="text/javascript" language="javascript" src="../domTT/domTT.js"></script>
<script type="text/javascript" language="javascript">var domTT_styleClass = 'domTTOverlib';</script>
<style>
@import url(../domTT/example.css);
</style>
und im body (oder ich habs imn der fusszeile):
Code: Select all
<a onmouseover="domTT_activate(this, event, 'content', 'Suchen Sie Ihre Begriffe', 'trail', true, 'direction', 'northeast', 'delay', 1);" href="index.php?suche" target="_self" Alt="Suche nach bestimmten Begriffen" >
{IMAGE:search_link.gif}</a>
'Suchen Sie Ihre Begriffe''.
ich habe das für meine SUCHE verwedet.
- nur ich möchte das im PRINT verankern !!!!!!
dont forget
grüße
markus
wie schauts aus ?
nochmal in memoriam:
weiß jemand wie man in das Rtag [PRINT] ein mouse
over nach oben beschriebenem muster einbinden kann ?
ich wäre für infos dankbar.
grüße
markus s
weiß jemand wie man in das Rtag [PRINT] ein mouse
over nach oben beschriebenem muster einbinden kann ?
ich wäre für infos dankbar.
grüße
markus s

-
- Posts: 42
- Joined: Thu 18. Nov 2004, 23:07
- Location: Switzerland
- Contact:
Solution: replace [PRINT] by tag <a ...> with mouseove
Here is a solution that I tested and you can see here: http://swiss-unitrade.com/index.php?home-de (see print icon on right side). The objective was to use an icon and to change the image on "mouseover".
The solution doesn't need any change in phpwcms. The onl important thing is to build the URI for printing to be able to use the <a> tag. The following line is creating you the URI for printing (use print=2 for PDF generation):
Explanation of the parts:
1. string "http://"
2. echo $_SERVER['SERVER_NAME'] = "swiss-unitrade.com"
3. echo $_SERVER['REQUEST_URI'] = "\index.php?home-de"
4. &print=1 = "&print=1"
Result: "http://swiss-unitrade.com/index.php?home-de&print=1".
The code for the <a> tag looks as follows:
You can preload the mouseover image in the header section with:
Hope this helps....
Best regards
The solution doesn't need any change in phpwcms. The onl important thing is to build the URI for printing to be able to use the <a> tag. The following line is creating you the URI for printing (use print=2 for PDF generation):
Code: Select all
http://[PHP]echo $_SERVER['SERVER_NAME']; echo $_SERVER['REQUEST_URI'];[/PHP]&print=1
1. string "http://"
2. echo $_SERVER['SERVER_NAME'] = "swiss-unitrade.com"
3. echo $_SERVER['REQUEST_URI'] = "\index.php?home-de"
4. &print=1 = "&print=1"
Result: "http://swiss-unitrade.com/index.php?home-de&print=1".
The code for the <a> tag looks as follows:
Code: Select all
<a href="http://[PHP]echo $_SERVER['SERVER_NAME']; echo $_SERVER['REQUEST_URI'];[/PHP]&print=1"
onMouseover="iconpic03.src='picture/icons/print1.png';"
onMouseout="iconpic03.src='picture/icons/print0.png';"
target="_blank">
<img src="picture/icons/print0.png" name="iconpic03" border="0" />
</a>
Code: Select all
<script language="JavaScript" type="text/javascript">
<!--
iconpic = new Image(55, 55);
iconpic.src = "picture/icons/print1.png";
iconpic = new Image(55, 55);
//-->
</script>
Best regards