News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Цивильное открытие фото - full size с изменением цв

Started by Beer, March 24, 2009, 10:19:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Beer

 Не понравилось мне скачущее окошко при просмотре фото, хотелось привычного вида как на фотосайтах.

themes.inc.php (стр. 2158)
$pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=no')\">";

themes.inc.php заменяем содержимое от
<body>
бла-бла-бла
</body>
на такое:
<body bgcolor="#a0a0a0">
<table width="100%" height="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1%" valign="top">
<table width="20">
<tr>
<td height="15"  bgcolor="#ffffff" onmouseover="SetBgColor('#ffffff')"></td>
</tr>
<tr>
<td height="15" bgcolor="#e0e0e0" onmouseover="SetBgColor('#e0e0e0')"></td>
</tr>
<tr>
<td height="15" bgcolor="#c0c0c0" onmouseover="SetBgColor('#c0c0c0')"></td>
</tr>
<tr>
<td height="15" bgcolor="#a0a0a0" onmouseover="SetBgColor('#a0a0a0')"></td>
</tr>
<tr>
<td height="15" bgcolor="#808080" onmouseover="SetBgColor('#808080')"></td>
</tr>
<tr>
<td height="15" bgcolor="#606060" onmouseover="SetBgColor('#606060')"></td>
</tr>
<tr>
<td height="15" bgcolor="#404040" onmouseover="SetBgColor('#404040')"></td>
</tr>
<tr>
<td height="15" bgcolor="#202020" onmouseover="SetBgColor('#202020')"></td>
</tr>
<tr>
<td height="15" bgcolor="#000000" onmouseover="SetBgColor('#000000')"></td>
</tr>
</table>
</td>
<td align="center">
<a href="" onClick="window.close()" title="(кликните по изображению, чтобы закрыть окно)">
          <div id="content">
              <?php     echo  '<a href="javascript: window.close()"><img src="'
                
htmlspecialchars($imagedata['path']) . '" '
                
$imagedata['geometry']
                . 
'alt="'
                
htmlspecialchars($imagedata['name'])
                . 
'" title="'
                
htmlspecialchars($imagedata['name'])
                . 
"\n" $lang_fullsize_popup['click_to_close']
                . 
'" /></a><br />' ."\n";
               
?>

          </div>
</a>
</td>
</tr>
</table>

  </body>


Наслаждаемся. ;D

Alex Revo



AndreyTs

Что то немного не так получается... кажется всё точно так сделал как показано, но выходит не совсем то, шкала цветов совсем другая и не работает она...
http://khabarovsk.vg/gallery_photo/displayimage.php?pid=5&fullsize=1