3,定制调用图片函数
和以上定制调用 Flash 函数类似,只要传递连接、图片文件路径,图片的宽度、高度,就可以定义一个图片连接
,同样避免了大段的重复代码。
函数如下:
<script>
function ad_pic(a,s,w,h)
{
document.write ("<a href="+a+ " target=_blank><img src="+s+" border=0 width="+w+"
height="+h+"></a>");
}
</script>
3,定制调用图片函数
和以上定制调用 Flash 函数类似,只要传递连接、图片文件路径,图片的宽度、高度,就可以定义一个图片连接
,同样避免了大段的重复代码。
函数如下:
<script>
function ad_pic(a,s,w,h)
{
document.write ("<a href="+a+ " target=_blank><img src="+s+" border=0 width="+w+"
height="+h+"></a>");
}
</script>