Code: Alles auswählen
#
#-----[ OPEN ]-----
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]-----
#
<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->
#
#-----[ REPLACE WITH ]-----
#
<!-- BEGIN img --><img src="{URL}" onLoad="scaleImage(this)" border="0" /><!-- END img -->
#
#-----[ OPEN ]-----
#
templates/subsilver/overall_header.tpl
#
#-----[ FIND ]-----
#
</head>
#
#-----[ BEFORE, ADD ]-----
#
<script type="text/javascript">
<!--
var maxImageWidth = 400;
function unscaleImage()
{
if(maxImageWidth > 0)
this.width = this.width == maxImageWidth ? this.orgwidth : maxImageWidth;
}
function scaleImage(im)
{
if (maxImageWidth > 0 && im.width > maxImageWidth)
{
im.orgwidth = im.width;
im.width = maxImageWidth;
im.onclick = unscaleImage;
im.title = "Click for fullsize view";
im.style.cursor = 'pointer';
}
}
//-->
</script>
<script language="JavaScript" type="text/javascript">unscaleImage();</script>
#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM