Code: Select all
tag('img src="'.$pth['folder']['templateimages'].'button-left-0.png" ')
Code: Select all
tag('img src="'.$pth['folder']['templateimages'].'button-left-0.png" ')
Code: Select all
<img src="..." onMouseOut='this.src="<?php echo $pth['...']['...'];?>image-out.jpg "' onMouseOut='this.src"<?php echo $pth['...']['...'];?>image-over"' alt="<?php echo $ptc['...']['...'];?>"
Das sollte so funktionieren:Tata wrote:Ich meinte, wie geht es in tag(img...) reingeben. Ich kann nicht die richtige Syntax.
Code: Select all
<?php echo tag("img src=\"…\" onmouseout='this.src=\"{$pth['…']['…']}image-out.jpg\"' onmouseover='this.src=\"{$pth['…']['…']}image-over.jpg\"' alt=\"{$ptx['…']['…']}\"")?>
Code: Select all
function tpl_previouspage_left()
{
global $tx, $pth;
$index = XH_findPreviousPage();
if ($index !== false) {
return a($index, '" rel="prev" alt="' . $tx['navigator']['previous'])
. tag("img src=\"{$pth['folder']['templateimages']}button-left-0.png\" onmouseout='this.src=\"{$pth['folder']['templateimages']}button-left-0.png\"' onmouseover='this.src=\"{$pth['folder']['templateimages']}button-left-1.png\"' alt=\"{$$tx['navigator']['previous']}\"") . '</a>';
}
}
function tpl_nextpage_right()
{
global $tx, $pth;
$index = XH_findNextPage();
if ($index !== false) {
return a($index, '" rel="next" alt="' . $tx['navigator']['next']) . tag("img src=\"{$pth['folder']['templateimages']}button-right-0.png\" onmouseout='this.src=\"{$pth['folder']['templateimages']}button-right-0.png\"' onmouseover='this.src=\"{$pth['folder']['templateimages']}button-right-1.png\"' alt=\"{$$tx['navigator']['next']}\"") . '</a>';
}
}
function tpl_previouspage_top()
{
global $tx, $pth;
$index = XH_findPreviousPage();
if ($index !== false) {
return a($index, '" rel="prev" alt="' . $tx['navigator']['previous'])
. tag("img src=\"{$pth['folder']['templateimages']}button-top-0.png\" onmouseout='this.src=\"{$pth['folder']['templateimages']}button-top-0.png\"' onmouseover='this.src=\"{$pth['folder']['templateimages']}button-top-1.png\"' alt=\"{$$tx['navigator']['previous']}\"") . '</a>';
}
}
function tpl_nextpage_bottom()
{
global $tx, $pth;
$index = XH_findNextPage();
if ($index !== false) {
return a($index, '" rel="next" alt="' . $tx['navigator']['next']) . tag("img src=\"{$pth['folder']['templateimages']}button-bottom-0.png\" onmouseout='this.src=\"{$pth['folder']['templateimages']}button-bottom-0.png\"' onmouseover='this.src=\"{$pth['folder']['templateimages']}button-bottom-1.png\"' alt=\"{$$tx['navigator']['previous']}\"") . '</a>';
}
}
function tpl_top()
{
global $tx, $pth;
return '<a href="./#TOP">' . tag("img src=\"{$pth['folder']['templateimages']}button-top-0.png\" onmouseout='this.src=\"{$pth['folder']['templateimages']}button-top-0.png\"' onmouseover='this.src=\"{$pth['folder']['templateimages']}button-top-1.png\"' alt=\"{$ptx['navigator']['top']}\"") . '</a>';
}
Code: Select all
.top{cursor: pointer; position: fixed; left: 50%; right: 50%; bottom: 10px;}
.previous_page, .next_page{ position: fixed; top: 50%; z-index: 100; cursor: pointer;}
.previous_page{ left: 0;}
.next_page{ right: 0;}
Code: Select all
<div class="previous_page"><?php echo tpl_previouspage_left();?></div>
<div class="next_page"><?php echo tpl_nextpage_right();?></div>
<div class="top"><?php echo tpl_top();?></div>
Code: Select all
<?php
function tpl_scrollDown()
{
global $tx, $pth;
echo "<script type = 'text/javascript'>function scrollWin() {window.scrollBy(0, window.innerHeight-100)}</script>"; //change the value if needed
return tag("img src=\"$pth['folder']['templateimages']}button-bottom-0.png\" onmouseout='this.src=\"{$pth['folder']['templateimages']}button-bottom-0.png\"' onmouseover='this.src=\"{$pth['folder']['templateimages']}button-bottom-1.png\"' onclick=\"scrollWin()\" alt=\"SCROLL DOWN\"");
}