/*
* 468x60 logo 随机/指定 显示JS版V1.0
* 04年08月03日 温海雄
* 版权所有,彩秀科技。
*/var specialArray = new Array()
var specialIndex = 0;
var currentIndex = 0;
var caishow_f = getF(17538);
addArray();
getIndex(18);
document.write("<a href='" + specialArray[currentIndex][0] + "?f=" + caishow_f + "' target='_blank'><img src='" + specialArray[currentIndex][1] + "' border='0'></a>");// 函数区
function addItem(gotoUrl, imgUrl, imgAlt) {
// 添加图片信息
var tempArray = new Array(2);
tempArray[0] = gotoUrl;
tempArray[1] = imgUrl;
tempArray[2] = imgAlt;
specialArray[specialIndex++] = tempArray;
}
* 468x60 logo 随机/指定 显示JS版V1.0
* 04年08月03日 温海雄
* 版权所有,彩秀科技。
*/var specialArray = new Array()
var specialIndex = 0;
var currentIndex = 0;
var caishow_f = getF(17538);
addArray();
getIndex(18);
document.write("<a href='" + specialArray[currentIndex][0] + "?f=" + caishow_f + "' target='_blank'><img src='" + specialArray[currentIndex][1] + "' border='0'></a>");// 函数区
function addItem(gotoUrl, imgUrl, imgAlt) {
// 添加图片信息
var tempArray = new Array(2);
tempArray[0] = gotoUrl;
tempArray[1] = imgUrl;
tempArray[2] = imgAlt;
specialArray[specialIndex++] = tempArray;
}
你能不能再帮我讲一下:
为什么:
<SCRIPT LANGUAGE=JavaScript src='http://c09.caishow.com/cooperation/adCode/printSpecialJS.asp?f=17538&id=19&state=quiet&imgType=3'></SCRIPT>能执行http://c09.caishow.com/cooperation/adCode/printSpecialJS.asp?f=17538&id=19&state=quiet&imgType=3的内容再显示出来
而我写了:
<table><tr><td>
<a href='http://c09.caishow.com/cooperation/adCode/printSpecialJS.asp?f=17538&id=19&state=quiet&imgType=3'>点击这里
<td><tr>
</table>
点击之后,就只能显示http://c09.caishow.com/cooperation/adCode/printSpecialJS.asp?f=17538&id=19&state=quiet&imgType=3的未执行之前的内容。src="指定要显示的内容" href="要链接到的页面" 那么当src="url地址"时,和href="url地址"有什么不一样呢?
是将函数等下载下来,其它地方调用.
相当于文件被包含在里面了.
[浏览器自动下载,自动包含,执行.]而
<a href="...
只是相当于文件下载, 不会在当前页面执行的.
[用户手动下载,不执行.]