嗨我正面临一个strang问题,即查询字符串的一部分在页面上的标题中显示我使用了以下功能
function tabVideo(){
global $db,$bll;
?>
<table width="100%" align="center" border="0" cellspacing="0" bgcolor="CCCDE2">
<?
$page_vi=$_GET['page_vi'];
$rec_per_page=3;
if (empty($page_vi)) $page_vi = 1;
$sql = "SELECT COUNT(*) as total_rec FROM think_video";
$rs = $db->sql_fetchrow($db->sql_query($sql));
$total_rec = $rs['total_rec'];
// find out how many pages
$total_pages = ceil($total_rec / $rec_per_page);
// find out where to start at
$start = ($page_vi*$rec_per_page)-$rec_per_page;
$sql="select id,videotitle,videodescription,videofile,DATE_FORMAT(FROM_UNIXTIME(videodate),'%d/%m/%Y') as videodate, videodate as vd from think_video order by vd DESC limit $start,$rec_per_page";
$result = $db->sql_query($sql);
while($row=$db->sql_fetchrow($result)){
?>
<tr>
<td> </td>
<td align="left" valign="middle" style="padding-top:15px; padding-left:20px">
<script type="text/javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '520',
'height', '300',
'src', 'fplayer/lib/fPlayer/fPlayerIn',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'exactfit',
'wmode', 'window',
'devicefont', 'false',
'id', 'fPlayer',
'bgcolor', '#000000',
'name', 'fPlayer',
'menu', 'true',
'FlashVars', 'playList=fplayer/db/xml/<?=trim($row['id'])?>.xml',
'allowFullScreen', 'true',
'allowScriptAccess','sameDomain',
'movie', 'fplayer/lib/fPlayer/fPlayerIn',
'salign', ''
); //end AC code
}
</script>
</td>
<td> </td>
</tr>
<tr >
<td> </td>
<td align="left" valign="middle" style="padding-left:20px">
<div class="text3"><?=$row['videodate']." ".trim($row['videotitle'])?></div>
<div class="text4 b" align="justify"><?=trim($row['videodescription'])?></span> </td>
<td> </td>
</tr>
<tr>
<td colspan="3" class="solid-line" align="justify" valign="middle"> </td>
</tr>
<? }
if($page_vi>1)
$paging .= '<a href="think-in-de-pers.php?tabid=div_video&page_vi='.($page_vi-1).'**#fragment-1**" class="link8" style="float:left"><< terug naar vorige video’s </a>';
if($page_vi<$total_pages)
$paging .= '<a href="think-in-de-pers.php?tabid=div_video&page_vi='.($page_vi+1).'**#fragment-1**" class="link8" style="float:right">klik hier voor oudere video’s >> </a>';
$NavigationButton = $paging;
// paging end
if($total_rec==0){
$NavigationButton="<div style='width:100%; height:200px;text-align:center; padding-top:90px' class='hddd'>Binnenkort</div>";
}
?>
<tr><td colspan="3" style="padding-left:20px" align="center"> <?=$NavigationButton; ?></td>
</tr>
</table>
这封信#fragment-1的标题来自IE上的这个问题
答案 0 :(得分:2)
这是旧Flash and IE URL problem。希望能为你解决这个问题。
答案 1 :(得分:-1)
所有奇怪的问题都是调查的对象
这项调查在编程科学中称为debugging
IBM有一篇很好的文章开头:http://www.ibm.com/developerworks/library/os-debug/