Po pridani reklamniho panelu mi script nefunguje a pri tom mi puvodni na lokale beha ....
Chyba : Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /3w/wz.cz/j/jira/index.php on line 35
Puvodni script:
<?
echo'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<TITLE>Fotogragie Jira Stary</TITLE>
<META content=Public http-equiv=Cache-Control>
<META content="text/html; charset=windows-1250" http-equiv=Content-Type>
<META content=Czech name=language>
<LINK href="../styly.css" rel="StyleSheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!--//
function openWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function getDetail(pic_num){
var pic_num_str=pic_num+"foto";
window.open(\'detail2.php\',pic_num_str,\'width=630,height=570\');
document.all.image.src="pics/trnavka 2002/1.jpg";
}
//-->
</SCRIPT>
</head>
<body bgcolor="#000000" text="Silver" link="#00CC00" vlink="#009900" alink="#006600">
//pocet fotek v adresari
$pocet_fotek=12;
//adresar pro fotky
$fotky_src ="";
//pocet slopucu v nahledu
$sloupcu = 2;
<table>';
for($i=1;$i<12;$i++){
//$image_name = "0".$i;
echo'<tr>
<td width="170" align="center">
<A href="">
<img src="pics/trnavka 2002/'.$i.'.jpg" border="0" alt="zvětšit" style="border: 3px outset Silver;" onclick="getDetail('.$i.');">
</A>
</td>
</tr>';
}
echo'</table>';
echo'<br>
</body>
';
?>
Script po pridani reklamy :
<?
echo'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<TITLE>Fotogragie Jira Stary</TITLE>
<META content=Public http-equiv=Cache-Control>
<META content="text/html; charset=windows-1250" http-equiv=Content-Type>
<META content=Czech name=language>
<LINK href="../styly.css" rel="StyleSheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!--//
function openWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function getDetail(pic_num){
var pic_num_str=pic_num+"foto";
window.open(\'detail2.php\',pic_num_str,\'width=630,height=570\');
document.all.image.src="pics/trnavka 2002/1.jpg";
}
//-->
</SCRIPT>
</head>
<body bgcolor="#000000" text="Silver" link="#00CC00" vlink="#009900" alink="#006600"><!--WZ-REKLAMA-1.0IZ--><div align="center"><table width="496" border="0" cellspacing="0" cellpadding="0"><tr><td
width="28"><a href="http://www.wz.cz/" target="_blank"><img src="http://wz.cz/banner/nudle03.gif"
width="28" height="60" border="0" alt="WebZdarma.cz" /></a></td><td width="468">
<!-- START ADCYCLE -->
<script type="text/javascript" language="javascript">
<!-- /* c 2001 AdCycle.com All Rights Reserved.*/
var id=494;
var jar=new Date();var s=jar.getSeconds();var m=jar.getMinutes();
var flash=s*m+id;var cgi='http://ad.wz.cz';
var p='<iframe src="'+cgi+'/ad.cgi?gid=30&t=_top&id='+flash+'&type=iframe" ';
p+='height="60" width="468" border="0" marginwidth="0" marginheight="0" hspace="0" ';
p+='vspace="0" frameborder="0" scrolling="no">';
p+='<a href="'+cgi+'/click.cgi?manager=adcycle.com&gid=30&id='+flash+'" target="_top">';
p+='<img src="'+cgi+'/ad.cgi?gid=30&id='+flash+'" width="468" height="60" ';
p+='border="0" alt="Klikni" /></'+'a></'+'ifra'+'me>'; document.write(p); // -->
</script><noscript><a href="http://ad.wz.cz/click.cgi?manager=adcycle.com&gid=30&id=494"
target="_top"><img src="http://ad.wz.cz/ad.cgi?gid=30&id=494"
width="468" height="60" border="0" alt="Klikni" /></a></noscript><!-- END ADCYCLE -->
</td></tr></table></div>
<!--WZ-REKLAMA-1.0IK-->
//pocet fotek v adresari
//$pocet_fotek=12;
//adresar pro fotky
//$fotky_src ="";
//pocet slopucu v nahledu
//$sloupcu = 2;
<table>';
for($i=1;$i<12;$i++){
//$image_name = "0".$i;
echo'<tr>
<td width="170" align="center">
<A href="">
<img src="pics/trnavka 2002/'.$i.'.jpg" border="0" alt="zvětšit" style="border: 3px outset Silver;" onclick="getDetail('.$i.');">
</A>
</td>
</tr>';
}
echo'</table>';
echo'<br>
</body>
';
?>
Chyba je v miste pridaneho webzdarma ... ne ze by me to nesralo :)
Co s tim ?
Petr