php sayfamın tamamı bu alttaki kod
<br/>
<?
extract($search_results);
?>
<br>
<?if ($search_results['did_you_mean']){?>
<div id="did_you_mean">
Did you mean: <a href="<?='search.php?query='.quote_replace(addmark s($search_results['did_you_mean'])).'&search=1'?>"><?=$search_results['did_you_mean_b']; ?></a>?
</div>
<? }?>
<?if ($search_results['ignore_words']){?>
<div id="common_report">
<?while ($thisword=each($ignore_words)) {
$ignored .= " ".$thisword[1];
}
$msg = str_replace ('%ignored_words', $ignored, $sph_messages["ignoredWords"]);
echo $msg; ?>
</div>
<? }?>
<?if ($search_results['total_results']==0){?>
<div id ="result_report">
<?
$msg = str_replace ('%query', $ent_query, $sph_messages["noMatch"]);
echo $msg;
?>
</div>
<? }?>
<?if ($total_results != 0 && $from <= $to){?>
<div id ="result_report">
<?
$result = $sph_messages['Results'];
$result = str_replace ('%from', $from, $result);
$result = str_replace ('%to', $to, $result);
$result = str_replace ('%all', $total_results, $result);
$matchword = $sph_messages["matches"];
if ($total_results== 1) {
$matchword= $sph_messages["match"];
} else {
$matchword= $sph_messages["matches"];
}
$result = str_replace ('%matchword', $matchword, $result);
$result = str_replace ('%secs', $time, $result);
echo $result;
?>
</div>
<? }?>
<?if (isset($qry_results)) {
?>
<div id="results">
<!-- results listing -->
<?foreach ($qry_results as $_key => $_row){
$last_domain = $domain_name;
extract($_row);
if ($show_query_scores == 0) {
$weight = '';
} else {
$weight = "[$weight%]";
}
?>
<? if ($domain_name==$last_domain && $merge_site_results == 1 && $domain == "") {?>
<div class="idented">
<?}?>
<b></b>
<a href="<?=$url?>" class="title"> <?=($title?$title:$sph_messages['Untitled'])?></a><br/>
<div class="description"><?=$fulltxt?></div>
<div class="url"><?=$url2?> - <?=$page_size?></div>
<? if ($domain_name==$last_domain && $merge_site_results == 1 && $domain == "") {?>
[ <a href="<?='search.php?query='.quote_replace(addmark s($query)).'&search=1&results='.$results_per_page. '&domain='.$domain_name?>">More results from <?=$domain_name?></a> ]
</div class="idented">
<?}?>
<br/>
<? }
}?>
<!-- links to other result pages-->
<?if (isset($other_pages)) {
if ($adv==1) {
$adv_qry = "&adv=1";
}
if ($type != "") {
$type_qry = "&type=$type";
}
?>
<div id="other_pages">
<?=$sph_messages["Result page"]?>:
<?if ($start >1){?>
<a href="<?='search.php?query='.quote_replace(addmark s($query)).'&start='.$prev.'&search=1&results='.$r esults_per_page.$type_qry.$adv_qry.'&domain='.$dom ain?>"><?=$sph_messages['Previous']?></a>
<? }?>
<? foreach ($other_pages as $page_num) {
if ($page_num !=$start){?>
<a href="<?='search.php?query='.quote_replace(addmark s($query)).'&start='.$page_num.'&search=1&results= '.$results_per_page.$type_qry.$adv_qry.'&domain='. $domain?>"><?=$page_num?></a>
<?} else {?>
<b><?=$page_num?></b>
<? }?>
<? }?>
<?if ($next <= $pages){?>
<a href="<?='search.php?query='.quote_replace(addmark s($query)).'&start='.$next.'&search=1&results='.$r esults_per_page.$type_qry.$adv_qry.'&domain='.$dom ain?>"><?=$sph_messages['Next']?></a>
<? }?>
</div>
<?}?>
<div class="divline">
</div>
<div id="powered_by">
<!--If you want to remove this, please donate to the project-->
<?poweredby()?>
</div>
</div>
----------------------------------------------
JavaScript içeren kodun tamamı bu
<script language="JavaScript">
<!--
// Browser tespiti
ns4 = document.layers;
ie4 = document.all;
nn6 = document.getElementById && !document.all;
function showObject(e) {
if (ns4) {
document.n1.visibility = "show";
}
else if (ie4) {
document.all['n1'].style.visibility = "visible";
}
else if (nn6) {
document.getElementById('n1').style.visibility = "visible";
}
}
function hideObject() {
if (ns4) {
document.n1.visibility = "hide";
}
else if (ie4) {
document.all['n1'].style.visibility = "hidden";
}
else if (nn6) {
document.getElementById('n1').style.visibility = "hidden";
}
}
function moveObject(e) {
if (ns4) {
document.n1.left = e.pageX;
document.n1.top = e.pageY;
}
else if (ie4) {
document.all['n1'].style.left = e.clientX;
document.all['n1'].style.top = e.clientY;
}
else if (nn6) {
document.getElementById('n1').style.left = e.clientX;
document.getElementById('n1').style.top = e.clientY;
}
}
//-->
</script>
<style type="text/css">
<!--
div#n1 {
background-color: #ffffff;
border: thin solid #C6D8E9;
padding: 5px;
}
-->
</style>
<p align="center">
<a onmouseover="showObject(event);" onmouseout="hideObject();" onmousemove="moveObject(event);" href='<?=$url?>' class='link'>
<img border="0" src="http://arama.budaburada.com/db.JPG" width="21" height="11" align="left"></a></h4></a></p>
<div id="n1" style="position:absolute; left:11 top:14; z-index:1; visibility:hidden; width:290; height:230" >
<p>
<img border="0" src="http://open.thumbshots.org/image.pxf?url=<?=$url?>\" href='<?=$url?>' class='link' width="290" height="230"></p>
</div>
</body>
</html>
--------------------------------
bu iki kodu birleştirip
bu adresteki gibi birşey yapmak istiyorumlinki tıklayın ve dürbün resmi var maus'u üzerine getirin ve bakın(araba - Ask.com Search)
yardımlarınızı bekliyorum...
msn:maltepe_turkyucel@hotmail.com
php sayfada JavaScript çalışmıyor
4
●1.946
- 20-01-2009, 17:15:37Üyeliği durduruldukodlar çok karmaşık. sorunu daha basite indirgemen gerekiyor bencekibrix adlı üyeden alıntı: mesajı görüntüle
- 20-01-2009, 17:15:48javascript kodlarını bu sayfadan ayır vaşka bir text dosyasına uzantısı .js olacak şekilde kaydet ve bu sayfaya sadece include et.
bu şekilde daha anlaşılır olarak görünür ve neyin ne olduğunu kolay bir şekilde çözebiliriz.