|
请教各位高手帮忙指点修改下,<a href="javascript:void(0);" onclick="searchhp('ZXayD3mgq3ru/rLhAZDo4vVZ+GwhBgz7βfr3EDPURGKk=')">点击这里模拟</a> 这句话了的 searchhp() 怎么改成 php $LEIXING 这参数调用
对php一点都不懂,只能模拟借鉴,修改成下面这样,但是调用不成功
调用出来后,显示 【点击这里模拟'; ?>】 成这样,不能点击,还多出符号
求各位师兄帮忙指点修改下,O(∩_∩)O谢谢
<?php
$LEIXING = $_GET["n"];
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" /><title>test</title>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("hp.swf", "hpswf", "1", "1", "9.0.0", "js/expressInstall.swf");
function searchhp(str) {
var hpswfId = document.getElementById('hpswf');
hpswfId.searchhp(str);
}
function hpcalback(str) {
document.write(str);
}
</script>
</head>
<body>
<div id="hpswf">
<h1>Alternative content</h1>
<p><a ><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<?php
echo '<a href="javascript:void(0);" onclick="searchhp('.$LEIXING.')">点击这里模拟</a>';
?>
</body>
</html>
|
|