不错的asp中显示新闻的功能
2024-09-06 12:44:47
供稿:网友
代码如下:
<div style="display:none ">
<form name="sxdm" method="post">
<input type="hidden" name="newsclassid">
<input type="hidden" name="newsid">
</form>
</div>
<script language="javascript">
function sx_dm(newsclassid,newsid,action){
document.sxdm.newsclassid.value=newsclassid;
document.sxdm.newsid.value=newsid;
document.sxdm.action = action + ".asp"
document.sxdm.submit();
}
</script>
<div style="display:none ">
<form name="sxdms" method="post">
<input type="hidden" name="newsclassid">
<input type="hidden" name="newsid">
<input type="hidden" name="newskey">
</form>
</div>
<script language="javascript">
function sx_dms(newsclassid,newsid,newskey,action){
document.sxdms.newsclassid.value=newsclassid;
document.sxdms.newsid.value=newsid;
document.sxdms.newskey.valuenewskey;
document.sxdms.action = action + ".asp"
document.sxdms.submit();
}
</script>
<div style="display:none ">
<form name="sxdmm" method="post" enctype="multipart/form-data">
<input type="hidden" name="newsclassid">
<input type="hidden" name="newsid">
</form>
</div>
<script language="javascript">
function sx_dmm(newsclassid,newsid,action){
document.sxdmm.newsclassid.value=newsclassid;
document.sxdmm.newsid.value=newsid;
document.sxdmm.action = action + ".asp"
document.sxdmm.submit();
}
</script>
调用方法:
代码如下:
<a onclick="sx_dm(3,222,'newshow');" style="cursor:hand">淘汰落后钢铁产能06年钢铁价格趋稳</a>