Merak edip kodu denedim, aşağıdaki gibi düzenledim önce
<script type="text/javascript">
eski_ie = 1;
<?php
$lang_oldbrowser = 'A';
$lang_updatebrowser = 'B';
?>
if(eski_ie == 1 )
{
document.write('<div class="wbrowserbox"><b><?php echo $lang_oldbrowser; ?></b><p><?php echo $lang_updatebrowser; ?></p><p><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx" title="Internet Explorer"><img src="templates/img/ie.png" width="24" height="24" alt="Internet Explorer"></a><a style="margin-left:10px" href="http://www.opera.com/download/" title="Opera"><img src="templates/img/opera.png" width="24" height="24" alt="Opera"></a><a style="margin-left:10px" href="http://www.mozilla-europe.org/tr/firefox/" title="Firefox"><img src="templates/img/firefox.png" width="24" height="24" alt="Firefox"></a><a style="margin-left:10px" href="http://www.google.com/chrome" title="Chrome"><img src="templates/img/chrome.png" width="24" height="24" alt="Chrome"></a><a style="margin-left:10px" href="http://www.apple.com/safari/download/" title="Safari"><img src="templates/img/safari.png" width="24" height="24" alt="Safari"></a></p></div>');
}
</script>Çıktısı;
A
B
ve resimler oldu.
Nasıl çalışmıyor, değişkenler tanımlı mı?