|
|||
|
?ffne mal die Datei media_content.php in Deinem Shopverzecihnis.
Dort ist ab Zeile 40 ein Script eingebettet. Du brauchst nur die Gr??enangaben nur anzupassen. Ich hab keine Ahnung von PHP, aber bei mir hat's geholfen. <script type="text/javascript"><!-- var i=0; function resize() { if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width +600, document.images[0].height+400-i); self.focus(); } //--></script> Gru? Sylvia |
|
||||
|
ja dann erweitere doch obigen code um die pdf abfrage.
Code:
if ($content_data['content_link']=='') {
if (eregi('.html',$content_data['content_file'])
or eregi('.htm',$content_data['content_file'])
or eregi('.txt',$content_data['content_file'])
or eregi('.bmp',$content_data['content_file'])
or eregi('.jpg',$content_data['content_file'])
or eregi('.gif',$content_data['content_file'])
or eregi('.png',$content_data['content_file'])
or eregi('.tif',$content_data['content_file'])
or eregi('.pdf',$content_data['content_file'])
)
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint. .:netzdesign33.de:. | .:blog33.de:. |
|
|||
|
$button = '<a style="cursor:hand" onClick="javascript:window.open(\''.xtc_href_link( FILENAME_MEDIA_CONTENT,'coID='.$content_data['content_id']).'\', \'popup\', \'toolbar=0, width=900, height=\')">'. xtc_image_button('button_view.gif',TEXT_VIEW).'</a>';
} else { // original $button = '<a style="cursor:hand" onClick="javascript:window.open(\''.xtc_href_link( FILENAME_MEDIA_CONTENT,'coID='.$content_data['content_id']).'\', \'popup\', \'toolbar=0, width=900, height=\')">'. xtc_image_button('button_download.gif',TEXT_DOWNLO AD).'</a>'; //Dateien GG im popup öffnen $button= '<a style="cursor:hand" onClick="javascript:window.open(\''.xtc_href_link( 'media/products/'.$content_data['content_file']).'\', \'popup\', \'toolbar=1, width=900, height=100%\')">'.xtc_image_button('button_downloa d.gif',TEXT_DOWNLOAD).'</a>'; } } Was mir auff?llt sind 2 Dinge: Im 1. "window.open" wird er Parameter "height" ohne Wert angegeben. Setze doch mal einen Wert (z.B. height=750 (oder height=screen.height, um die volle Bildschirmh?he zu bekommen)). Im 2. "window.open" wird er Parameter "height" mit "height=100%" angegeben. Die "window.open" definition (siehe z.B. "http://de.selfhtml.org/javascript/objekte/window.htm#open") sagt aber, dass das ein Wert in Pixeln sein muss. Probiere mal "height=screen.height". |
![]() |
| Lesezeichen |
| Stichworte |
| content, linkbuttons, media, popup |
| Themen-Optionen | |
| Ansicht | |
|
|